summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr42708-1.c
blob: 9124a85b9057379e4b3ae81474a465b8f017e5d9 (plain)
1
2
3
4
5
6
7
8
9
10
typedef __SIZE_TYPE__ size_t;
void *malloc(size_t);
typedef union YYSTYPE {
    char *id;
}  YYSTYPE;
extern YYSTYPE yylval;
void yylex (int b)
{
  yylval = (YYSTYPE) (b ? 0 : (char *) malloc (4));
}