================
@@ -0,0 +1,25 @@
+// RUN: %clang_cc1 -x cuda -verify -Werror %s
+// RUN: %clang_cc1 -x hip -verify -Werror %s
+
+// The argument to '#pragma unroll' may be parenthesized in CUDA/HIP. nvcc
+// accepts both forms and generates identical code, and the CUDA C++ 
Programming
+// Guide documents the parenthesized form, so this must not diagnose.
+
+// expected-no-diagnostics
+
+void test(int *List, int Length) {
----------------
LuoYuanke wrote:

Revised

https://github.com/llvm/llvm-project/pull/244791
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to