]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail80_m64.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail80_m64.d
1 // REQUIRED_ARGS: -m64
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail80_m64.d(28): Error: cannot implicitly convert expression `"progress_rem"` of type `string` to `ulong`
6 fail_compilation/fail80_m64.d(29): Error: cannot implicitly convert expression `"redo"` of type `string` to `ulong`
7 ---
8 */
9
10 module paintshop;
11
12 class Image{}
13
14 class ResourceManager
15 {
16 Image getImage(char[] name) { return null; }
17 }
18
19 class Test
20 {
21
22
23
24 static Image[] images;
25
26 static void initIcons()
27 {
28 images["progress_rem"] = ResourceManager.getImage("progress_rem.gif"); // delete_obj_dis
29 images["redo"] = ResourceManager.getImage("redo.gif");
30 }
31 }