diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr42708-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr42708-1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr42708-1.c b/gcc/testsuite/gcc.c-torture/compile/pr42708-1.c new file mode 100644 index 000000000..9124a85b9 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr42708-1.c @@ -0,0 +1,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)); +} |