brintos

brintos / llvm-project-archived public Read only

0
0
Text · 284 B · 04c2066 Raw
8 lines · cpp
1// RUN: %clang -target x86_64-apple-darwin10 -S -o %t.s -Wno-stdlibcxx-not-found -mkernel -Xclang -verify %s2 3int foo();4void 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}8