15 lines · c
1// REQUIRES: arm-registered-target2 3// RUN: %clang -target armv8--none-eabi -x c -E -dM %s -o - | FileCheck %s --check-prefix=NO-ROPI --check-prefix=NO-RWPI4// RUN: %clang -target armv8--none-eabi -x c -E -dM %s -o - -fropi | FileCheck %s --check-prefix=ROPI --check-prefix=NO-RWPI5// RUN: %clang -target armv8--none-eabi -x c -E -dM %s -o - -frwpi | FileCheck %s --check-prefix=NO-ROPI --check-prefix=RWPI6// RUN: %clang -target armv8--none-eabi -x c -E -dM %s -o - -fropi -frwpi | FileCheck %s --check-prefix=ROPI --check-prefix=RWPI7 8// Pre-defined macros for position-independence modes9 10// NO-ROPI-NOT: #define __APCS_ROPI11// ROPI: #define __ARM_ROPI12 13// NO-RWPI-NOT: #define __APCS_RWPI14// RWPI: #define __ARM_RWPI15