Debian Codegraph @

gcc/testsuite/gdc.test/compilable/b15206.d

raw
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -O
3
4 void main()
5 {
6 }
7
8 struct Line
9 {
10 double slope;
11 double intercept;
12 }
13
14 Line nLineProjection(double[] historicData)
15 {
16 Line projLine;
17 projLine.intercept = historicData[$-1] + projLine.slope;
18 return projLine;
19 }