File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,8 @@ token_t lex_token_internal(bool aliasing)
304
304
token_str [i - 1 ] = '\t' ;
305
305
else if (next_char == '\\' )
306
306
token_str [i - 1 ] = '\\' ;
307
+ else if (next_char == '0' )
308
+ token_str [i - 1 ] = '\0' ;
307
309
else
308
310
abort ();
309
311
} else {
@@ -334,6 +336,8 @@ token_t lex_token_internal(bool aliasing)
334
336
token_str [0 ] = '\t' ;
335
337
else if (next_char == '\\' )
336
338
token_str [0 ] = '\\' ;
339
+ else if (next_char == '0' )
340
+ token_str [0 ] = '\0' ;
337
341
else
338
342
abort ();
339
343
} else {
Original file line number Diff line number Diff line change @@ -630,6 +630,12 @@ int main() {
630
630
}
631
631
EOF
632
632
633
+ try_ 0 << EOF
634
+ int main() {
635
+ return '\0';
636
+ }
637
+ EOF
638
+
633
639
# function-like macro
634
640
try_ 1 << EOF
635
641
#define MAX(a, b) ((a) > (b) ? (a) : (b))
You can’t perform that action at this time.
0 commit comments