Mercurial > projects > dang
comparison tests/parser/string_1.d @ 187:08b6ce45b456
Changed the way static arrays are represented
Now uses [3 x i32] rather than [3 x i32]*, and when using constants they are
copied before use.
Also dixed a test or two
author | Anders Halager <halager@gmail.com> |
---|---|
date | Fri, 25 Jul 2008 12:53:58 +0200 |
parents | 6cb2f4201e2a |
children |
comparison
equal
deleted
inserted
replaced
186:e1e170c2cd44 | 187:08b6ce45b456 |
---|---|
22 char[1] s14 = x"0A"; | 22 char[1] s14 = x"0A"; |
23 char[6] s15 = x"00 FBCD 32FD 0A"; | 23 char[6] s15 = x"00 FBCD 32FD 0A"; |
24 | 24 |
25 /* And some custom ones */ | 25 /* And some custom ones */ |
26 | 26 |
27 char[8] s16 = "\x61\u05D0\U000201A4"; | 27 char[7] s16 = "\x61\u05D0\U000201A4"; |
28 char[2] s17 = "\122\522"; | 28 char[2] s17 = "\122\522"; |
29 char[6] s18 = x"61 62 63 64 | 29 char[8] s18 = x"61 62 63 64 |
30 65 66 67 68"; | 30 65 66 67 68"; |
31 | 31 |
32 char[4] s19 = "\®\&"; | 32 char[3] s19 = "\®\&"; |
33 | 33 |
34 char[4] s20 = "\®\&"c; | 34 char[3] s20 = "\®\&"c; |
35 wchar[2] s21 = "\®\&"w; | 35 wchar[2] s21 = "\®\&"w; |
36 dchar[2] s22 = "\®\&"d; | 36 dchar[2] s22 = "\®\&"d; |
37 | 37 |
38 return 0; | 38 return 0; |
39 } | 39 } |