blob: 09f1be538c3754040f89b18d20776956931a8e7a [file] [log] [blame]
// PR sanitizer/78651
// { dg-do run }
// { dg-additional-options "-fpic" { target fpic } }
struct A { };
namespace {
void thisThrows () {
throw A();
}
struct SomeRandomType {};
}
int main() {
try {
thisThrows();
}
catch (SomeRandomType) {
throw;
}
catch (A) {
}
return 0;
}