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++.other/] [for1.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
int i;
int j;
struct S {
int operator()(int)
{
i = 1;
return i;
}
typedef int I;
void f() {
for (S I; false; )
;
int k = I(3);
}
};
typedef int J;
struct T {
int operator()(int)
{
j = 1;
return j;
}
void f() {
for (T J; false; )
;
int k = J(3);
}
};
int main()
{
S s;
s.f();
return 2 * i + j;
}