From 76f2873d3e7ee6886e95e7b1e727075d7b008941 Mon Sep 17 00:00:00 2001 From: k-hara Date: Wed, 29 Jul 2015 19:12:20 +0900 Subject: [PATCH] Add missing test script runnable/link14834.sh --- test/runnable/link14834.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 test/runnable/link14834.sh diff --git a/test/runnable/link14834.sh b/test/runnable/link14834.sh new file mode 100755 index 000000000000..74f05ec02619 --- /dev/null +++ b/test/runnable/link14834.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +src=runnable${SEP}extra-files +dir=${RESULTS_DIR}${SEP}runnable +output_file=${dir}${SEP}link14834.sh.out + +rm -f ${output_file} + +if [ $OS == "win32" -o $OS == "win64" ]; then + LIBEXT=.lib +else + LIBEXT=.a +fi + +libname=${dir}${SEP}link14834${LIBEXT} +exename=${dir}${SEP}link14834${EXE} + +$DMD -m${MODEL} -I${src} -lib -of${libname} ${src}${SEP}link14834a.d > ${output_file} || exit 1 +$DMD -m${MODEL} -I${src} -inline -debug -of${exename} ${src}${SEP}link14834b.d ${libname} > ${output_file} || exit 1 + +${dir}/link14834 || exit 1 + +rm ${libname} ${exename} ${dir}${SEP}link14834${OBJ} + +echo Success > ${output_file}