| 1 |
// RUN: %clang -target arm64-apple-xros1 -c -### %s 2>&1 | FileCheck --check-prefix=VERSION1 %s |
| 2 |
// RUN: %clang -target arm64-apple-xros -c -### %s 2>&1 | FileCheck --check-prefix=VERSION1 %s |
| 3 |
|
| 4 |
// RUN: %clang -target arm64-apple-xros1-simulator -c -### %s 2>&1 | FileCheck --check-prefix=VERSION1_ASi %s |
| 5 |
|
| 6 |
// RUN: not %clang -target arm64-apple-xros1000 -c -### %s 2>&1 | FileCheck --check-prefix=INVALID-VERSION %s |
| 7 |
|
| 8 |
// RUN: %clang -target arm64-apple-xros1 -### %s 2>&1 | FileCheck --check-prefix=LINK %s |
| 9 |
// RUN: %clang -target arm64-apple-xros1-simulator -### %s 2>&1 | FileCheck --check-prefix=LINK-SIM %s |
| 10 |
|
| 11 |
// RUN: %clang -target arm64-apple-xros1 -c -x objective-c -fobjc-arc -### %s 2>&1 | FileCheck --check-prefix=ARC %s |
| 12 |
// RUN: %clang -target arm64-apple-xros -c -x objective-c -fobjc-arc -### %s 2>&1 | FileCheck --check-prefix=OBJC-RUNTIME %s |
| 13 |
// RUN: %clang -target arm64-apple-xros2 -c -x objective-c -fobjc-arc -### %s 2>&1 | FileCheck --check-prefix=OBJC-RUNTIME2 %s |
| 14 |
|
| 15 |
// RUN: %clang -target arm64-apple-xros1 -c -x objective-c -fobjc-arc -### %s 2>&1 | FileCheck --check-prefix=ARC %s |
| 16 |
// RUN: %clang -target arm64-apple-xros1-simulator -c -x objective-c -fobjc-arc -### %s 2>&1 | FileCheck --check-prefix=ARC %s |
| 17 |
|
| 18 |
// RUN: %clang -target arm64-apple-xros -c -### %s 2>&1 | FileCheck --check-prefix=SSP_ON %s |
| 19 |
|
| 20 |
// RUN: %clang -target arm64e-apple-xros -c -### %s 2>&1 | FileCheck --check-prefix=CPU-ARM64E %s |
| 21 |
// RUN: %clang -target arm64-apple-xros -c -### %s 2>&1 | FileCheck --check-prefix=CPU-ARM64 %s |
| 22 |
// RUN: %clang -target arm64-apple-xros-simulator -c -### %s 2>&1 | FileCheck --check-prefix=CPU-ARM64-SIM %s |
| 23 |
|
| 24 |
// VERSION1: "-cc1"{{.*}} "-triple" "arm64-apple-xros1.0.0" |
| 25 |
// VERSION1_ASi: "-cc1"{{.*}} "-triple" "arm64-apple-xros1.0.0-simulator" |
| 26 |
// INVALID-VERSION: error: invalid version number in |
| 27 |
|
| 28 |
// VERSION1-NOT: -faligned-alloc-unavailable |
| 29 |
|
| 30 |
// LINK: "-platform_version" "xros" "1.0.0" "1.0.0" |
| 31 |
// LINK-SIM: "-platform_version" "xros-simulator" "1.0.0" "1.0.0" |
| 32 |
|
| 33 |
// OBJC-RUNTIME: "-fobjc-runtime=ios-17.0.0" |
| 34 |
// OBJC-RUNTIME2: "-fobjc-runtime=ios-18.0.0" |
| 35 |
// ARC-NOT: error: |
| 36 |
|
| 37 |
// SSP_ON: "-stack-protector" "1" |
| 38 |
|
| 39 |
// CPU-ARM64E: "-cc1"{{.*}} "-triple" "arm64e-apple-xros1.0.0"{{.*}} "-target-cpu" "apple-a12"{{.*}} |
| 40 |
// CPU-ARM64: "-cc1"{{.*}} "-triple" "arm64-apple-xros1.0.0"{{.*}} "-target-cpu" "apple-a12" |
| 41 |
// CPU-ARM64-SIM: "-cc1"{{.*}} "-triple" "arm64-apple-xros1.0.0-simulator"{{.*}} "-target-cpu" "apple-m1" |