No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / 20070801-1.c
blobd6a034cd13d32d6371dbbec4ea46ba739d50a1f0
1 /* This failed on s390x due to a back end bug. */
3 /* { dg-do compile { target fpic } } */
4 /* { dg-options "-O2 -fpic" } */
6 typedef long unsigned int size_t;
7 typedef enum
9 TYPE_SCHAR, TYPE_LONGDOUBLE
11 arg_type;
13 typedef struct
15 arg_type type;
16 union
18 signed char a_schar;
19 long double a_longdouble;
23 argument;
25 typedef struct
27 argument *arg;
29 arguments;
31 int ind;
33 extern void foo (arguments *a);
35 void
36 bar ()
38 arguments a;
39 char *buf;
40 char *result;
41 int uninitialized;
42 int count, i;
43 int retcount;
45 foo (&a);
47 switch (a.arg[ind].type)
49 case TYPE_SCHAR:
51 if (uninitialized == 0)
52 __builtin___snprintf_chk (result, 10, 1, 10, buf, 1, &count);
54 case TYPE_LONGDOUBLE:
56 long double arg = a.arg[ind].a.a_longdouble;
58 if (uninitialized == 0)
59 __builtin___snprintf_chk (result, 10, 1, 10, buf, arg, &count);