
This test fails for RISC-V and Arm targets are already XFAILed, so add RISC-V to the XFAIL list. Differential Revision: https://reviews.llvm.org/D141380
15 lines
494 B
C++
15 lines
494 B
C++
// clang-format off
|
|
// UNSUPPORTED: system-aix
|
|
// XFAIL for arm, arm64, riscv, or running on Windows.
|
|
// XFAIL: target={{(arm|riscv).*}}, 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
|