p1.cpp revision 3d9559b91c00757b296354cc6ca93e899266c7d2
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3class X { 4public: 5 typedef int I; // expected-note{{'X::I' declared here}} 6 class Y { }; // expected-note{{'X::Y' declared here}} 7 I a; 8}; 9 10I b; // expected-error{{unknown type name 'I'; did you mean 'X::I'?}} 11Y c; // expected-error{{unknown type name 'Y'; did you mean 'X::Y'?}} 12X::Y d; 13X::I e; 14