mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-27 05:30:18 +00:00
20 lines
301 B
D
20 lines
301 B
D
// { 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");
|
|
}
|