Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-std=gnu17" } */
3
4 extern char *globerr;
5 char **ftpglob();
6
7 static const int yypgoto[] =
8 {
9 -82, -82, -82, -82
10 };
11
12 static const int yydefgoto[] =
13 {
14 0, 1, 36, 37
15 };
16
17 static const int yytable[] =
18 {
19 43, 129, 88, 89
20 };
21
22 static const int yycheck[] =
23 {
24 8, 82, 4, 5
25 };
26
27
28 int yyparse (char **yyvsp, char *yyvsp1)
29 {
30 int yystate = 0;
31
32 int yyn;
33 int yyresult;
34 int yyval;
35
36 yyreduce:
37
38 switch (yyn)
39 {
40 case 72: {
41
42 if (__builtin_strncmp( yyvsp[0], "~", 1) == 0) {
43 *(char **)&(yyval) = *ftpglob(yyvsp[0]);
44 if (globerr != 0) {
45 yyval = 0;
46 }
47 __builtin_free(yyvsp[0]);
48 }
49 }
50 break;
51 }
52
53 *++yyvsp1 = yyval;
54
55 {
56 const int yyi = yypgoto[0] + *yyvsp1;
57 yystate = (yycheck[yyi] == *yyvsp1 ? 0 : 0);
58 }
59
60 return yyresult;
61 }
62