FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / sizeof2.C
blobddac679d880c9d00a56c67c953eb15660d78ed35
1 // Build don't link: 
2 // Special g++ Options: -pedantic-errors
3 // GROUPS passed sizeof
4 // ARM $5.3.2
6 void f() { }
8 struct foo { int bit : 1; };
10 int
11 main()
13   // sizeof may not be applied to a bit-field
14   foo f;
15   int i = sizeof (f.bit);// ERROR - .*
17   return 0;