8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/enum9.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

15 lines
249 B
C

// Special g++ Options: -fshort-enums
// GROUPS passed enums
extern "C" int printf (const char *, ...);
enum E { A = 0x80000000, B = 0 };
main()
{
if (sizeof (E) != 4)
printf ("FAIL\n");
else
printf ("PASS\n");
return 0;
}