mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
38 lines
530 B
D
38 lines
530 B
D
/*
|
|
REQUIRED_ARGS: -mixin=${RESULTS_DIR}/runnable/mixin.mixin -o-
|
|
OUTPUT_FILES: ${RESULTS_DIR}/runnable/mixin.mixin
|
|
|
|
TEST_OUTPUT:
|
|
----
|
|
=== ${RESULTS_DIR}/runnable/mixin.mixin
|
|
// expansion at compilable/mixin.d(14)
|
|
int x =
|
|
123;
|
|
|
|
int y;
|
|
|
|
|
|
|
|
int z = x + y;
|
|
----
|
|
|
|
https://issues.dlang.org/show_bug.cgi?id=1870
|
|
https://issues.dlang.org/show_bug.cgi?id=12790
|
|
*/
|
|
|
|
#line 1
|
|
string get()
|
|
{
|
|
return "int x =\n 123;\r\n" ~
|
|
q{
|
|
int y;
|
|
|
|
|
|
|
|
int z = x + y;};
|
|
}
|
|
|
|
void main()
|
|
{
|
|
mixin(get());
|
|
}
|