xref: /llvm-project/clang/test/Interpreter/multiline.cpp (revision 96ae7c4f1aa02cb10455dda22abbb0b3b2ceaa6b)
1 // REQUIRES: host-supports-jit
2 // UNSUPPORTED: system-aix
3 // RUN: cat %s | clang-repl -Xcc -Xclang -Xcc -verify | FileCheck %s
4 
5 // expected-no-diagnostics
6 
7 extern "C" int printf(const char*,...);
8 int i = \
9   12;
10 
11 printf("i=%d\n", i);
12 // CHECK: i=12
13 
14 void f(int x) \
15 {                                               \
16   printf("x=\
17           %d", x); \
18 }
19 f(i);
20 // CHECK: x=12
21 
22 #if 0                   \
23   #error "Can't be!"    \
24 #endif
25 
26