☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
b15206.d
☽
☼
gcc/testsuite/gdc.test/compilable/b15206.d
code
plain
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
}