repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ext
/
label2.C
blob
1ba67d096ce5dcbc043da55985e443334dfbd68e
1
// { dg-do run }
2
// { dg-options "" }
3
// Origin: Mark Mitchell <mark@codesourcery.com>
4
5
template <class T>
6
int f ()
7
{
8
int i = 0;
9
int j = 0;
10
int k = 0;
11
12
l:
13
if (j)
14
return 0;
15
({
16
__label__ l;
17
k = 0;
18
l:
19
if (++k <= 2)
20
goto l;
21
++i;});
22
if (i > 1 || k != 3)
23
return 1;
24
else
25
{
26
j = 1;
27
goto l;
28
}
29
}
30
31
int main ()
32
{
33
return f<double>();
34
}
35