blob: 53699477c9a3837f5c720072068ba36696cb1753 [file] [log] [blame]
Sebastian Redl7c0837f2011-04-24 16:28:13 +00001// no PCH
2// RUN: %clang_cc1 -include %s -include %s -fsyntax-only %s
3// with PCH
4// RUN: %clang_cc1 -chain-include %s -chain-include %s -fsyntax-only %s
5#if !defined(PASS1)
6#define PASS1
7
8namespace ns {}
9
10#elif !defined(PASS2)
11#define PASS2
12
13namespace ns {
14 namespace {
15 extern int x;
16 }
17}
18
19namespace {
20 extern int y;
21}
22
23#else
24
25namespace ns {
26 namespace {
27 int x;
28 }
29 void test() {
30 (void)x;
31 }
32}
33
34namespace {
35 int y;
36}
37void test() {
38 (void)y;
39}
40
41#endif