[TySan] Don't report globals with incomplete types. (#121922)
[llvm-project.git] / clang / test / OpenMP / debug-info-kmpc.cpp
blobee4e0108469c8393767154732c803b6f9ba55cca
1 // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm-bc %s -o %t-ppc-host.bc
2 // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple amdgcn-amd-amdhsa -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm %s -fopenmp-is-target-device "-debug-info-kind=constructor" -fopenmp-host-ir-file-path %t-ppc-host.bc -o - | FileCheck %s
4 // Check that we properly attach debug info to the __kmpc_global_thread_num call
5 // CHECK: call {{.*}} @__kmpc_global_thread_num{{.*}}!dbg
7 extern int bar();
8 void foo() {
9 #pragma omp target teams
11 #pragma omp parallel
13 bar();