| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/issue21378.d(13): Error: function `issue21378.fn` circular dependency. Functions cannot be interpreted while being compiled |
| 5 |
fail_compilation/issue21378.d(12): called from here: `fn()` |
| 6 |
fail_compilation/issue21378.d(12): Error: pragma(`inline`, `true` or `false`) expected, not `fn()` |
| 7 |
--- |
| 8 |
*/ |
| 9 |
|
| 10 |
// Cannot call the same function linked to the pragma |
| 11 |
// Really hard to fix this limitation in the implementation |
| 12 |
pragma(inline, fn()) |
| 13 |
int fn() |
| 14 |
{ |
| 15 |
return 1; |
| 16 |
} |