[BOLT][TEST] Remove functions with dynamic exception specification

Clang has switched to gnu++17 by default with https://reviews.llvm.org/D131465.
C++17 removes dynamic exception specification. Remove its use as it wasn't
properly tested.

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D133467
This commit is contained in:
Amir Ayupov 2022-09-07 19:17:39 -07:00
parent 01cea7ac10
commit a80e1e493f
2 changed files with 2 additions and 10 deletions

View File

@ -16,10 +16,6 @@ void foo(int a)
throw ExcC();
}
void filter_only(int a) throw (ExcA, ExcB, ExcC, ExcD, ExcE, ExcF) {
foo(a);
}
int main(int argc, char **argv)
{
asm volatile ("nop;nop;nop;nop;nop");
@ -41,7 +37,7 @@ int main(int argc, char **argv)
asm volatile ("nop;nop;nop;nop;nop");
try {
asm volatile ("nop;nop;nop;nop;nop");
filter_only(argc);
foo(argc);
} catch (ExcC) {
asm volatile ("nop;nop;nop;nop;nop");
printf("caught ExcC\n");

View File

@ -16,10 +16,6 @@ void foo(int a)
throw ExcC();
}
void filter_only(int a) throw (ExcA, ExcB, ExcC, ExcD, ExcE, ExcF) {
foo(a);
}
void never_throws() throw () {
printf("this statement is cold and should be outlined\n");
}
@ -46,7 +42,7 @@ int main(int argc, char **argv)
try {
try {
filter_only(argc);
foo(argc);
} catch (ExcC) {
printf("caught ExcC\n");
}