summaryrefslogtreecommitdiff
path: root/libgomp/testsuite
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-28 18:29:50 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-28 18:29:50 +0000
commitc8306b9c0c49be84b69c83c83da442953240ef73 (patch)
tree16bd0f056625bcd2864f21c5591d24f60437d748 /libgomp/testsuite
parent48efb0bb390457104c643dc2d7bb8c6b766e3104 (diff)
downloadgcc-c8306b9c0c49be84b69c83c83da442953240ef73.tar.gz
2010-01-28 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 156327 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@156329 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r--libgomp/testsuite/Makefile.in2
-rw-r--r--libgomp/testsuite/libgomp.fortran/allocatable5.f9017
2 files changed, 18 insertions, 1 deletions
diff --git a/libgomp/testsuite/Makefile.in b/libgomp/testsuite/Makefile.in
index c604322392f..21c255db1f5 100644
--- a/libgomp/testsuite/Makefile.in
+++ b/libgomp/testsuite/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.11 from Makefile.am.
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
diff --git a/libgomp/testsuite/libgomp.fortran/allocatable5.f90 b/libgomp/testsuite/libgomp.fortran/allocatable5.f90
new file mode 100644
index 00000000000..41809302413
--- /dev/null
+++ b/libgomp/testsuite/libgomp.fortran/allocatable5.f90
@@ -0,0 +1,17 @@
+! PR fortran/42866
+! { dg-do run }
+
+program pr42866
+ integer, allocatable :: a(:)
+ allocate (a(16))
+ a = 0
+ !$omp parallel
+ !$omp sections reduction(+:a)
+ a = a + 1
+ !$omp section
+ a = a + 2
+ !$omp end sections
+ !$omp end parallel
+ if (any (a.ne.3)) call abort
+ deallocate (a)
+end