Files
clang-p2996/bolt/test/runtime/exceptions-plt.cpp
Maksim Panchenko 34c6c5e72f [BOLT][AArch64] Fix PLT optimization (#124192)
Preserve C++ exception metadata while running PLT optimization on
AArch64.
2025-01-24 14:20:24 -08:00

17 lines
321 B
C++

// 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;
}