[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / chain-empty-initial-namespace.cpp
blobbf15caa72cda12b86744dfe70a663cfb0ebc1a85
1 // no PCH
2 // RUN: %clang_cc1 -include %s -include %s -fsyntax-only %s
3 // full PCH
4 // RUN: %clang_cc1 -chain-include %s -chain-include %s -fsyntax-only %s
5 #if !defined(PASS1)
6 #define PASS1
8 namespace foo {} // no external storage
10 #elif !defined(PASS2)
11 #define PASS2
13 namespace foo {
14 void bar();
17 #else
18 // PASS3
20 void test() {
21 foo::bar(); // no-error
24 #endif