Sign in
third-party-mirror
/
mingw-w64
/
8d3d95f7e286a4e46c13f82643c28b85c48755c1
/
.
/
mingw-w64-crt
/
testcases
/
t_trycatch.cpp
blob: 96a46eac250084f7ffcccb263af57ee798b1531c [
file
] [
log
] [
blame
]
#include
<stdio.h>
void
foo
(
int
d
)
throw
(
int
)
{
throw
(
d
);
}
int
main
()
{
try
{
foo
(
10
);
printf
(
"Hmm...\n"
);
}
catch
(
int
ex
)
{
printf
(
"catch %d==10\n"
,
ex
);
}
printf
(
"Done.\n"
);
return
0
;
}