From: Anders Carlsson Date: Wed, 24 Jun 2009 00:30:37 +0000 (+0000) Subject: Add test for [class.nested.type]p1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3aa518b5ff0aaf4f095bcfb4bf8f2299250ca188;p=clang Add test for [class.nested.type]p1 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74033 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/class/class.nested.type/p1.cpp b/test/CXX/class/class.nested.type/p1.cpp new file mode 100644 index 0000000000..33bf4b4473 --- /dev/null +++ b/test/CXX/class/class.nested.type/p1.cpp @@ -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