summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-everthing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/warn-everthing.cpp')
-rw-r--r--clang/test/SemaCXX/warn-everthing.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/warn-everthing.cpp b/clang/test/SemaCXX/warn-everthing.cpp
index ff66c78cdf9..a6f2278eee3 100644
--- a/clang/test/SemaCXX/warn-everthing.cpp
+++ b/clang/test/SemaCXX/warn-everthing.cpp
@@ -9,5 +9,6 @@ public:
};
void testPR12271() { // expected-warning {{no previous prototype for function 'testPR12271'}}
+// expected-note@-1{{declare 'static' if the function is not intended to be used outside of this translation unit}}
PR12271 a[1][1];
}
OpenPOWER on IntegriCloud