summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/qual-id-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/qual-id-test.cpp')
-rw-r--r--test/SemaCXX/qual-id-test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/qual-id-test.cpp b/test/SemaCXX/qual-id-test.cpp
index 54d41b8..4846e72 100644
--- a/test/SemaCXX/qual-id-test.cpp
+++ b/test/SemaCXX/qual-id-test.cpp
@@ -138,3 +138,12 @@ struct a {
a a;
int a::sa = a.a; // expected-error {{invalid use of nonstatic data member 'a'}}
+
+
+namespace PR6645 {
+ typedef int foo;
+ namespace Inner {
+ typedef int PR6645::foo; // expected-error{{typedef declarator cannot be qualified}} \
+ // expected-error{{definition or redeclaration of 'foo' not in a namespace enclosing 'PR6645'}}
+ }
+}
OpenPOWER on IntegriCloud