projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make this test pass if llvm-g++ was built without exception handling support.
[oota-llvm.git]
/
test
/
C++Frontend
/
2007-05-23-TryFinally.cpp
1
// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep -c {handle\\|_Unwind_Resume} | grep {\[14\]}
2
3
struct One { };
4
struct Two { };
5
6
void handle_unexpected () {
7
try
8
{
9
throw;
10
}
11
catch (One &)
12
{
13
throw Two ();
14
}
15
}