[Openmp-commits] [clang] [openmp] [Clang][OpenMP] Mixed signed/unsigned trip counts fix (PR #226462)
Michael Kruse via Openmp-commits
openmp-commits at lists.llvm.org
Mon Oct 5 02:49:07 PDT 2026
================
@@ -0,0 +1,25 @@
+// RUN: %libomp-compile -fopenmp-version=61 && %libomp-run \
+// RUN: | FileCheck %s --match-full-lines
+
+#include <stdio.h>
+#include <stdlib.h>
+
+typedef __SIZE_TYPE__ size_t;
+
+int main(void) {
+ int n = 2;
----------------
Meinersbur wrote:
[suggestion] Also test n=0, and n=<negative> cases, like by calling a function with `n` with 2, 0, and -2
https://github.com/llvm/llvm-project/pull/226462
More information about the Openmp-commits
mailing list