[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / tag-ambig.cpp
blobb8a0fa277b56565b8294c88f06e776219a346c61
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 typedef struct Point Point;
6 namespace NameSpace {
7 class Point;
10 using namespace NameSpace;
12 class Test
14 public:
15 struct Point { };
16 virtual bool testMethod (Test::Point& p) = 0;
19 // PR8151
20 namespace A { struct Face {}; }
21 namespace B { struct Face {}; }
22 using namespace A;
23 using namespace B;
25 class C {
26 struct Face;
27 Face *mFaces;