1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | // <rdar://problem/9168556> |
5 | typedef struct Point Point; |
6 | |
7 | namespace NameSpace { |
8 | class Point; |
9 | } |
10 | |
11 | using namespace NameSpace; |
12 | |
13 | class Test |
14 | { |
15 | public: |
16 | struct Point { }; |
17 | virtual bool testMethod (Test::Point& p) = 0; |
18 | }; |
19 | |
20 | // PR8151 |
21 | namespace A { struct Face {}; } |
22 | namespace B { struct Face {}; } |
23 | using namespace A; |
24 | using namespace B; |
25 | |
26 | class C { |
27 | struct Face; |
28 | Face *mFaces; |
29 | }; |
30 |