Csanád Hajdú | c579ec6 | 2025-03-10 10:26:53 +0100 | [diff] [blame] | 1 | // RUN: %clang --sysroot=%S/Inputs -c -fdriver-only -Werror --target=aarch64-unknown-linux-gnu \ |
| 2 | // RUN: -mexecute-only %s 2>&1 | count 0 |
| 3 | |
| 4 | // RUN: %clang -### --target=aarch64-unknown-linux-gnu -x assembler -mexecute-only %s -c -### 2>&1 | \ |
| 5 | // RUN: FileCheck %s --check-prefix=CHECK-NO-EXECUTE-ONLY-ASM |
| 6 | // RUN: %clang -### --multi-lib-config=%S/Inputs/multilib/empty.yaml --sysroot= \ |
| 7 | // RUN: --target=aarch64-none-elf -x assembler -mexecute-only %s -c -### 2>&1 | \ |
| 8 | // RUN: FileCheck %s --check-prefix=CHECK-NO-EXECUTE-ONLY-ASM |
| 9 | // CHECK-NO-EXECUTE-ONLY-ASM: warning: argument unused during compilation: '-mexecute-only' |