diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/testheader3.d')
-rw-r--r-- | gcc/testsuite/gdc.test/compilable/testheader3.d | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/testheader3.d b/gcc/testsuite/gdc.test/compilable/testheader3.d index f5fdbc1d43e..be38d7c76ee 100644 --- a/gcc/testsuite/gdc.test/compilable/testheader3.d +++ b/gcc/testsuite/gdc.test/compilable/testheader3.d @@ -1,8 +1,27 @@ -// EXTRA_SOURCES: extra-files/header3.d -// REQUIRED_ARGS: -o- -unittest -H -Hf${RESULTS_DIR}/compilable/header3.di -// PERMUTE_ARGS: -d -dw -// POST_SCRIPT: compilable/extra-files/header-postscript.sh header3 - -void main() {} +/* +EXTRA_SOURCES: extra-files/header3.d +REQUIRED_ARGS: -o- -unittest -H -Hf${RESULTS_DIR}/compilable/testheader3.di +PERMUTE_ARGS: -d -dw +OUTPUT_FILES: ${RESULTS_DIR}/compilable/testheader3.di +TEST_OUTPUT: +--- +=== ${RESULTS_DIR}/compilable/testheader3.di +// D import file generated from 'compilable/extra-files/header3.d' +auto elseifchain() +{ + bool a, b, c; + if (a) + { + } + else if (b) + { + } + else if (c) + { + } +} +--- +*/ +void main() {} |