Daily bump.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / cppeh1.d
blob9ef0ab3c79b6c9ea094b1048363d289425caebd7
1 // DISABLED: win32 win64
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/cppeh1.d(26): Error: cannot catch C++ class objects in `@safe` code
6 ---
7 */
9 version (Windows) static assert(0, "This test should not run on this platform");
11 extern (C++, std)
13 class exception { }
16 @safe:
17 void bar();
18 void abc();
20 void foo()
22 try
24 bar();
26 catch (std.exception e)
28 abc();