2 // { dg-options "-fshort-enums" }
4 // On ARM EABI targets this testcase will cause a warning to be emitted
5 // whilst EABI attributes are being merged at link time unless
6 // the --no-enum-size-warning option is passed to the linker. Whilst the
7 // enum-size attributes should only be emitted if there are values of
8 // enum type that can escape the compilation unit, gcc cannot currently
9 // detect this; if this facility is added then this linker option should
11 // { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm_eabi } }
13 // GROUPS passed enums
14 extern "C" int printf (const char *, ...);
16 enum E { A = 0x80000000, B = 0 };
21 { printf ("FAIL\n"); return 1; }