Extra test for diagnostic in Sema::BuildCXXNestedNameSpecifier.
authorEli Friedman <eli.friedman@gmail.com>
Wed, 19 Jun 2013 22:58:30 +0000 (22:58 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 19 Jun 2013 22:58:30 +0000 (22:58 +0000)
llvm-svn: 184381

clang/test/SemaCXX/nested-name-spec.cpp

index 228bc0e..f3c960c 100644 (file)
@@ -307,3 +307,6 @@ namespace N {
     };
   }
 }
+
+namespace TypedefNamespace { typedef int F; };
+TypedefNamespace::F::foo BadNNSWithCXXScopeSpec; // expected-error {{expected a class or namespace}}