diff options
Diffstat (limited to 'test/Parser/namespaces.cpp')
-rw-r--r-- | test/Parser/namespaces.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Parser/namespaces.cpp b/test/Parser/namespaces.cpp index b8c7819..6491cfd 100644 --- a/test/Parser/namespaces.cpp +++ b/test/Parser/namespaces.cpp @@ -6,3 +6,7 @@ namespace g { enum { o = 0 }; } void foo() { namespace a { typedef g::o o; } // expected-error{{namespaces can only be defined in global or namespace scope}} } + +// PR14085 +namespace PR14085 {} +namespace = PR14085; // expected-error {{expected identifier}} |