mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 01:46:41 +00:00

This requires adding a `NegDelta32` edge kind that cannot be mapped to existing relocations. Co-authored-by: Job Noorman <jnoorman@igalia.com>
20 lines
650 B
C++
20 lines
650 B
C++
// clang-format off
|
|
// UNSUPPORTED: system-aix
|
|
// XFAIL for arm and arm64, or running on Windows.
|
|
// XFAIL: target=arm{{.*}}, system-windows
|
|
// RUN: cat %s | clang-repl | FileCheck %s
|
|
|
|
// Incompatible with msan. It passes with -O3 but fail -Oz. Interpreter
|
|
// generates non-instrumented code, which may call back to instrumented.
|
|
// UNSUPPORTED: msan
|
|
|
|
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
|