aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/transfer_simplify_6.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/transfer_simplify_6.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/transfer_simplify_6.f909
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/transfer_simplify_6.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/transfer_simplify_6.f90
new file mode 100644
index 000000000..b557c064f
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gfortran.dg/transfer_simplify_6.f90
@@ -0,0 +1,9 @@
+! { dg-do compile }
+! Checks the fix for PR33733, in which the functions of arrays
+! for the 'source' argument would cause an ICE.
+!
+! Contributed by FX Coudert <fxcoudert@gcc.gnu.org>
+!
+ print *, transfer(sqrt([100.]), 0_1)
+ print *, transfer(achar([100]), 0_1)
+end