summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-13 05:14:18 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-13 05:14:18 +0000
commit61f23920f66f047d08254b3d4f244aab468648a6 (patch)
treedb6b07df3d7c977c398a0cfd38a96fb9d1f0b544 /gcc
parentd63ed4575f5af64587967042289cccf0e0c5be1a (diff)
downloadgcc-61f23920f66f047d08254b3d4f244aab468648a6.tar.gz
2010-08-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/42526 * gfortran.dg/char_component_initializer_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163220 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/char_component_initializer_2.f9016
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e0a2b96e6dc..04670c0b148 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libfortran/42526
+ * gfortran.dg/char_component_initializer_1.f90: New test.
+
2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
PR tree-optimization/45241
diff --git a/gcc/testsuite/gfortran.dg/char_component_initializer_2.f90 b/gcc/testsuite/gfortran.dg/char_component_initializer_2.f90
new file mode 100644
index 00000000000..e57fc865912
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/char_component_initializer_2.f90
@@ -0,0 +1,16 @@
+! { dg-do run }
+! { dg-options "-Wall" }
+! Added -Wall option to make sure PR42526 does not show up again.
+program gfcbug62
+ implicit none
+ character(len=16) :: tdefi(2) = (/'0z1jan0000','1hr '/)
+ type t_ctl
+ character(len=16) :: tdefi(2) = (/'0z1jan0000','1hr '/)
+ end type t_ctl
+
+ type(t_ctl) :: ctl
+ integer :: i,k
+ i = 1
+ k = 1
+ if (tdefi(1) .ne. ctl%tdefi(1)) call abort ()
+end program gfcbug62