Debian Codegraph @

gcc/testsuite/gdc.test/compilable/mixin.d

raw
1 /*
2 REQUIRED_ARGS: -mixin=${RESULTS_DIR}/runnable/mixin.mixin -o-
3 OUTPUT_FILES: ${RESULTS_DIR}/runnable/mixin.mixin
4
5 TEST_OUTPUT:
6 ----
7 === ${RESULTS_DIR}/runnable/mixin.mixin
8 // expansion at compilable/mixin.d(14)
9 int x =
10 123;
11
12 int y;
13
14
15
16 int z = x + y;
17 ----
18
19 https://issues.dlang.org/show_bug.cgi?id=1870
20 https://issues.dlang.org/show_bug.cgi?id=12790
21 */
22
23 #line 1
24 string get()
25 {
26 return "int x =\n 123;\r\n" ~
27 q{
28 int y;
29
30
31
32 int z = x + y;};
33 }
34
35 void main()
36 {
37 mixin(get());
38 }