1*67e74705SXin Li // RUN: %clang_cc1 -Wno-cuda-compat -Werror %s 2*67e74705SXin Li // RUN: %clang_cc1 -Wcuda-compat -verify %s 3*67e74705SXin Li // RUN: %clang_cc1 -x c++ -Wcuda-compat -Werror %s 4*67e74705SXin Li 5*67e74705SXin Li // Note that this puts the expected lines before the directives to work around 6*67e74705SXin Li // limitations in the -verify mode. 7*67e74705SXin Li test(int * List,int Length)8*67e74705SXin Livoid test(int *List, int Length) { 9*67e74705SXin Li /* expected-warning {{argument to '#pragma unroll' should not be in parentheses in CUDA C/C++}} */#pragma unroll(4) 10*67e74705SXin Li for (int i = 0; i < Length; ++i) { 11*67e74705SXin Li List[i] = i; 12*67e74705SXin Li } 13*67e74705SXin Li } 14