From f9cb81fa27ca6ae4fef1c22081040071d20e4413 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Mon, 30 Oct 2023 11:59:29 +0000 Subject: 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. --- test/DeterministicAllocation/OneOutOfBounds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/DeterministicAllocation') diff --git a/test/DeterministicAllocation/OneOutOfBounds.c b/test/DeterministicAllocation/OneOutOfBounds.c index 499ff06b..c3dbc597 100644 --- a/test/DeterministicAllocation/OneOutOfBounds.c +++ b/test/DeterministicAllocation/OneOutOfBounds.c @@ -2,7 +2,7 @@ // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out --kdalloc %t.bc 2>&1 | FileCheck %s // RUN: test -f %t.klee-out/test000001.ptr.err - +#include int main() { int *x = malloc(sizeof(int)); // CHECK: OneOutOfBounds.c:[[@LINE+1]]: memory error: out of bound pointer -- cgit 1.4.1