summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test9278b.d
blob: 0b4fee2f491ee9c3059ac1d86be6cf2981c9740e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PREMUTE_ARGS:

// Works fine here
//struct datum { float num = 0.0; }

datum emitOne()
{
    datum t;
    return t;
}
const dataArr = [emitOne()];

// A very bad day
struct datum { float num = 0.0; }

void main(){}