blob: 007f14f7fe45c925276cdb1af1a41725a08f1e84 [file] [log] [blame]
// Test for exception handling.
// { dg-do run { target c++17 } }
void f() {}
void g() noexcept {}
int main()
{
try { throw g; }
catch (void (*)()) { }
try { throw g; }
catch (void (*)() noexcept) { }
try { throw f; }
catch (void (*)()) { }
try { throw f; }
catch (void (*)() noexcept) { __builtin_abort(); }
catch (...) { }
}