OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* g++.old-deja/g++.eh/cleanup2.C: New test.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ext
/
label2.C
1
// Origin: Mark Mitchell <mark@codesourcery.com>
2
// Special g++ Options:
3
4
template <class T>
5
int f ()
6
{
7
int i = 0;
8
int j = 0;
9
int k = 0;
10
11
l:
12
if (j)
13
return 0;
14
({
15
__label__ l;
16
k = 0;
17
l:
18
if (++k <= 2)
19
goto l;
20
++i;});
21
if (i > 1 || k != 3)
22
return 1;
23
else
24
{
25
j = 1;
26
goto l;
27
}
28
}
29
30
int main ()
31
{
32
return f<double>();
33
}
34