[cfe-commits] r74033 - /cfe/trunk/test/CXX/class/class.nested.type/p1.cpp
Anders Carlsson
andersca at mac.com
Tue Jun 23 17:30:37 PDT 2009
Author: andersca
Date: Tue Jun 23 19:30:37 2009
New Revision: 74033
URL: http://llvm.org/viewvc/llvm-project?rev=74033&view=rev
Log:
Add test for [class.nested.type]p1
Added:
cfe/trunk/test/CXX/class/class.nested.type/p1.cpp
Added: cfe/trunk/test/CXX/class/class.nested.type/p1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/class/class.nested.type/p1.cpp?rev=74033&view=auto
==============================================================================
--- cfe/trunk/test/CXX/class/class.nested.type/p1.cpp (added)
+++ cfe/trunk/test/CXX/class/class.nested.type/p1.cpp Tue Jun 23 19:30:37 2009
@@ -0,0 +1,11 @@
+class X {
+public:
+ typedef int I;
+ class Y { };
+ I a;
+};
+
+I b; // expected-error{{unknown type name 'I'}}
+Y c; // expected-error{{unknown type name 'Y'}}
+X::Y d;
+X::I e;
\ No newline at end of file
More information about the cfe-commits
mailing list