]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/g++.dg/gomp/pr67522.C
gcc/
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / gomp / pr67522.C
index 84c854afd929b5f23322cb1e646387a2a806c34b..da8cb74d1fa25038452d6a933ea259f5425cb763 100644 (file)
@@ -17,6 +17,10 @@ foo (void)
 
   #pragma omp task depend (inout: S[0:10])     // { dg-error "is not a variable in" }
   ;
+
+  #pragma omp for reduction (+:S[0:10])                // { dg-error "is not a variable in" }
+  for (int i = 0; i < 16; i++)
+    ;
 }
 
 void