Debian Codegraph @

libphobos/testsuite/libphobos.exceptions/rt_trap_exceptions_drt.d

raw
1 // { dg-shouldfail "uncaught exception" }
2 void test()
3 {
4 int innerLocal = 20;
5 throw new Exception("foo");
6 }
7 void main(string[] args)
8 {
9 string myLocal = "bar";
10 test();
11 }