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