aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/optional_thumb-3.c
blob: a6c661ac031af82b106a894de45e975a32d4130c (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v7em_ok } */
/* { dg-skip-if "-mthumb given" { *-*-* } { "-mthumb" } } */
/* { dg-options "-march=armv7e-m+fp -marm" } */
/* { dg-error "target CPU does not support ARM mode" "missing error with -marm on Thumb-only targets" { target *-*-* } 0 } */

/* Check that -marm gives an error when compiling for a Thumb-only target.  */

int foo;