Debian Codegraph @

clang/test/Interpreter/multiline.cpp

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