repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git]
/
test
/
FrontendC++
/
2007-05-23-TryFinally.cpp
blob
c7971820ec750264b8d6ba06ff741455ce95977a
1
// RUN: %llvmgxx %s -S -O2 -o - | ignore grep _Unwind_Resume | \
2
// RUN: wc -l | grep {\[23\]}
3
4
struct
One
{ };
5
struct
Two
{ };
6
7
void
handle_unexpected
() {
8
try
9
{
10
throw
;
11
}
12
catch
(
One
&)
13
{
14
throw
Two
();
15
}
16
}