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 } */
       6  
       7  /* Check that -marm gives an error when compiling for a Thumb-only target.  */
       8  
       9  int foo;