1 /* Test for #prama target macros. */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target arm_thumb1_ok } */
4 /* { dg-require-effective-target arm_arm_ok } */
6 #pragma GCC target ("thumb")
9 #error "__thumb__ is not defined"
13 #ifndef __ARM_32BIT_STATE
14 #error "__ARM_32BIT_STATE is not defined"
17 #ifdef __ARM_32BIT_STATE
18 #error "__ARM_32BIT_STATE is defined"
22 #pragma GCC target ("arm")
25 #error "__thumb__ is defined"
28 #if defined (__thumb2__) || defined (__thumb1__)
29 #error "thumb is defined"
32 #ifndef __ARM_32BIT_STATE
33 #error "__ARM_32BIT_STATE is not defined"
36 #pragma GCC reset_options