libstdc++: Fix find_last_set(simd_mask) to ignore padding bits
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 931004-12.c
blob08f89ca5216511af4d8aa85e8bb9f7239f852fa8
1 #include <stdarg.h>
3 void abort (void);
4 void exit (int);
6 struct tiny
8 char c;
9 char d;
10 char e;
13 void
14 f (int n, ...)
16 struct tiny x;
17 int i;
19 va_list ap;
20 va_start (ap,n);
21 for (i = 0; i < n; i++)
23 x = va_arg (ap,struct tiny);
24 if (x.c != i + 10)
25 abort();
26 if (x.d != i + 20)
27 abort();
28 if (x.e != i + 30)
29 abort();
32 long x = va_arg (ap, long);
33 if (x != 123)
34 abort();
36 va_end (ap);
39 int
40 main (void)
42 struct tiny x[3];
43 x[0].c = 10;
44 x[1].c = 11;
45 x[2].c = 12;
46 x[0].d = 20;
47 x[1].d = 21;
48 x[2].d = 22;
49 x[0].e = 30;
50 x[1].e = 31;
51 x[2].e = 32;
52 f (3, x[0], x[1], x[2], (long) 123);
53 exit(0);