[libc++][NFC] Remove trailing whitespace from release notes
[llvm-project.git] / clang / test / CXX / basic / basic.lookup / basic.lookup.classref / p4-cxx11.cpp
bloba4721d61a871ae2fa57c83a824e353b8c22b15a6
1 // RUN: %clang_cc1 -std=c++11 %s -verify
2 // expected-no-diagnostics
4 struct A { void f(); };
5 struct C { void f(); };
6 struct B : A { typedef A X; };
7 struct D : C { typedef C X; void g(); };
9 void D::g()
11 B * b = new B;
12 b->X::f(); // lookup for X finds B::X
15 typedef int X;
16 void h(void)
18 B * b = new B;
19 b->X::f(); // lookup for X finds B::X