1 // Verify that PLT optimization in BOLT preserves exception-handling info. 2 3 // REQUIRES: system-linux 4 5 // RUN: %clangxx %cxxflags -O1 -Wl,-q,-znow %s -o %t.exe 6 // RUN: llvm-bolt %t.exe -o %t.bolt.exe --plt=all 7 // RUN: %t.bolt.exe 8 9 int main() { 10 try { 11 throw new int; 12 } catch (...) { 13 return 0; 14 } 15 return 1; 16 } 17