Sign in
fuchsia
/
third_party
/
llvm-test-suite
/
refs/tags/llvmorg-12.0.1
/
.
/
SingleSource
/
Regression
/
C++
/
EH
/
simple_throw.cpp
blob: 7289c6d065c8f987ec995f090aa92a97c9c3e5dc [
file
] [
log
] [
blame
]
// Test throwing a constant int
#include
<stdio.h>
static
void
foo
()
{
throw
5
;
}
int
main
()
{
try
{
foo
();
}
catch
(...)
{
printf
(
"All ok\n"
);
return
0
;
}
return
1
;
}