blob: c64d3bf2b76ce1307c3e057caf300c19045c6505 [file] [log] [blame]
// DISABLED: win32 win64
/*
TEST_OUTPUT:
---
fail_compilation/cppeh1.d(26): Error: catching C++ class objects is not allowed in a `@safe` function
---
*/
version (Windows) static assert(0, "This test should not run on this platform");
extern (C++, std)
{
class exception { }
}
@safe:
void bar();
void abc();
void foo()
{
try
{
bar();
}
catch (std.exception e)
{
abc();
}
}