2 ! { dg-options "-fbackslash" }
4 call testme(test("foo"), test4(4_
"foo"), 1)
5 call testme(test(""), test4(4_
""), 1)
6 call testme(test("gee"), test4(4_
"gee"), 4)
7 call testme(test("bar"), test4(4_
"bar"), 1)
8 call testme(test("magi"), test4(4_
"magi"), 4)
9 call testme(test("magic"), test4(4_
"magic"), 2)
10 call testme(test("magic "), test4(4_
"magic "), 2)
11 call testme(test("magica"), test4(4_
"magica"), 4)
12 call testme(test("freeze"), test4(4_
"freeze"), 3)
13 call testme(test("freeze "), test4(4_
"freeze "), 3)
14 call testme(test("frugal"), test4(4_
"frugal"), 3)
15 call testme(test("frugal "), test4(4_
"frugal "), 3)
16 call testme(test("frugal \x01"), test4(4_
"frugal \x01"), 3)
17 call testme(test("frugal \xFF"), test4(4_
"frugal \xFF"), 4)
20 integer function test(s
)
28 case ("freeze":"frugal")
35 integer function test4(s
)
36 character(kind
=4,len
=*) :: s
43 case (4_
"freeze":4_
"frugal")
50 subroutine testme(x
,y
,z
)
52 if (x
/= y
) call abort
53 if (x
/= z
) call abort