aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.dg/gomp/pr58809.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.dg/gomp/pr58809.c')
-rw-r--r--gcc-4.8/gcc/testsuite/gcc.dg/gomp/pr58809.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.dg/gomp/pr58809.c b/gcc-4.8/gcc/testsuite/gcc.dg/gomp/pr58809.c
new file mode 100644
index 000000000..5dc02f65a
--- /dev/null
+++ b/gcc-4.8/gcc/testsuite/gcc.dg/gomp/pr58809.c
@@ -0,0 +1,13 @@
+/* PR middle-end/58809 */
+/* { dg-do compile } */
+/* { dg-options "-fopenmp -O" } */
+
+int i;
+#pragma omp threadprivate (i)
+
+void foo()
+{
+ _Complex int j;
+#pragma omp parallel copyin (i) reduction (&&:j)
+ ;
+}