[clang] [Clang] Fix a crash introduced in PR#88666 (PR #89567)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 21 22:05:59 PDT 2024


================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -x c++ -verify %s
+// expected-no-diagnostics
+
+template <int Unroll> void foo() {
+  #pragma unroll Unroll
+  for (int i = 0; i < Unroll; ++i);
+}
----------------
yronglin wrote:

I'd like to add a test for '#pragma GCC unroll N', WDYT?

https://github.com/llvm/llvm-project/pull/89567


More information about the cfe-commits mailing list