URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ext/] [label2.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// { dg-options "" }
// Origin: Mark Mitchell <mark@codesourcery.com>
template <class T>
int f ()
{
int i = 0;
int j = 0;
int k = 0;
l:
if (j)
return 0;
({
__label__ l;
k = 0;
l:
if (++k <= 2)
goto l;
++i;});
if (i > 1 || k != 3)
return 1;
else
{
j = 1;
goto l;
}
}
int main ()
{
return f<double>();
}
Go to most recent revision | Compare with Previous | Blame | View Log