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