Add some missing nocode_wanted guard

int i = i++ causes a segfault because of missing guard. Looking
recursively at all backend functions called from middle end several more
guard appeared to be missing.
This commit is contained in:
Thomas Preud'homme
2015-03-10 23:23:00 +08:00
parent 68605ab4d4
commit 5bcc3eed7b
4 changed files with 31 additions and 17 deletions

View File

@ -0,0 +1 @@
int i = i++;

View File

@ -0,0 +1 @@
74_nocode_wanted.c:1: error: initializer element is not constant

View File

@ -93,6 +93,7 @@ TESTS = \
71_macro_empty_arg.test \
72_long_long_constant.test \
73_arm64.test \
74_nocode_wanted.test
# 34_array_assignment.test -- array assignment is not in C standard