Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Interpreter / fail.cpp
blob4e301f37548f1f993737ab71833f66278efc29ef
1 // FIXME: There're some inconsistencies between interactive and non-interactive
2 // modes. For example, when clang-repl runs in the interactive mode, issues an
3 // error, and then successfully recovers if we decide it's a success then for
4 // the non-interactive mode the exit code should be a failure.
5 // RUN: clang-repl "int x = 10;" "int y=7; err;" "int y = 10;"
6 // REQUIRES: host-supports-jit
7 // UNSUPPORTED: system-aix
8 // RUN: cat %s | not clang-repl | FileCheck %s
9 BOOM!
10 extern "C" int printf(const char *, ...);
11 int i = 42;
12 auto r1 = printf("i = %d\n", i);
13 // CHECK: i = 42
14 %quit