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