OSDN Git Service

* typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / sizeof2.C
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 struct S
5 {
6   int j; // { dg-error "" } non-static data member
7   int i[2]; // { dg-error "" } non-static data member
8 };
9
10 void f ()
11 {
12   sizeof (S::j); // { dg-error "" } used here
13   sizeof (S::i[0]); //  { dg-error "" } used here
14 }
15