[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.

This commit is contained in:
Tomas Lindquist Olsen
2008-07-13 02:51:19 +02:00
parent d1e41f611e
commit cecb64b2e4
339 changed files with 388 additions and 172 deletions

19
tests/mini/vararg3.d Normal file
View File

@@ -0,0 +1,19 @@
module vararg3;
import tango.core.Vararg;
void func(...)
{
assert(_arguments.length == 3);
assert(_arguments[0] is typeid(int));
assert(_arguments[1] is typeid(float));
assert(_arguments[2] is typeid(long));
assert(va_arg!(int)(_argptr) == 4);
assert(va_arg!(float)(_argptr) == 2.5f);
assert(va_arg!(long)(_argptr) == 42L);
}
void main()
{
func(4, 2.5f, 42L);
}