Douglas Gregor | 61c6c44 | 2011-05-04 00:25:33 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Douglas Gregor | 61c6c44 | 2011-05-04 00:25:33 +0000 | [diff] [blame] | 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 | }; |
Douglas Gregor | 93b6bce | 2011-05-09 21:46:33 +0000 | [diff] [blame] | 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 | }; |