1 // RUN: %clang_cc1 -verify -fopenmp -triple x86_64-unknown-linux-gnu \ 2 // RUN: -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s 3 4 // expected-no-diagnostics 5 6 int x[100]; 7 int y[100]; 8 9 // CHECK-LABEL: @many_iterators_single_clause( 10 // CHECK: [[VLA:%.*]] = alloca [[STRUCT_KMP_DEPEND_INFO:%.*]], i64 10, align 16 11 // CHECK: = call i32 @__kmpc_omp_task_with_deps(%struct.ident_t* {{.*}}, i32 {{.*}}, i8* {{.*}}, i32 10, i8* {{.*}}, i32 0, i8* null) 12 void many_iterators_single_clause() { 13 #pragma omp task depend(iterator(j=0:5), in: x[j], y[j]) 14 { 15 } 16 } 17 18 // CHECK-LABEL: @many_iterators_many_clauses( 19 // CHECK: [[VLA:%.*]] = alloca [[STRUCT_KMP_DEPEND_INFO:%.*]], i64 10, align 16 20 // CHECK: = call i32 @__kmpc_omp_task_with_deps(%struct.ident_t* {{.*}}, i32 {{.*}}, i8* {{.*}}, i32 10, i8* {{.*}}, i32 0, i8* null) 21 void many_iterators_many_clauses() { 22 #pragma omp task depend(iterator(j=0:5), in: x[j]) \ 23 depend(iterator(j=0:5), in: y[j]) 24 { 25 } 26 } 27