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