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
10 extern "C" int printf(const char *, ...);
12 auto r1
= printf("i = %d\n", i
);