Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
libphobos
/
testsuite
/
libphobos.exceptions
/
line_trace.d
blob: 70762ff227c597aeec8265399cbff8b4cb6d1ed3 [
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"
,
cast
(
int
)
str
.
length
,
str
.
ptr
);
}
}
void
f1
()
{
throw
new
Exception
(
"exception"
);
}