aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/fno-plt.c
blob: c7bd7130593be0c06db7372d6de8a24413349381 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang -### -c --target=aarch64 -fno-plt -Werror %s 2>&1 | FileCheck %s --check-prefix=NOPLT
// RUN: %clang -### -c --target=x86_64 -fno-plt -Werror %s 2>&1 | FileCheck %s --check-prefix=NOPLT

// RUN: %clang -### -c --target=aarch64 -fno-plt -fplt -Werror %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
// RUN: %clang -### -c --target=powerpc64 -fno-plt %s 2>&1 | FileCheck %s --check-prefixes=WARN,DEFAULT
// RUN: %clang -### -c --target=aarch64-windows -fno-plt %s 2>&1 | FileCheck %s --check-prefixes=WARN,DEFAULT

// WARN: warning: argument unused during compilation: '-fno-plt' [-Wunused-command-line-argument]
// NOPLT: "-fno-plt"
// DEFAULT-NOT: "-fno-plt"