URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [sizeof5.C] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed sizeof
// ARM $5.3.2
extern "C" int printf (const char *, ...);
class foo {};
int
main ()
{
// The size of any class or class object is larger than zero.
int i = sizeof (foo);
if (i > 0)
printf ("PASS\n");
else
{ printf ("FAIL\n"); return 1; }
}
Go to most recent revision | Compare with Previous | Blame | View Log