[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / fextend-args.c
blob7f19f8c5ec4872db82b704d589d1a2f498dc89a4
1 // Options for intel arch
2 // RUN: %clang -### -target x86_64-apple-darwin -fextend-arguments=32 %s 2>&1 \
3 // RUN: | FileCheck --implicit-check-not "-fextend-arguments=32" %s
4 // RUN: %clang -### -target x86_64-apple-darwin -fextend-arguments=64 %s 2>&1 \
5 // RUN: | FileCheck -check-prefix=CHECK-64 %s
7 // Unsupported target
8 // RUN: not %clang -target aarch64-unknown-windows-msvc -fextend-arguments=32 %s 2>&1 \
9 // RUN: | FileCheck -check-prefix=UNSUPPORTED-TARGET %s
11 // Invalid option value
12 // RUN: not %clang -target x86_64-apple-darwin -fextend-arguments=0 %s 2>&1 \
13 // RUN: | FileCheck -check-prefix=INVALID-VALUE %s
15 // CHECK-64: "-cc1" {{.*}}"-fextend-arguments=64"
16 // UNSUPPORTED-TARGET: error: unsupported option
17 // INVALID-VALUE: error: invalid argument '0' to -fextend-arguments