PR tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20001026-1.c
blob6ddcc5a6f250be045dda08ccab99a0bd67eeee0f
1 extern void abort (void);
3 typedef struct {
4 long r[(19 + sizeof (long))/(sizeof (long))];
5 } realvaluetype;
7 typedef void *tree;
9 static realvaluetype
10 real_value_from_int_cst (tree x, tree y)
12 realvaluetype r;
13 int i;
14 for (i = 0; i < sizeof(r.r)/sizeof(long); ++i)
15 r.r[i] = -1;
16 return r;
19 struct brfic_args
21 tree type;
22 tree i;
23 realvaluetype d;
26 static void
27 build_real_from_int_cst_1 (data)
28 void * data;
30 struct brfic_args *args = (struct brfic_args *) data;
31 args->d = real_value_from_int_cst (args->type, args->i);
34 int main()
36 struct brfic_args args;
38 __builtin_memset (&args, 0, sizeof(args));
39 build_real_from_int_cst_1 (&args);
41 if (args.d.r[0] == 0)
42 abort ();
43 return 0;