|
1 | 1 | // Check the ABI version support. |
2 | 2 |
|
3 | | -// RUN: %clang -fptrauth-abi-version=5 -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix NOKERNELABIVERSION |
4 | | -// RUN: %clang -fptrauth-abi-version=5 -mkernel -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION |
5 | | -// RUN: %clang -fptrauth-abi-version=5 -fapple-kext -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION |
6 | | -// RUN: %clang -fptrauth-abi-version=5 -fptrauth-kernel-abi-version -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION |
| 3 | +// RUN: %clang -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION-DEFAULT --check-prefix NOKERNELABIVERSION |
| 4 | +// RUN: %clang -mkernel -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION-DEFAULT --check-prefix KERNELABIVERSION |
| 5 | +// RUN: %clang -fapple-kext -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION-DEFAULT --check-prefix KERNELABIVERSION |
| 6 | +// |
| 7 | +// RUN: %clang -fptrauth-abi-version=5 -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix NOKERNELABIVERSION |
| 8 | +// RUN: %clang -fptrauth-abi-version=5 -mkernel -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION |
| 9 | +// RUN: %clang -fptrauth-abi-version=5 -fapple-kext -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION |
| 10 | +// RUN: %clang -fptrauth-abi-version=5 -fptrauth-kernel-abi-version -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix KERNELABIVERSION |
7 | 11 |
|
8 | | -// RUN: %clang -fno-ptrauth-abi-version -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix NOABIVERSION --check-prefix NOKERNELABIVERSION |
9 | | -// RUN: %clang -fptrauth-abi-version=5 -fno-ptrauth-abi-version -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix NOABIVERSION --check-prefix NOKERNELABIVERSION |
10 | | -// RUN: %clang -fno-ptrauth-abi-version -fptrauth-abi-version=5 -arch arm64e -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix NOKERNELABIVERSION |
| 12 | +// RUN: %clang -fno-ptrauth-abi-version -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix NOABIVERSION --check-prefix NOKERNELABIVERSION |
| 13 | +// RUN: %clang -fptrauth-abi-version=5 -fno-ptrauth-abi-version -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix NOABIVERSION --check-prefix NOKERNELABIVERSION |
| 14 | +// RUN: %clang -fno-ptrauth-abi-version -fptrauth-abi-version=5 -target arm64e-apple-darwin -c %s -### 2>&1 | FileCheck %s --check-prefix ABIVERSION --check-prefix NOKERNELABIVERSION |
11 | 15 |
|
12 | 16 | // ABIVERSION: "-fptrauth-abi-version=5" |
13 | 17 | // ABIVERSION-DEFAULT: "-fptrauth-abi-version=0" |
|
0 commit comments