repo.or.cz
/
official-gcc
/
alias-decl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* config/bfin/bfin.c (effective_address_32bit_p): Return true for
[official-gcc/alias-decl.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
eh3.C
blob
0cd9cac5fce099f25aaaaf6f09878ec2bd4281f4
1
// PR target/18841
2
// { dg-do run }
3
// { dg-options "-O2" }
4
5
extern "C" void abort ();
6
7
int r, i1 = 1, i2 = 2, i3 = 3, i4 = 4, i5 = 5;
8
9
struct S
10
{
11
~S() { r = i1 + i2 + i3 + i4 + i5; }
12
};
13
14
void foo()
15
{
16
S s;
17
throw 1;
18
}
19
20
void bar()
21
{
22
try {
23
foo();
24
} catch (...) {
25
}
26
}
27
28
int main()
29
{
30
bar();
31
if (r != 1 + 2 + 3 + 4 + 5)
32
abort ();
33
}