PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / optional_thumb-3.c
blobd9150e09e475dfbeb7b0b0c153c913b1ad6f0777
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_cortex_m } */
3 /* { dg-skip-if "-mthumb given" { *-*-* } { "-mthumb" } } */
4 /* { dg-options "-marm" } */
5 /* { dg-error "target CPU does not support ARM mode" "missing error with -marm on Thumb-only targets" { target *-*-* } 0 } */
7 /* Check that -marm gives an error when compiling for a Thumb-only target. */
9 int foo;