1262569Simp! { dg-do run } 2262569Simp! { dg-options "-std=gnu" } 3262569Simp! PR43217 Output of Hollerith constants which are not a multiple of 4 bytes 4262569Simp! Test case prepared from OP by Jerry DeLisle <jvdelisle@gcc.gnu.org> 5262569Simpprogram hello2 6262569Simp call wrtout (9hHELLO YOU, 9) 7262569Simp stop 8262569Simpend 9262569Simp 10262569Simpsubroutine wrtout (iarray, nchrs) 11270864Simp integer iarray(1) 12270864Simp integer nchrs 13262569Simp 14262569Simp integer icpw 15262569Simp data icpw/4/ 16262569Simp integer i, nwrds 17262569Simp character(len=33) outstr 18262569Simp 19262569Simp nwrds = (nchrs + icpw - 1) /icpw 20262569Simp write(outstr,'(4(z8," "))') (iarray(i), i=1,nwrds) 21262569Simp if (outstr.ne."4C4C4548 4F59204F 20202055" .and. & 22262569Simp & outstr.ne."48454C4C 4F20594F 55202020") call abort 23284090Sian return 24284090Sianend 25284090Sian! { dg-warning "Hollerith constant" "" { target *-*-* } 6 } 26284090Sian! { dg-warning "Rank mismatch" "" { target *-*-* } 6 } 27284090Sian