repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
PCH
/
chain-empty-initial-namespace.cpp
blob
bf15caa72cda12b86744dfe70a663cfb0ebc1a85
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
7
8
namespace
foo
{}
// no external storage
9
10
#elif !defined(PASS2)
11
#define PASS2
12
13
namespace
foo
{
14
void
bar
();
15
}
16
17
#else
18
// PASS3
19
20
void
test
() {
21
foo
::
bar
();
// no-error
22
}
23
24
#endif