1# Verify that C++ exceptions work after binary re-writing
2
3REQUIRES: x86_64-linux
4
5RUN: %clangxx -fpic -Wl,-q %S/Inputs/exception4.cpp -o %t.pic
6RUN: llvm-bolt %t.pic -o %t && %t 2>&1 | FileCheck %s
7RUN: llvm-bolt --relocs --use-old-text %t.pic -o %t && %t 2>&1 | FileCheck %s
8
9CHECK: catch 2
10CHECK-NEXT: catch 1
11CHECK-NEXT: caught ExcC
12
13
14