Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gdc.dg / gdc43.d
blobe0d44a21b4eeb3f282eb23eca31be7a049d07ef0
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=43
2 // { dg-do compile }
4 void main()
6 import core.vararg;
7 import core.stdc.stdio;
9 void formatArray(ref va_list argptr)
11 auto a = va_arg!(const(float)[])(argptr);
12 foreach(f; a)
14 printf("%f\n", f);
18 void doFormat(TypeInfo[] arguments, va_list argptr)
20 formatArray(argptr);
23 void format(...)
25 doFormat(_arguments, _argptr);
28 format([1.0f, 2.0f, 3.0f]);