blob: 8a75a3cb384b90a4f4f4cc7a4bb2cedc8a5a03b3 [file]
// Verify that PLT optimization in BOLT preserves exception-handling info.
// REQUIRES: system-linux
// RUN: %clangxx %cxxflags -O1 -Wl,-q,-znow %s -o %t.exe
// RUN: llvm-bolt %t.exe -o %t.bolt.exe --plt=all
// RUN: %t.bolt.exe
int main() {
try {
throw new int;
} catch (...) {
return 0;
}
return 1;
}