Skip optional_mthumb tests if GCC has a default mode
[official-gcc.git] / gcc / testsuite / gcc.target / arm / optional_thumb-1.c
blob99cb0c3f33b601fff4493feef72765f7590e18f6
1 /* { dg-do compile { target { ! default_mode } } } */
2 /* { dg-skip-if "-marm/-mthumb/-march/-mcpu given" { *-*-* } { "-marm" "-mthumb" "-march=*" "-mcpu=*" } } */
3 /* { dg-options "-march=armv6-m" } */
5 /* Check that -mthumb is not needed when compiling for a Thumb-only target. */
7 int foo;