| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ |
| 3 |
/* { dg-require-effective-target mbranch_protection_ok } */ |
| 4 |
/* { dg-additional-options "-mbranch-protection=bti+pac-ret+leaf -mfloat-abi=hard" } */ |
| 5 |
/* { dg-add-options arm_arch_v8_1m_main } */ |
| 6 |
|
| 7 |
#if (__ARM_FEATURE_BTI_DEFAULT != 1) |
| 8 |
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1." |
| 9 |
#endif |
| 10 |
|
| 11 |
#if (__ARM_FEATURE_PAC_DEFAULT != 5) |
| 12 |
#error "Feature test macro __ARM_FEATURE_PAC_DEFAULT should be defined to 5." |
| 13 |
#endif |
| 14 |
|