2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / widechar_1.f90
blob804de9d7a44edbef038624ac8d195d767131aed6
1 ! { dg-do compile }
2 ! { dg-options "-fbackslash" }
4 character(len=20,kind=4) :: s4
5 character(len=20,kind=1) :: s1
7 s1 = "foo\u0000"
8 s1 = "foo\u00ff"
9 s1 = "foo\u0100" ! { dg-error "is not representable" }
10 s1 = "foo\u0101" ! { dg-error "is not representable" }
11 s1 = "foo\U00000101" ! { dg-error "is not representable" }
13 s1 = 4_"foo bar"
14 s1 = 4_"foo\u00ff"
15 s1 = 4_"foo\u0101" ! { dg-error "cannot be converted" }
16 s1 = 4_"foo\u1101" ! { dg-error "cannot be converted" }
17 s1 = 4_"foo\UFFFFFFFF" ! { dg-error "cannot be converted" }
19 s4 = "foo\u0000"
20 s4 = "foo\u00ff"
21 s4 = "foo\u0100" ! { dg-error "is not representable" }
22 s4 = "foo\U00000100" ! { dg-error "is not representable" }
24 s4 = 4_"foo bar"
25 s4 = 4_"\xFF\x96"
26 s4 = 4_"\x00\x96"
27 s4 = 4_"foo\u00ff"
28 s4 = 4_"foo\u0101"
29 s4 = 4_"foo\u1101"
30 s4 = 4_"foo\Uab98EF56"
31 s4 = 4_"foo\UFFFFFFFF"
33 end