2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr24306.c
blob1319918c3501a3099621b3145b973e44fa84a3eb
1 /* { dg-do run } */
2 /* { dg-options "-msse" } */
3 /* { dg-require-effective-target sse } */
5 #include "sse-check.h"
7 extern void abort(void);
8 typedef int __attribute__ ((vector_size (16))) foo_t;
10 struct s
12 foo_t f[0];
13 } s1;
15 void
16 check (int x, ...) __attribute__((noinline));
17 void
18 check (int x, ...)
20 int y;
21 __builtin_va_list ap;
23 __builtin_va_start (ap, x);
24 __builtin_va_arg (ap, struct s);
25 y = __builtin_va_arg (ap, int);
27 if (y != 7)
28 abort ();
31 static void
32 sse_test (void)
34 check (3, s1, 7);