Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Interpreter / multiline.cpp
blob054e61a7e3d62ec12388e0effe58e476261307f7
1 // REQUIRES: host-supports-jit
2 // UNSUPPORTED: system-aix
3 // RUN: cat %s | clang-repl | FileCheck %s
5 extern "C" int printf(const char*,...);
6 int i = \
7 12;
9 printf("i=%d\n", i);
10 // CHECK: i=12
12 void f(int x) \
13 { \
14 printf("x=\
15 %d", x); \
17 f(i);
18 // CHECK: x=12
20 // FIXME: Support preprocessor directives.
21 // #if 0 \
22 // #error "Can't be!" \
23 // #endif