aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/class/class.nested.type/p1.cpp
blob: 33bf4b4473e50a60817f3927e39af6be5515265b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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;