diff options
author | Martin Nowack <m.nowack@imperial.ac.uk> | 2023-10-30 11:59:29 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2024-02-08 13:17:19 +0000 |
commit | f9cb81fa27ca6ae4fef1c22081040071d20e4413 (patch) | |
tree | cae0000d0087ad36d51e554c20d684433089c8e9 /test/Runtime/POSIX/Getenv.c | |
parent | 5371eb8474cc4dced751d0515c1ea9499d009668 (diff) | |
download | klee-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/Runtime/POSIX/Getenv.c')
-rw-r--r-- | test/Runtime/POSIX/Getenv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Runtime/POSIX/Getenv.c b/test/Runtime/POSIX/Getenv.c index 6dff3c24..d5db7c39 100644 --- a/test/Runtime/POSIX/Getenv.c +++ b/test/Runtime/POSIX/Getenv.c @@ -1,9 +1,10 @@ // RUN: %clang %s -emit-llvm %O0opt -c -o %t2.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out --libc=klee --posix-runtime --exit-on-error %t2.bc --sym-files 1 10 - #include <assert.h> - +#include <stdio.h> +#include <stdlib.h> +#include <string.h> int main(int argc, char **argv) { char *g = getenv("PWD"); if (g) { |