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