c++: lvalue_kind tweak
[official-gcc.git] / libphobos / testsuite / libphobos.exceptions / line_trace.d
blob70762ff227c597aeec8265399cbff8b4cb6d1ed3
1 // { dg-output "object.Exception@.*: exception" }
2 void main()
4 try
6 f1();
8 catch (Exception e)
10 import core.stdc.stdio;
11 auto str = e.toString();
12 printf("%.*s\n", cast(int)str.length, str.ptr);
16 void f1()
18 throw new Exception("exception");