25 lines · cpp
1// REQUIRES: host-supports-jit2// RUN: cat %s | clang-repl -Xcc -Xclang -Xcc -verify | FileCheck %s3 4// expected-no-diagnostics5 6extern "C" int printf(const char*,...);7int i = \8 12;9 10printf("i=%d\n", i);11// CHECK: i=1212 13void f(int x) \ 14{ \15 printf("x=\16 %d", x); \17}18f(i);19// CHECK: x=1220 21#if 0 \22 #error "Can't be!" \23#endif24 25