i386: Allow all register_operand SUBREGs in x86_ternlog_idx.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / sizeof3.C
blob309f1b6e8b128d813329fe6cbccc6355ec30932e
1 // { dg-do assemble  }
2 // { dg-options "-pedantic-errors" }
3 // GROUPS passed sizeof
4 // ARM $5.3.2
6 class bar;
8 int
9 main()
11   // sizeof may not be applied to an undefined class
12   int k = sizeof (bar);// { dg-error "11:invalid application of .sizeof. to incomplete type" } .*
14   return 0;