blob: 5af656396d4a32544c2dabb0f84f1f420a63b279 [file] [log] [blame]
// clang-format off
// UNSUPPORTED: system-aix
// XFAIL: arm, arm64-apple, system-windows
// RUN: cat %s | clang-repl | FileCheck %s
extern "C" int printf(const char *, ...);
int f() { throw "Simple exception"; return 0; }
int checkException() { try { printf("Running f()\n"); f(); } catch (const char *e) { printf("%s\n", e); } return 0; }
auto r1 = checkException();
// CHECK: Running f()
// CHECK-NEXT: Simple exception
%quit