Sign in
gnu
/
gcc
/
f450e21133974ec05fada3741eb91934f6371af4
/
.
/
libphobos
/
testsuite
/
libphobos.exceptions
/
line_trace.d
blob: 7b75d3af277381b94231db9365f6ff946dca792f [
file
] [
log
] [
blame
]
// { 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"
);
}