URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [derived_constructor_char_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-fdump-tree-original" }!! PR fortran/44857!!Type :: t5character (len=5) :: txt(4)End Type t5character (len=3), parameter :: str3(2) = [ "ABC", "ZYX" ]character (len=5), parameter :: str5(2) = [ "AbCdE", "ZyXwV" ]character (len=5), parameter :: str7(2) = [ "aBcDeFg", "zYxWvUt" ]Type (t5) :: one = t5((/ "12345", "67890" /))Type (t5) :: two = t5((/ "123", "678" /))Type (t5) :: three = t5((/ "1234567", "abcdefg" /))Type (t5) :: four = t5(str3)Type (t5) :: five = t5(str5)Type (t5) :: six = t5(str7)print '(2a)', one, two, three, four, five, sixEndsubroutine wasICEing()implicit noneType :: Err_Text_Typeinteger :: nlinescharacter (len=132), dimension(5) :: txtEnd Type Err_Text_TypeType (Err_Text_Type) :: Mess_FindFMT = &Err_Text_Type(0, (/" "," "," "," "," "/))end subroutine wasICEingsubroutine anotherCheck()Type :: tcharacter (len=3) :: txt(2)End TypeType (t) :: tt = t((/ character(len=5) :: "12345", "67890" /))print *, ttend subroutine! { dg-final { scan-tree-dump-times "one = ..txt=..12345., .67890...;" 1 "original" } }! { dg-final { scan-tree-dump-times "two = ..txt=..123 ., .678 ...;" 1 "original" } }! { dg-final { scan-tree-dump-times "three = ..txt=..12345., .abcde...;" 1 "original" } }! { dg-final { scan-tree-dump-times "four = ..txt=..ABC ., .ZYX ...;" 1 "original" } }! { dg-final { scan-tree-dump-times "five = ..txt=..AbCdE., .ZyXwV...;" 1 "original" } }! { dg-final { scan-tree-dump-times "six = ..txt=..aBcDe., .zYxWv...;" 1 "original" } }! { dg-final { cleanup-tree-dump "original" } }
