| 1 |
/* TEST_OUTPUT: |
| 2 |
--- |
| 3 |
fail_compilation/issue22682.d(14): Error: `pragma(mangle)` must be attached to a declaration |
| 4 |
fail_compilation/issue22682.d(15): Error: `pragma(mangle)` takes a single argument that must be a string literal |
| 5 |
fail_compilation/issue22682.d(16): Error: `string` expected for pragma mangle argument, not `(0)` of type `int` |
| 6 |
fail_compilation/issue22682.d(16): Error: `pragma(mangle)` takes a single argument that must be a string literal |
| 7 |
fail_compilation/issue22682.d(17): Error: `pragma(mangle)` must be attached to a declaration |
| 8 |
--- |
| 9 |
*/ |
| 10 |
module issue22682; |
| 11 |
|
| 12 |
void main() |
| 13 |
{ |
| 14 |
pragma(mangle) {} |
| 15 |
pragma(mangle) static int i0; |
| 16 |
pragma(mangle, 0) static int i1; |
| 17 |
pragma(mangle); |
| 18 |
} |