1// Test this without pch.
2// RUN: %clang_cc1 -x c++ -include %S/Inputs/namespaces.h -fsyntax-only %s
3
4// Test with pch.
5// RUN: %clang_cc1 -x c++ -emit-pch -o %t %S/Inputs/namespaces.h
6// RUN: %clang_cc1 -x c++ -include-pch %t -fsyntax-only %s
7
8int int_val;
9N1::t1 *ip1 = &int_val;
10N1::t2 *ip2 = &int_val;
11N2::Inner::t3 *ip3 = &int_val;
12
13float float_val;
14namespace N2 { }
15N2::t1 *fp1 = &float_val;
16
17Alias1::t3 *ip4 = &int_val;
18t3 *ip5 = &int_val;
19
20void(*funp1)() = anon;
21
22namespace {
23  class C;
24}
25C* cp1;
26
27namespace N3 {
28  namespace {
29    class C;
30  }
31}
32
33N3::C *cp2;
34
35void(*funp2)() = ext;
36
37using N1::used_func;
38void (*pused)() = used_func;
39
40using N1::used_cls;
41used_cls s1;
42used_cls* ps1 = &s1;
43
44inline namespace N4 { }
45struct MemberOfN4 *mn4;
46