URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p7865.C] - Rev 841
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// prms-id: 7865
int count;
struct A {
A() { ++count; }
~A() { --count; }
};
int foo() { return 1; }
int bar()
{
A a;
for (;;) {
A b;
if (foo())
return 0;
if (foo())
return 0;
}
return 0;
}
int main() {
bar();
return count;
}
Go to most recent revision | Compare with Previous | Blame | View Log