URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [compat/] [init/] [byval1_y.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
#include "byval1.h"
void *p[2];
int i;
int r;
C::C() { p[i++] = this; }
C::~C() { if (p[--i] != this) r = 1; }
void Foo (C c)
{
p[i++] = &c;
}
Go to most recent revision | Compare with Previous | Blame | View Log