[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / debug-info-sysroot-sdk.c
blobb52d2e1de9c1db7c551bd5c33afa3caa92ecc654
1 // RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \
2 // RUN: %s -isysroot /CLANG_SYSROOT/MacOSX.sdk -emit-llvm -o - \
3 // RUN: -debugger-tuning=lldb | FileCheck %s --check-prefix=LLDB
4 // RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \
5 // RUN: %s -isysroot /CLANG_SYSROOT/MacOSX.sdk -emit-llvm -o - \
6 // RUN: -debugger-tuning=gdb | FileCheck %s --check-prefix=GDB
8 void foo(void) {}
10 // The sysroot and sdk are LLDB-tuning-specific attributes.
12 // LLDB: distinct !DICompileUnit({{.*}}sysroot: "/CLANG_SYSROOT/MacOSX.sdk"
13 // LLDB-SAME: sdk: "MacOSX.sdk"
14 // GDB: distinct !DICompileUnit(
15 // GDB-NOT: sysroot: "/CLANG_SYSROOT/MacOSX.sdk"
16 // GDB-NOT: sdk: "MacOSX.sdk"