Training courses
Kernel and Embedded Linux
Bootlin training courses
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// { dg-output "object.Exception@.*: exception" } void main() { try { f1(); } catch (Exception e) { import core.stdc.stdio; auto str = e.toString(); printf("%.*s\n", str.length, str.ptr); } } void f1() { throw new Exception("exception"); }