(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
acle/
pacbti-m-predef-4.c
       1  /* { dg-do run } */
       2  /* { dg-require-effective-target arm_pacbti_hw } */
       3  /* { dg-options "-march=armv8.1-m.main+pacbti+fp -mbranch-protection=pac-ret -mthumb -mfloat-abi=hard" } */
       4  
       5  #if !defined (__ARM_FEATURE_PAC_DEFAULT)
       6  #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined."
       7  #endif
       8  
       9  #if defined (__ARM_FEATURE_BTI_DEFAULT)
      10  #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be undefined."
      11  #endif
      12  
      13  int
      14  main()
      15  {
      16    if (__ARM_FEATURE_PAC_DEFAULT != 1)
      17      __builtin_abort ();
      18  
      19    return 0;
      20  }