Debian Codegraph @

gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-4.c

raw
1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_arch_v8_1m_main_pacbti_link } */
3 /* { dg-require-effective-target arm_pacbti_hw } */
4 /* { dg-options "-mbranch-protection=pac-ret -mfloat-abi=hard" } */
5 /* { dg-add-options arm_arch_v8_1m_main_pacbti } */
6
7 #if !defined (__ARM_FEATURE_PAC_DEFAULT)
8 #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined."
9 #endif
10
11 #if defined (__ARM_FEATURE_BTI_DEFAULT)
12 #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be undefined."
13 #endif
14
15 int
16 main()
17 {
18 if (__ARM_FEATURE_PAC_DEFAULT != 1)
19 __builtin_abort ();
20
21 return 0;
22 }