Debian Codegraph @

gcc/testsuite/gdc.dg/torture/gdc57.d

raw
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=57
2 // { dg-do run }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5 struct S57
6 {
7 int a;
8 long b;
9 // Doesn't happen for bigger structs
10 }
11
12 S57 bar57()
13 {
14 return S57(4, 42);
15 }
16
17 void main()
18 {
19 S57 s = bar57();
20 assert (s is S57(4, 42));
21 }