URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [aggregate.C] - Rev 377
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
struct A { int i; };
int main()
{
A a1 = { 42 };
A a2 (a1);
A a3 = { 137 };
a1 = a3;
if (a1.i == 137 && a2.i == 42 && a3.i == 137)
return 0;
return 1;
}
Go to most recent revision | Compare with Previous | Blame | View Log