☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGenCXX
/
apple-kext-guard-variable.cpp
☽
☼
clang/test/CodeGenCXX/apple-kext-guard-variable.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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
}