summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/Weverything_pragma.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/Weverything_pragma.c')
-rw-r--r--clang/test/Preprocessor/Weverything_pragma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/Weverything_pragma.c b/clang/test/Preprocessor/Weverything_pragma.c
index 14254317545..1815f554fff 100644
--- a/clang/test/Preprocessor/Weverything_pragma.c
+++ b/clang/test/Preprocessor/Weverything_pragma.c
@@ -7,6 +7,7 @@
#define UNUSED_MACRO1 1 // expected-warning{{macro is not used}}
void foo() // expected-warning {{no previous prototype for function}}
+// expected-note@-1{{declare 'static' if the function is not intended to be used outside of this translation unit}}
{
// A diagnostic without DefaultIgnore, and not part of a group.
(void) L'ab'; // expected-warning {{extraneous characters in character constant ignored}}
OpenPOWER on IntegriCloud