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