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
[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
apple-kext-guard-variable.cpp
blob
04c20663ba995da046f572ce974676a6af7d08a2
1
// RUN: %clang -target x86_64-apple-darwin10 -S -o %t.s -Wno-stdlibcxx-not-found -mkernel -Xclang -verify %s
2
3
int
foo
();
4
void
test
() {
5
static int
y
=
0
;
6
static int
x
=
foo
();
// expected-error {{this initialization requires a guard variable, which the kernel does not support}}
7
}