Debian Codegraph @

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

raw
1 void exit (int);
2
3 static char id_space[2] [32 +1];
4 typedef short COUNT;
5
6 typedef char TEXT;
7
8 union T_VALS
9 {
10 TEXT *id __attribute__ ((aligned (2), packed)) ;
11 };
12 typedef union T_VALS VALS;
13
14 struct T_VAL
15 {
16 COUNT pos __attribute__ ((aligned (2), packed)) ;
17 VALS vals __attribute__ ((aligned (2), packed)) ;
18 };
19 typedef struct T_VAL VAL;
20
21 VAL curval = {0};
22
23 static short idc = 0;
24 static int cur_line;
25 static int char_pos;
26
27 typedef unsigned short WORD;
28
29 WORD
30 get_id (char c)
31 {
32 curval.vals.id[0] = c;
33 }
34
35 WORD
36 get_tok ()
37 {
38 char c = 'c';
39 curval.vals.id = id_space[idc];
40 curval.pos = (cur_line << 10) | char_pos;
41 return get_id (c);
42 }
43
44 int
45 main (void)
46 {
47 get_tok ();
48 exit (0);
49 }