[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / mglobal-merge.c
blob42019e1cae00bef50c5112f8d345c51ab9744cc8
1 // RUN: %clang --target=armv7 -### -fsyntax-only %s 2> %t \
2 // RUN: -mno-global-merge
3 // RUN: FileCheck --check-prefix=CHECK-NGM-ARM < %t %s
5 // RUN: %clang --target=aarch64 -### -fsyntax-only %s 2> %t \
6 // RUN: -mno-global-merge
7 // RUN: FileCheck --check-prefix=CHECK-NGM-AARCH64 < %t %s
9 // RUN: %clang --target=x86_64 -### -fsyntax-only %s 2> %t \
10 // RUN: -mno-global-merge
11 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
13 // CHECK-NGM-ARM: "-mllvm" "-arm-global-merge=false"
14 // CHECK-NGM-AARCH64: "-mllvm" "-aarch64-enable-global-merge=false"
16 // RUN: %clang --target=armv7 -### -fsyntax-only %s 2> %t \
17 // RUN: -mglobal-merge
18 // RUN: FileCheck --check-prefix=CHECK-GM-ARM < %t %s
20 // RUN: %clang --target=aarch64 -### -fsyntax-only %s 2> %t \
21 // RUN: -mglobal-merge
22 // RUN: FileCheck --check-prefix=CHECK-GM-AARCH64 < %t %s
24 // RUN: %clang --target=x86_64 -### -fsyntax-only %s 2> %t \
25 // RUN: -mglobal-merge
26 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
28 // CHECK-GM-ARM: "-mllvm" "-arm-global-merge=true"
29 // CHECK-GM-AARCH64: "-mllvm" "-aarch64-enable-global-merge=true"
31 // RUN: %clang --target=armv7 -### -fsyntax-only %s 2> %t
32 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
34 // RUN: %clang --target=aarch64 -### -fsyntax-only %s 2> %t
35 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
37 // RUN: %clang --target=x86_64 -### -fsyntax-only %s 2> %t
38 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
40 // CHECK-NONE-NOT: -global-merge=