diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-10-27 23:44:27 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-10-27 23:44:27 +0000 |
commit | e1bb329744ec98ca921bfc4f0888cff7ab4d1bf4 (patch) | |
tree | 7add3fdc3d9b47a74b77158a017878f89c41eae5 /test/Parser/namespaces.cpp | |
parent | c46b43517a18c8f41934a38a3580bd477ab54265 (diff) |
Fix crash on missing namespace name in namespace alias definition -- PR14085.
Patch from Brian Brooks <brooks.brian@gmail.com>!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166893 91177308-0d34-0410-b5e6-96231b3b80d8
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 b8c7819a01..6491cfd446 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}} |