r184381 - Extra test for diagnostic in Sema::BuildCXXNestedNameSpecifier.

Eli Friedman eli.friedman at gmail.com
Wed Jun 19 15:58:30 PDT 2013


Author: efriedma
Date: Wed Jun 19 17:58:30 2013
New Revision: 184381

URL: http://llvm.org/viewvc/llvm-project?rev=184381&view=rev
Log:
Extra test for diagnostic in Sema::BuildCXXNestedNameSpecifier.


Modified:
    cfe/trunk/test/SemaCXX/nested-name-spec.cpp

Modified: cfe/trunk/test/SemaCXX/nested-name-spec.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/nested-name-spec.cpp?rev=184381&r1=184380&r2=184381&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/nested-name-spec.cpp (original)
+++ cfe/trunk/test/SemaCXX/nested-name-spec.cpp Wed Jun 19 17:58:30 2013
@@ -307,3 +307,6 @@ namespace N {
     };
   }
 }
+
+namespace TypedefNamespace { typedef int F; };
+TypedefNamespace::F::foo BadNNSWithCXXScopeSpec; // expected-error {{expected a class or namespace}}





More information about the cfe-commits mailing list