| 1 |
// https://issues.dlang.org/show_bug.cgi?id=21092 |
| 2 |
|
| 3 |
/* |
| 4 |
TEST_OUTPUT: |
| 5 |
--- |
| 6 |
fail_compilation/fail21092.d(19): Error: using the result of a comma expression is not allowed |
| 7 |
fail_compilation/fail21092.d(19): Error: using `*` on an array is no longer supported; use `*(T , U).ptr` instead |
| 8 |
fail_compilation/fail21092.d(19): Error: `*(T , cast(real*)U)` has no effect |
| 9 |
fail_compilation/fail21092.d(26): Error: using the result of a comma expression is not allowed |
| 10 |
fail_compilation/fail21092.d(26): Error: using `*` on an array is no longer supported; use `*(w , SmallStirlingCoeffs).ptr` instead |
| 11 |
fail_compilation/fail21092.d(26): Error: `*(w , cast(real*)SmallStirlingCoeffs)` has no effect |
| 12 |
--- |
| 13 |
*/ |
| 14 |
|
| 15 |
real[] T; |
| 16 |
real[] U = []; |
| 17 |
real erf() |
| 18 |
{ |
| 19 |
*(T, U); |
| 20 |
} |
| 21 |
|
| 22 |
real gammaStirling() |
| 23 |
{ |
| 24 |
static real[] SmallStirlingCoeffs = []; |
| 25 |
real w; |
| 26 |
*(w, SmallStirlingCoeffs); |
| 27 |
} |