aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test19574.d
blob: 907bb3b8edf3ce73b75d2355494eb7e90d89345b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

static assert( Foo(10).bar.value == 10 );

extern(C++, "ns") {
    struct Foo {
        Bar!Foo bar;

        this( int v ) {
            bar.value = v;
        }
    }
}

extern(C++, "ns") {
    struct Bar(T) {
        int value;
    }
}