[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGenOpenCL / debug-info-programming-language.cl
blobfc57a41e5a299016750f18ed859a5387225d96ce
1 // RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -triple %itanium_abi_triple %s -o - \
2 // RUN: -x cl -O0 -disable-llvm-passes -debug-info-kind=limited \
3 // RUN: | FileCheck --check-prefix=CHECK-OPENCL %s
4 // RUN: %clang_cc1 -dwarf-version=3 -emit-llvm -triple %itanium_abi_triple %s -o - \
5 // RUN: -x cl -O0 -disable-llvm-passes -debug-info-kind=limited \
6 // RUN: | FileCheck --check-prefix=CHECK-OPENCL %s
7 // RUN: %clang_cc1 -dwarf-version=3 -gstrict-dwarf -emit-llvm -triple %itanium_abi_triple %s -o - \
8 // RUN: -x cl -O0 -disable-llvm-passes -debug-info-kind=limited \
9 // RUN: | FileCheck --check-prefix=CHECK-C99 %s
10 // RUN: %clang_cc1 -dwarf-version=5 -gstrict-dwarf -emit-llvm -triple %itanium_abi_triple %s -o - \
11 // RUN: -x cl -O0 -disable-llvm-passes -debug-info-kind=limited \
12 // RUN: | FileCheck --check-prefix=CHECK-OPENCL %s
14 kernel void empty() {}
16 // CHECK-OPENCL: distinct !DICompileUnit(language: DW_LANG_OpenCL,
17 // CHECK-C99: distinct !DICompileUnit(language: DW_LANG_C99,