2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr43799.c
blobde9022d0cb6b9bdff5167ca0873761ea766e281c
1 /* { dg-do run } */
2 /* { dg-options "-O -fschedule-insns" } */
4 int f4 (int i, ...)
6 int y = 0;
7 __builtin_va_list ap;
8 __builtin_va_start(ap, i);
9 if (i == 5) y = __builtin_va_arg(ap, double);
10 __builtin_va_end(ap);
11 return y;
14 int main (void)
16 if (f4 (5, 7.0) != 7)
17 __builtin_abort ();
18 return 0;