[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / test / CodeGenCXX / apple-kext-guard-variable.cpp
blob04c20663ba995da046f572ce974676a6af7d08a2
1 // RUN: %clang -target x86_64-apple-darwin10 -S -o %t.s -Wno-stdlibcxx-not-found -mkernel -Xclang -verify %s
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}}