diff --git a/tests/runtest b/tests/runtest index 49ca5174..691cfa6b 100755 --- a/tests/runtest +++ b/tests/runtest @@ -7,13 +7,11 @@ if [ -z "$1" ] ; then fi TARGETFILE=$1 -# check for libtangobos-partial -if ! [ -f testincludes/libtangobos-partial.a ] ; then - echo "Could not find libtangobos-partial.a, attempting to build." - cd testincludes - make - cd .. -fi +# build libtangobos-partial +echo "Building libtangobos-partial.a" +cd testincludes +make +cd .. # check for dstress if ! [ -d dstress ] ; then diff --git a/tests/testincludes/std/stdarg.d b/tests/testincludes/std/stdarg.d index 9e69f6f4..2d2274dc 100644 --- a/tests/testincludes/std/stdarg.d +++ b/tests/testincludes/std/stdarg.d @@ -8,6 +8,13 @@ module std.stdarg; +version(LDC) +{ + public import ldc.vararg; +} +else +{ + alias void* va_list; template va_arg(T) @@ -20,3 +27,4 @@ template va_arg(T) } } +}