xref: /llvm-project/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p4.cpp (revision c6e68daac0fa6e77a89f3ca72f266a528503dd1c)
18fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -fsyntax-only -verify %s
2*c6e68daaSAndy Gibbs // expected-no-diagnostics
36538c930SJohn McCall 
46538c930SJohn McCall namespace A {
56538c930SJohn McCall   int a;
66538c930SJohn McCall }
76538c930SJohn McCall 
86538c930SJohn McCall namespace C {
96538c930SJohn McCall   int c;
106538c930SJohn McCall }
116538c930SJohn McCall 
126538c930SJohn McCall namespace B {
136538c930SJohn McCall   using namespace C;
146538c930SJohn McCall   int b;
156538c930SJohn McCall }
166538c930SJohn McCall 
176538c930SJohn McCall namespace C {
186538c930SJohn McCall   using namespace B;
196538c930SJohn McCall   using namespace A;
206538c930SJohn McCall }
216538c930SJohn McCall 
test()226538c930SJohn McCall void test() {
236538c930SJohn McCall   C::a++;
246538c930SJohn McCall   C::b++;
256538c930SJohn McCall   C::c++;
266538c930SJohn McCall }
27