| 1 |
/* |
| 2 |
REQUIRED_ARGS: -inline |
| 3 |
*/ |
| 4 |
|
| 5 |
// https://issues.dlang.org/show_bug.cgi?id=24884 |
| 6 |
|
| 7 |
pragma(inline, false) |
| 8 |
bool norm(int a) => 0; |
| 9 |
|
| 10 |
pragma(inline, false) |
| 11 |
void inlinebug(ref double[4] point1, ref double[4] point2, ref double[4] point3, ref double[4] abcd) |
| 12 |
{ |
| 13 |
double[4] v1 = 0.0; |
| 14 |
double[4] v2 = 0.0; |
| 15 |
|
| 16 |
v1[0] = point1[0] - point2[0]; |
| 17 |
v1[1] = point1[1] - point2[1]; |
| 18 |
v1[2] = point1[2] - point2[2]; |
| 19 |
v1[3] = point1[3]; |
| 20 |
v2[0] = point2[0] - point3[0]; |
| 21 |
v2[1] = point2[1] - point3[1]; |
| 22 |
v2[2] = point2[2] - point3[2]; |
| 23 |
|
| 24 |
int p = cast(int) &abcd; |
| 25 |
int q = cast(int) &point1; |
| 26 |
abcd[0] = norm(7) + p; |
| 27 |
abcd[1] = q + p; |
| 28 |
} |
| 29 |
|
| 30 |
extern(C) void main() |
| 31 |
{ |
| 32 |
double[4] a = 0.0; |
| 33 |
inlinebug(a, a, a, a); |
| 34 |
} |