[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Frontend / invalid-cxx-abi.cpp
blob031ccc20ad0ac446f59acd113f5f67eed20e9559
1 // These shouldn't be valid -fc++-abi values.
2 // RUN: not %clang_cc1 -emit-llvm -o /dev/null -fc++-abi=InvalidABI %s 2>&1 | FileCheck %s -check-prefix=INVALID
3 // RUN: not %clang_cc1 -emit-llvm -o /dev/null -fc++-abi=Fuchsia %s 2>&1 | FileCheck %s -check-prefix=CASE-SENSITIVE
4 // INVALID: error: invalid C++ ABI name 'InvalidABI'
5 // CASE-SENSITIVE: error: invalid C++ ABI name 'Fuchsia'
7 // Some C++ ABIs are not supported on some platforms.
8 // RUN: not %clang_cc1 -emit-llvm -o /dev/null -fc++-abi=fuchsia -triple i386 %s 2>&1 | FileCheck %s -check-prefix=UNSUPPORTED-FUCHSIA
9 // UNSUPPORTED-FUCHSIA: error: C++ ABI 'fuchsia' is not supported on target triple 'i386'