blob: bbd17e7fe9b57164892cd6f678550c8055776733 [file] [log] [blame]
Douglas Gregor61c6c442011-05-04 00:25:33 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Douglas Gregor61c6c442011-05-04 00:25:33 +00003
4// <rdar://problem/9168556>
5typedef struct Point Point;
6
7namespace NameSpace {
8 class Point;
9}
10
11using namespace NameSpace;
12
13class Test
14{
15public:
16 struct Point { };
17 virtual bool testMethod (Test::Point& p) = 0;
18};
Douglas Gregor93b6bce2011-05-09 21:46:33 +000019
20// PR8151
21namespace A { struct Face {}; }
22namespace B { struct Face {}; }
23using namespace A;
24using namespace B;
25
26class C {
27 struct Face;
28 Face *mFaces;
29};