| 1 |
// RUN: %clang -target aarch64 -### %s 2>&1 | \ |
| 2 |
// RUN: FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY |
| 3 |
// RUN: %clang -target aarch64 -### -mexecute-only %s 2>&1 | \ |
| 4 |
// RUN: FileCheck %s -check-prefix CHECK-EXECUTE-ONLY |
| 5 |
// RUN: %clang -target aarch64 -### -mexecute-only -mno-execute-only %s 2>&1 | \ |
| 6 |
// RUN: FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY |
| 7 |
|
| 8 |
/// -mpure-code flag for GCC compatibility |
| 9 |
// RUN: %clang -target aarch64 -### %s 2>&1 | \ |
| 10 |
// RUN: FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY |
| 11 |
// RUN: %clang -target aarch64 -### -mpure-code %s 2>&1 | \ |
| 12 |
// RUN: FileCheck %s -check-prefix CHECK-EXECUTE-ONLY |
| 13 |
// RUN: %clang -target aarch64 -### -mpure-code -mno-pure-code %s 2>&1 | \ |
| 14 |
// RUN: FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY |
| 15 |
|
| 16 |
// CHECK-NO-EXECUTE-ONLY-NOT: "+execute-only" |
| 17 |
// CHECK-EXECUTE-ONLY: "+execute-only" |
| 18 |
|
| 19 |
void a() {} |