Add test for [class.nested.type]p1

llvm-svn: 74033
This commit is contained in:
Anders Carlsson 2009-06-24 00:30:37 +00:00
parent 18a96bb07f
commit 829574edab
1 changed files with 11 additions and 0 deletions

View File

@ -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;