Debian Codegraph @

gcc/testsuite/gdc.dg/gdc196.d

raw
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=196
2 // { dg-do assemble }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5 class C196
6 {
7 int a;
8 }
9
10 struct S196
11 {
12 int a;
13 }
14
15 void test196()
16 {
17 __gshared c = new C196();
18 __gshared s = new S196(0);
19 c.a = 1;
20 s.a = 1;
21 }