aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/b15206.d
blob: 13e7c0061c8570777efb733f475d3f34efdc8ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PERMUTE_ARGS:
// REQUIRED_ARGS: -O

void main()
{
}

struct Line
{
    double slope;
    double intercept;
}

Line nLineProjection(double[] historicData)
{
    Line projLine;
    projLine.intercept = historicData[$-1] + projLine.slope;
    return projLine;
}