summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/pushable-diagnostics.c
diff options
context:
space:
mode:
authorAaron Puchert <aaron.puchert@sap.com>2019-06-18 23:40:17 +0000
committerAaron Puchert <aaron.puchert@sap.com>2019-06-18 23:40:17 +0000
commit2b285c664d77be9dd5490eefb4b313e05fd66911 (patch)
treec913bbf72979f578083cc997265497d1cb158db5 /clang/test/Preprocessor/pushable-diagnostics.c
parent4c2522220fe9dd698705b72a65c2bb686ea04f94 (diff)
downloadbcm5719-llvm-2b285c664d77be9dd5490eefb4b313e05fd66911.tar.gz
bcm5719-llvm-2b285c664d77be9dd5490eefb4b313e05fd66911.zip
Fix tests after r363749
We changed -Wmissing-prototypes there, which was used in these tests via -Weverything. llvm-svn: 363754
Diffstat (limited to 'clang/test/Preprocessor/pushable-diagnostics.c')
-rw-r--r--clang/test/Preprocessor/pushable-diagnostics.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/pushable-diagnostics.c b/clang/test/Preprocessor/pushable-diagnostics.c
index 6e05d8e1450..4a0dd895a78 100644
--- a/clang/test/Preprocessor/pushable-diagnostics.c
+++ b/clang/test/Preprocessor/pushable-diagnostics.c
@@ -23,17 +23,21 @@ void ppo0(){} // first verify that we do not give anything on this
#pragma clang diagnostic warning "-Weverything"
void ppr1(){} // expected-warning {{no previous prototype for function 'ppr1'}}
+// expected-note@-1{{declare 'static' if the function is not intended to be used outside of this translation unit}}
#pragma clang diagnostic push // push again
#pragma clang diagnostic ignored "-Weverything" // Set to ignore in this level.
void pps2(){}
#pragma clang diagnostic warning "-Weverything" // Set to warning in this level.
void ppt2(){} // expected-warning {{no previous prototype for function 'ppt2'}}
+// expected-note@-1{{declare 'static' if the function is not intended to be used outside of this translation unit}}
#pragma clang diagnostic error "-Weverything" // Set to error in this level.
void ppt3(){} // expected-error {{no previous prototype for function 'ppt3'}}
+// expected-note@-1{{declare 'static' if the function is not intended to be used outside of this translation unit}}
#pragma clang diagnostic pop // pop should go back to warning level
void pps1(){} // expected-warning {{no previous prototype for function 'pps1'}}
+// expected-note@-1{{declare 'static' if the function is not intended to be used outside of this translation unit}}
#pragma clang diagnostic pop // Another pop should disble it again
OpenPOWER on IntegriCloud