]> granicus.if.org Git - clang/commitdiff
Add test for [class.nested.type]p1
authorAnders Carlsson <andersca@mac.com>
Wed, 24 Jun 2009 00:30:37 +0000 (00:30 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 24 Jun 2009 00:30:37 +0000 (00:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74033 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/class/class.nested.type/p1.cpp [new file with mode: 0644]

diff --git a/test/CXX/class/class.nested.type/p1.cpp b/test/CXX/class/class.nested.type/p1.cpp
new file mode 100644 (file)
index 0000000..33bf4b4
--- /dev/null
@@ -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