[ARM] Optional -mthumb for Thumb only targets
[official-gcc.git] / gcc / testsuite / gcc.target / arm / optional_thumb-2.c
blob4bd53a45eca97e62dd3b86d5a1a66c5ca21e7aad
1 /* { dg-do compile } */
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;