Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr62312.c

raw
1 /* PR target/62312 */
2
3 typedef struct { unsigned int arg[100]; } *FunctionCallInfo;
4 typedef struct { int day; int month; } Interval;
5 void* palloc (unsigned int);
6 int bar (void);
7 void baz (void);
8
9 void
10 interval_pl (FunctionCallInfo fcinfo)
11 {
12 Interval *span1 = ((Interval *) ((char *) ((fcinfo->arg[0]))));
13 Interval *span2 = ((Interval *) ((char *) ((fcinfo->arg[1]))));
14 Interval *result = (Interval *) palloc (sizeof (Interval));
15
16 if ((((span1->month) < 0) == ((span2->month) < 0))
17 && !(((result->month) < 0) == ((span1->month) < 0)))
18 do {
19 if (bar ())
20 baz ();
21 } while(0);
22 result->day = span1->day + span2->day;
23 }