mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-29 00:21:14 +00:00
[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:
parent
01cea7ac10
commit
a80e1e493f
@ -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");
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user