[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / gnustep-dispatch-method.m
blob6cd043fb2720439667e898919e3f6a38aad11233
1 // DEFINE: %{triple} =
2 // DEFINE: %{ver} = 1.6
3 // DEFINE: %{prefix} = CHECK-MSGSEND
4 // DEFINE: %{check} = %clang --target=%{triple} -fobjc-runtime=gnustep-%{ver} -### -c %s 2>&1 | FileCheck -check-prefix=%{prefix} %s
6 // REDEFINE: %{ver} = 1.6
7 // REDEFINE: %{triple} = i386-unknown-freebsd
8 // RUN: %{check}
9 // REDEFINE: %{triple} = x86_64-unknown-freebsd
10 // RUN: %{check}
11 // REDEFINE: %{triple} = arm-unknown-freebsd
12 // RUN: %{check}
13 // REDEFINE: %{prefix} = CHECK-MSGLOOKUP
14 // REDEFINE: %{triple} = aarch64-unknown-freebsd
15 // RUN: %{check}
16 // REDEFINE: %{triple} = mips64-unknown-freebsd
17 // RUN: %{check}
18 // REDEFINE: %{triple} = riscv64-unknown-freebsd
19 // RUN: %{check}
21 // REDEFINE: %{ver} = 1.9
22 // REDEFINE: %{prefix} = CHECK-MSGSEND
23 // REDEFINE: %{triple} = aarch64-unknown-freebsd
24 // RUN: %{check}
25 // REDEFINE: %{triple} = mips64-unknown-freebsd
26 // RUN: %{check}
27 // REDEFINE: %{prefix} = CHECK-MSGLOOKUP
28 // REDEFINE: %{triple} = riscv64-unknown-freebsd
29 // RUN: %{check}
31 // REDEFINE: %{ver} = 2.2
32 // REDEFINE: %{prefix} = CHECK-MSGSEND
33 // REDEFINE: %{triple} = riscv64-unknown-freebsd
34 // RUN: %{check}
37 // CHECK-MSGSEND: "-cc1"{{.*}} "-fobjc-dispatch-method=non-legacy"
38 // CHECK-MSGLOOKUP-NOT: "-cc1"{{.*}} "-fobjc-dispatch-method=non-legacy"