Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / graphite / pr38084.c
blob7193f9600264ff65b589f90e5c334bd3bf6012df
1 /* { dg-options "-O3 -fgraphite-identity" } */
3 typedef struct {
4 unsigned int avail_out;
5 void *state;
6 } stream;
8 typedef struct {
9 stream* test;
10 int num;
11 } state_in;
13 int test_in ( stream *test, int action )
15 state_in* tst;
16 if (test == ((void *)0)) return (-2);
17 if (tst == ((void *)0)) return (-2);
18 if (tst->test != test) return (-2);
19 jump_here:
20 switch (tst->num) {
21 case 1:
22 return (-1);
23 case 2:
24 if (action == 0) {
26 if (action == 1) {
27 goto jump_here;
30 return 0;