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:
1
tests/tests2/74_nocode_wanted.c
Normal file
1
tests/tests2/74_nocode_wanted.c
Normal file
@ -0,0 +1 @@
|
||||
int i = i++;
|
||||
1
tests/tests2/74_nocode_wanted.expect
Normal file
1
tests/tests2/74_nocode_wanted.expect
Normal file
@ -0,0 +1 @@
|
||||
74_nocode_wanted.c:1: error: initializer element is not constant
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user