[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CXX / basic / basic.lookup / basic.lookup.qual / namespace.qual / p3.cpp
blob1060f615991172412513dd8a73f12f6b98a4a8d0
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // This is basically paraphrased from the standard.
6 namespace Root {
7 int i = 0;
8 void f();
11 namespace A {
12 using namespace Root;
15 namespace B {
16 using namespace Root;
19 namespace AB {
20 using namespace A;
21 using namespace B;
24 void test() {
25 if (AB::i)
26 AB::f();
29 namespace C {
30 using Root::i;
31 using Root::f;
34 namespace AC {
35 using namespace A;
36 using namespace C;
39 void test2() {
40 if (AC::i)
41 AC::f();