[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / fextend-args.c
blob0b721202a0006844584e9720e52064651968ff9b
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