2 // { dg-options "-fshort-enums" }
4 // Origin: Mark Mitchell <mark@codesourcery.com>
6 // On ARM EABI targets this testcase will cause a warning to be emitted
7 // whilst EABI attributes are being merged at link time unless
8 // the --no-enum-size-warning option is passed to the linker. Whilst the
9 // enum-size attributes should only be emitted if there are values of
10 // enum type that can escape the compilation unit, gcc cannot currently
11 // detect this; if this facility is added then this linker option should
12 // not be needed. arm-*-linux*eabi should be a good approximation to
13 // those platforms where the EABI supplement defines enum values to be
15 // { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }