summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test9278a.d
blob: e0f483bd63d64b78b975d314eef1802b2a944379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PERMUTE_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(){}