gcc/testsuite/gdc.test/runnable/fix22624.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=22624 |
| 2 | // EXTRA_FILES: imports/imp22624.c |
| 3 | |
| 4 | import core.stdc.stdio; |
| 5 | import imports.imp22624; |
| 6 | |
| 7 | struct S |
| 8 | { |
| 9 | B b; |
| 10 | ulong y = 0x1234_0000_5678; |
| 11 | } |
| 12 | |
| 13 | int main() |
| 14 | { |
| 15 | S s; |
| 16 | //printf("%llx\n", s.y); |
| 17 | assert(s.y == 0x1234_0000_5678); |
| 18 | return 0; |
| 19 | } |