dmd/compiler/test/fail_compilation/varargsstc.d
Nick Treleaven 8974bb128d
Fix Bugzilla 24707 - error message has bad parameter attribute order (#16791)
* Fix Bugzilla 24707 - error message has bad attribute order

* Fix tests

* Fix & split error test into 2 lines
2024-08-19 14:29:23 +03:00

12 lines
413 B
D

/* TEST_OUTPUT:
---
fail_compilation/varargsstc.d(102): Error: variadic parameter cannot have attributes `out`
fail_compilation/varargsstc.d(103): Error: variadic parameter cannot have attributes `ref`
---
*/
#line 100
int printf(const(char)*, const scope shared return ...);
int printf(const(char)*, ref out scope immutable shared return ...);
int printf(const(char)*, ref scope immutable shared return ...);