2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / sizeof2.C
blobd8ac60dd3c02242725cf6dcbbf09042013b750eb
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 struct S
6   int j; // { dg-error "" } non-static data member
7   int i[2]; // { dg-error "" } non-static data member
8 };
10 void f ()
12   sizeof (S::j); // { dg-error "" } used here
13   sizeof (S::i[0]); //  { dg-error "" } used here