Files
clang-p2996/bolt/test/runtime/X86/exceptions-pic.test
Amir Ayupov 0224bdce92 [BOLT][TEST] Limit iterations in X86/exceptions-pic.test
The test has 3 invocations with 1M iterations each, which adds delay to fast
check-bolt testing. Reduce the number to 1K.

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D139651
2022-12-22 19:47:28 -08:00

19 lines
450 B
Plaintext

# Verify that C++ exceptions work after binary re-writing
REQUIRES: x86_64-linux
RUN: %clangxx -fpic -Wl,-q %S/Inputs/exception4.cpp -o %t.pic
RUN: llvm-bolt %t.pic -o %t
RUN: %t 2>&1 | FileCheck %s
RUN: llvm-bolt --relocs --use-old-text %t.pic -o %t
RUN: %t 2>&1 | FileCheck %s
RUN: llvm-bolt %t.pic -o %t --split-functions --split-strategy=all --split-eh
RUN: %t 2>&1 | FileCheck %s
CHECK: catch 2
CHECK-NEXT: catch 1
CHECK-NEXT: caught ExcC