From 5bcc3eed7b93f5e75b0bb121913f84f574b7c46a Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 10 Mar 2015 23:23:00 +0800 Subject: 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. --- tests/tests2/74_nocode_wanted.c | 1 + tests/tests2/74_nocode_wanted.expect | 1 + tests/tests2/Makefile | 1 + 3 files changed, 3 insertions(+) create mode 100644 tests/tests2/74_nocode_wanted.c create mode 100644 tests/tests2/74_nocode_wanted.expect (limited to 'tests/tests2') diff --git a/tests/tests2/74_nocode_wanted.c b/tests/tests2/74_nocode_wanted.c new file mode 100644 index 0000000..e824d02 --- /dev/null +++ b/tests/tests2/74_nocode_wanted.c @@ -0,0 +1 @@ +int i = i++; diff --git a/tests/tests2/74_nocode_wanted.expect b/tests/tests2/74_nocode_wanted.expect new file mode 100644 index 0000000..f060ef4 --- /dev/null +++ b/tests/tests2/74_nocode_wanted.expect @@ -0,0 +1 @@ +74_nocode_wanted.c:1: error: initializer element is not constant diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile index 8bf753f..88c3e08 100644 --- a/tests/tests2/Makefile +++ b/tests/tests2/Makefile @@ -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 -- cgit v1.3.1