aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-using-namespace-in-header.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-03-26 22:25:30 +0000
committerDouglas Gregor <dgregor@apple.com>2011-03-26 22:25:30 +0000
commit9172aa685f3a1cbf991a2c1cd40905e4d64bfdf6 (patch)
treea7691b1fd4d9989945974f1da1389b76f8210206 /test/SemaCXX/warn-using-namespace-in-header.cpp
parent077f490d0a514dcc448475f33f799934252b85a7 (diff)
Improve -Wheader-hygiene to warn about using directives inside linkage
specifications within the global scope, from Elliot Glaysher. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/warn-using-namespace-in-header.cpp')
-rw-r--r--test/SemaCXX/warn-using-namespace-in-header.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-using-namespace-in-header.cpp b/test/SemaCXX/warn-using-namespace-in-header.cpp
index 393e097df5..e040ca74cb 100644
--- a/test/SemaCXX/warn-using-namespace-in-header.cpp
+++ b/test/SemaCXX/warn-using-namespace-in-header.cpp
@@ -7,3 +7,21 @@ using namespace dont_warn;
// Warning is actually in the header but only the cpp file gets scanned.
// expected-warning {{using namespace directive in global context in header}}
+
+
+
+
+
+
+
+
+
+// Warn inside linkage specs too.
+// expected-warning {{using namespace directive in global context in header}}
+
+
+
+
+
+
+// expected-warning {{using namespace directive in global context in header}}