| 1 |
/* |
| 2 |
REQUIRED_ARGS: -preview=in -preview=dip1000 |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/previewin2.d(1): Error: cannot use `in` parameters with `extern(C)` functions |
| 6 |
fail_compilation/previewin2.d(1): parameter `a` declared as `in` here |
| 7 |
fail_compilation/previewin2.d(2): Error: cannot use `in` parameters with `extern(Windows)` functions |
| 8 |
fail_compilation/previewin2.d(2): parameter `a` declared as `in` here |
| 9 |
fail_compilation/previewin2.d(4): Error: cannot use `in` parameters with `extern(C)` functions |
| 10 |
fail_compilation/previewin2.d(4): parameter `__anonymous_param` declared as `in` here |
| 11 |
--- |
| 12 |
*/ |
| 13 |
|
| 14 |
#line 1 |
| 15 |
extern(C) void wrongLink1 (in int a); |
| 16 |
extern(Windows) void wrongLink2 (in void* a); |
| 17 |
struct Large { ulong[64] data; } |
| 18 |
extern(C) void wrongLink3 (in Large); |