summaryrefslogtreecommitdiff
path: root/test/CXX/class/class.nested.type/p1.cpp
blob: 9295654412302d7118d10a3e476dcca1a9904ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fsyntax-only -verify %s

class X {
public:
  typedef int I; // expected-note{{'X::I' declared here}}
  class Y { }; // expected-note{{'X::Y' declared here}}
  I a;
};

I b; // expected-error{{unknown type name 'I'; did you mean 'X::I'?}}
Y c; // expected-error{{unknown type name 'Y'; did you mean 'X::Y'?}}
X::Y d;
X::I e;