Debian Codegraph @

gcc/testsuite/gcc.target/arm/optional_thumb-3.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_arch_v7em_ok } */
3 /* { dg-skip-if "-mthumb given" { *-*-* } { "-mthumb" } } */
4 /* { dg-options "-march=armv7e-m+fp -marm" } */
5 /* { dg-error "target CPU does not support ARM mode" "missing error with -marm on Thumb-only targets" { target *-*-* } 0 } */
6
7 /* Check that -marm gives an error when compiling for a Thumb-only target. */
8
9 int foo;