1 int main(int argc, char** argv) {
2 #pragma omp TGT1_DIRECTIVE
5 #pragma omp LOOP_DIRECTIVE
6 for (int i = 0; i < argc; ++i)
10 #pragma omp BODY_DIRECTIVE
18 #pragma omp TGT2_DIRECTIVE
21 #pragma omp LOOP_DIRECTIVE
22 for (int i = 0; i < argc; ++i)
26 #pragma omp BODY_DIRECTIVE
35 // Check for an empty kernel (IR level)
36 // FIRST: define weak_odr {{.*}} void @__omp_offloading_{{.*}}_main
37 // FIRST-NEXT: ret void
39 // Check for two empty kernels (IR level)
40 // SECOND: define weak_odr {{.*}} void @__omp_offloading_{{.*}}_main
41 // SECOND-NEXT: ret void