[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / loongarch-abi-error.c
blob2d4f4b925026bcdb82c6e13ce8f593e8f4aaafd0
1 // RUN: not %clang --target=loongarch32-unknown-elf %s -fsyntax-only -mabi=lp64s 2>&1 \
2 // RUN: | FileCheck --check-prefix=CHECK-LA32-LP64S %s
3 // RUN: not %clang --target=loongarch32-unknown-elf %s -fsyntax-only -mabi=lp64f 2>&1 \
4 // RUN: | FileCheck --check-prefix=CHECK-LA32-LP64F %s
5 // RUN: not %clang --target=loongarch32-unknown-elf %s -fsyntax-only -mabi=lp64d 2>&1 \
6 // RUN: | FileCheck --check-prefix=CHECK-LA32-LP64D %s
8 // RUN: not %clang --target=loongarch64-unknown-elf %s -fsyntax-only -mabi=ilp32s 2>&1 \
9 // RUN: | FileCheck --check-prefix=CHECK-LA64-ILP32S %s
10 // RUN: not %clang --target=loongarch64-unknown-elf %s -fsyntax-only -mabi=ilp32f 2>&1 \
11 // RUN: | FileCheck --check-prefix=CHECK-LA64-ILP32F %s
12 // RUN: not %clang --target=loongarch64-unknown-elf %s -fsyntax-only -mabi=ilp32d 2>&1 \
13 // RUN: | FileCheck --check-prefix=CHECK-LA64-ILP32D %s
15 // CHECK-LA32-LP64S: error: unknown target ABI 'lp64s'
16 // CHECK-LA32-LP64F: error: unknown target ABI 'lp64f'
17 // CHECK-LA32-LP64D: error: unknown target ABI 'lp64d'
19 // CHECK-LA64-ILP32S: error: unknown target ABI 'ilp32s'
20 // CHECK-LA64-ILP32F: error: unknown target ABI 'ilp32f'
21 // CHECK-LA64-ILP32D: error: unknown target ABI 'ilp32d'