brintos

brintos / llvm-project-archived public Read only

0
0
Text · 470 B · c3aad6f Raw
14 lines · plain
1// RUN: %clang_cc1 -Wno-cuda-compat -Werror %s2// RUN: %clang_cc1 -Wcuda-compat -verify %s3// RUN: %clang_cc1 -x c++ -Wcuda-compat -Werror %s4 5// Note that this puts the expected lines before the directives to work around6// limitations in the -verify mode.7 8void test(int *List, int Length) {9/* expected-warning {{argument to '#pragma unroll' should not be in parentheses in CUDA C/C++}} */#pragma unroll(4)10  for (int i = 0; i < Length; ++i) {11    List[i] = i;12  }13}14