repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
eh
/
omit-frame-pointer2.C
blob
78026b518430c5bf2f1c055695cc96ad2dfd1f82
1
// Reduced from PR c++/5246, PR c++/2447
2
// { dg-options "-O -fomit-frame-pointer" }
3
// { dg-do run }
4
5
void step (int)
6
{
7
void *sp = __builtin_alloca (0);
8
}
9
10
void f2 (void)
11
{
12
step (2);
13
throw int();
14
}
15
16
void f1 (void)
17
{
18
try
19
{
20
step (1);
21
f2 ();
22
step (-1);
23
}
24
catch (int)
25
{
26
step (3);
27
}
28
}
29
30
int main ()
31
{
32
f1 ();
33
return 0;
34
}