2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20080910-1.c
blobbf32775d4016b528ee9766768853944c546de283
1 /* This used to crash IRA with -O3 -fPIC.
2 See PR 37333. */
3 struct yy_buffer_state {
4 int yy_is_interactive;
5 };
6 static struct yy_buffer_state * * yy_buffer_stack = 0;
7 static int yy_n_chars;
8 int orafce_sql_yyleng;
9 unsigned char *yy_c_buf_p = 0;
10 extern char *orafce_sql_yytext;
11 static const int yy_ec[256] = { };
12 short yy_accept[155], yy_base[193] = { }, yy_def[193] = { };
13 short yy_chk[738] = { };
14 unsigned char *yy_last_accepting_cpos;
15 int orafce_sql_yylex (int a)
17 register int yy_current_state;
18 unsigned char *yy_cp, *yy_bp;
19 register int yy_act;
20 while ( 1 ) {
21 do {
22 char yy_c = yy_ec[*yy_cp];
23 if ( yy_accept[yy_current_state] )
24 yy_last_accepting_cpos = yy_cp;
25 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
26 yy_current_state = yy_def[yy_current_state];
27 } while ( yy_current_state != 154 );
28 yy_find_action:
29 yy_act = yy_accept[yy_current_state];
30 *yy_cp = '\0';
31 switch ( yy_act ) {
32 case 2:
33 *yy_cp = 1;
34 return 265;
35 case 24:
36 case 25:
37 addlit(orafce_sql_yytext, orafce_sql_yyleng);
38 case 26:
39 addlit(orafce_sql_yytext, orafce_sql_yyleng);
40 case 53:
41 yy_fatal_error( "flex scanner jammed" );
42 break;
43 case 54:
44 yy_cp = ++(yy_c_buf_p);
45 unsigned long n = 0;
46 if ( yy_buffer_stack[0]->yy_is_interactive )
47 for ( ; _IO_getc () != (-1) ; ++n )
48 yy_n_chars = n;
49 if (a == 0)
51 yy_current_state = yy_get_previous_state( );
52 goto yy_find_action;