about summary refs log tree commit diff homepage
path: root/test/ArrayOpt
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2023-10-30 11:59:29 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2024-02-08 13:17:19 +0000
commitf9cb81fa27ca6ae4fef1c22081040071d20e4413 (patch)
treecae0000d0087ad36d51e554c20d684433089c8e9 /test/ArrayOpt
parent5371eb8474cc4dced751d0515c1ea9499d009668 (diff)
downloadklee-f9cb81fa27ca6ae4fef1c22081040071d20e4413.tar.gz
Assume C compiler's default standard is `-std=gnu17`
Newer compilers use `-std=gnu17` as the default when compiling C code.
Fix all the test cases that violate this behaviour or explicitly request
older standards `-std=c89` where necessary.
Diffstat (limited to 'test/ArrayOpt')
-rw-r--r--test/ArrayOpt/test_feasible.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ArrayOpt/test_feasible.c b/test/ArrayOpt/test_feasible.c
index 8e7009b4..8dc3c4e3 100644
--- a/test/ArrayOpt/test_feasible.c
+++ b/test/ArrayOpt/test_feasible.c
@@ -22,8 +22,9 @@
 // CHECK-OPT_V: KLEE: WARNING: OPT_V: successful
 // CHECK-CONST_ARR: const_arr
 
-#include <stdio.h>
 #include "klee/klee.h"
+#include <assert.h>
+#include <stdio.h>
 
 char array[5] = {0,1,0,1,0};