summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/gdc196.d
blob: 750cef81c970eceec6c4c198c7c5b6c056c3879b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// https://bugzilla.gdcproject.org/show_bug.cgi?id=196
// { dg-do assemble }
// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }

class C196
{
    int a;
}

struct S196
{
    int a;
}

void test196()
{
    __gshared c = new C196();
    __gshared s = new S196(0);
    c.a = 1;
    s.a = 1;
}