URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [sizeof2.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Mark Mitchell <mark@codesourcery.com>
struct S
{
int j; // { dg-error "" } non-static data member
int i[2]; // { dg-error "" } non-static data member
};
void f ()
{
sizeof (S::j); // { dg-error "" } used here
sizeof (S::i[0]); // { dg-error "" } used here
}