Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/920728-1.c

raw
1 /* { dg-additional-options "-std=gnu89" } */
2 typedef struct {int dims[0]; } *A;
3
4 f(unsigned long obj)
5 {
6 unsigned char y = obj >> 24;
7 y &= ~4;
8
9 if ((y==0)||(y!=251 ))
10 abort();
11
12 if(((int)obj&7)!=7)return;
13
14 REST_OF_CODE_JUST_HERE_TO_TRIGGER_THE_BUG:
15
16 {
17 unsigned char t = obj >> 24;
18 if (!(t==0)&&(t<=0x03))
19 return 0;
20 return ((A)(obj&0x00FFFFFFL))->dims[1];
21 }
22 }
23
24 long g(){return 0xff000000L;}
25 main (){int x;f(g());exit(0);}