rt_gccstream/gcc/testsuite/g++.old-deja/g++.mike/sizeof.C

10 lines
137 B
C

// { dg-do compile }
class Foo {
int children[4];
public:
unsigned function(void) {
return sizeof (((Foo*)0)->children);
}
};