repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr31081-1.C
blob
cb11b2148d4ebe6c0eaec5cc3d1fd6d82f74224d
1
/* { dg-do compile } */
2
3
static int get_record (void);
4
void f(void);
5
int g(void);
6
static int get_record (void)
7
{
8
int result;
9
try
10
{
11
result = g();
12
f();
13
}
14
catch (const int &) { }
15
return result;
16
}
17
int NAV_get_record ( )
18
{
19
int result;
20
for (;;)
21
if (get_record ())
22
return 1;
23
}