URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [crash14.C] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed old-abort
extern "C" int printf (const char *, ...);
class cl
{
int i;
public:
cl(int j = 0) {i = j;}
int get_i() {return i;}
};
int
main()
{
cl ob[3] = {1, 2, 3};
int i;
for(i=0; i<3; i++)
printf("%d\n", ob[i].get_i());
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log