diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2015-03-10 23:23:00 +0800 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2015-03-10 23:27:14 +0800 |
| commit | 5bcc3eed7b93f5e75b0bb121913f84f574b7c46a (patch) | |
| tree | 0fbe82b6df225a8b9d155f24f4b5ebbad1acfa46 /tests/tests2 | |
| parent | 68605ab4d41fedf6f13e58a81ef75913e8544387 (diff) | |
| download | tinycc-5bcc3eed7b93f5e75b0bb121913f84f574b7c46a.tar.gz tinycc-5bcc3eed7b93f5e75b0bb121913f84f574b7c46a.tar.bz2 | |
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.
Diffstat (limited to 'tests/tests2')
| -rw-r--r-- | tests/tests2/74_nocode_wanted.c | 1 | ||||
| -rw-r--r-- | tests/tests2/74_nocode_wanted.expect | 1 | ||||
| -rw-r--r-- | tests/tests2/Makefile | 1 |
3 files changed, 3 insertions, 0 deletions
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 |
