|
2 | 2 | // NONE: "-cc1"
|
3 | 3 | // NONE-NOT: "-fptrauth-
|
4 | 4 |
|
5 |
| -// RUN: %clang -### -c --target=aarch64 -fno-ptrauth-intrinsics -fptrauth-intrinsics %s 2>&1 | FileCheck %s --check-prefix=INTRIN |
6 |
| -// INTRIN: "-cc1"{{.*}} "-fptrauth-intrinsics" |
7 |
| - |
8 |
| -// RUN: %clang -### -c --target=aarch64 -fno-ptrauth-calls -fptrauth-calls %s 2>&1 | FileCheck %s --check-prefix=CALL |
9 |
| -// CALL: "-cc1"{{.*}} "-fptrauth-calls" |
10 |
| - |
11 |
| -// RUN: %clang -### -c --target=aarch64 -fno-ptrauth-returns -fptrauth-returns %s 2>&1 | FileCheck %s --check-prefix=RETURN |
12 |
| -// RETURN: "-cc1"{{.*}} "-fptrauth-returns" |
13 |
| - |
14 |
| -// RUN: %clang -### -c --target=aarch64 -fno-ptrauth-auth-traps -fptrauth-auth-traps %s 2>&1 | FileCheck %s --check-prefix=TRAP |
15 |
| -// TRAP: "-cc1"{{.*}} "-fptrauth-auth-traps" |
16 |
| - |
17 |
| -// RUN: %clang -### -c --target=aarch64 -fno-ptrauth-vtable-pointer-address-discrimination \ |
18 |
| -// RUN: -fptrauth-vtable-pointer-address-discrimination %s 2>&1 | FileCheck %s --check-prefix=VPTRADDR |
19 |
| -// VPTRADDR: "-cc1"{{.*}} "-fptrauth-vtable-pointer-address-discrimination" |
20 |
| - |
21 |
| -// RUN: %clang -### -c --target=aarch64 -fno-ptrauth-vtable-pointer-type-discrimination \ |
22 |
| -// RUN: -fptrauth-vtable-pointer-type-discrimination %s 2>&1 | FileCheck %s --check-prefix=VPTRTYPE |
23 |
| -// VPTRTYPE: "-cc1"{{.*}} "-fptrauth-vtable-pointer-type-discrimination" |
24 |
| - |
25 |
| -// RUN: %clang -### -c --target=aarch64 -fno-ptrauth-init-fini -fptrauth-init-fini %s 2>&1 | FileCheck %s --check-prefix=INITFINI |
26 |
| -// INITFINI: "-cc1"{{.*}} "-fptrauth-init-fini" |
| 5 | +// RUN: %clang -### -c --target=aarch64 \ |
| 6 | +// RUN: -fno-ptrauth-intrinsics -fptrauth-intrinsics \ |
| 7 | +// RUN: -fno-ptrauth-calls -fptrauth-calls \ |
| 8 | +// RUN: -fno-ptrauth-returns -fptrauth-returns \ |
| 9 | +// RUN: -fno-ptrauth-auth-traps -fptrauth-auth-traps \ |
| 10 | +// RUN: -fno-ptrauth-vtable-pointer-address-discrimination -fptrauth-vtable-pointer-address-discrimination \ |
| 11 | +// RUN: -fno-ptrauth-vtable-pointer-type-discrimination -fptrauth-vtable-pointer-type-discrimination \ |
| 12 | +// RUN: -fno-ptrauth-init-fini -fptrauth-init-fini \ |
| 13 | +// RUN: %s 2>&1 | FileCheck %s --check-prefix=ALL |
| 14 | +// ALL: "-cc1"{{.*}} "-fptrauth-intrinsics" "-fptrauth-calls" "-fptrauth-returns" "-fptrauth-auth-traps" "-fptrauth-vtable-pointer-address-discrimination" "-fptrauth-vtable-pointer-type-discrimination" "-fptrauth-init-fini" |
27 | 15 |
|
28 | 16 | // RUN: not %clang -### -c --target=x86_64 -fptrauth-intrinsics -fptrauth-calls -fptrauth-returns -fptrauth-auth-traps \
|
29 | 17 | // RUN: -fptrauth-vtable-pointer-address-discrimination -fptrauth-vtable-pointer-type-discrimination \
|
|
0 commit comments