aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/char_length_4.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/char_length_4.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/char_length_4.f9013
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/char_length_4.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/char_length_4.f90
new file mode 100644
index 000000000..13a9b781b
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gfortran.dg/char_length_4.f90
@@ -0,0 +1,13 @@
+! { dg-do compile }
+! tests the fix for PR31540, in which the character lengths in
+! parentheses were not resolved.
+!
+! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
+!
+ subroutine pfb()
+ implicit none
+ external pfname1, pfname2
+ character ((136)) pfname1
+ character ((129+7)) pfname2
+ return
+ end