c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / gdc196.d
blob750cef81c970eceec6c4c198c7c5b6c056c3879b
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=196
2 // { dg-do assemble }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
5 class C196
7 int a;
10 struct S196
12 int a;
15 void test196()
17 __gshared c = new C196();
18 __gshared s = new S196(0);
19 c.a = 1;
20 s.a = 1;