xref: /llvm-project/bolt/test/runtime/X86/exceptions-run.test (revision d648aa1b8e937de1648524e1f1016b53b29ba2a4)
1# Verify the exceptions handling work after moving code.
2# The input has dummy nops that are removed by bolt.
3
4REQUIRES: x86_64-linux
5
6RUN: %clangxx -g %S/Inputs/exception3.cpp -o %t.exe
7RUN: llvm-bolt --align-blocks=0 %t.exe -o %t && %t 2>&1 | FileCheck %s
8RUN: llvm-bolt --reorder-blocks=reverse --align-blocks=0 %t.exe -o %t && %t 2>&1 \
9RUN:   | FileCheck %s
10
11CHECK: catch 2
12CHECK-NEXT: catch 1
13CHECK-NEXT: caught ExcC
14
15
16