From 0283175fdda6bf4dbd9343b53987d0aee01ce9fc Mon Sep 17 00:00:00 2001 From: Lukas Wölfer Date: Mon, 27 Aug 2018 00:51:03 +0200 Subject: Implemented memalign with alignment --- test/Feature/Memalign.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/Feature/Memalign.c (limited to 'test') diff --git a/test/Feature/Memalign.c b/test/Feature/Memalign.c new file mode 100644 index 00000000..e2ce8de0 --- /dev/null +++ b/test/Feature/Memalign.c @@ -0,0 +1,14 @@ +// RUN: %llvmgcc -emit-llvm -g -c %s -o %t.bc +// RUN: rm -rf %t.klee-out +// RUN: %klee --output-dir=%t.klee-out --exit-on-error %t.bc > %t.log + +#include + +int main(int argc, char *argv[]) { + int *a = (int *)memalign(8, sizeof(int) * 5); + for (int i = 0; i < 5; ++i) { + a[i] = (i * 100) % 23; + } + free(a); + return 0; +} -- cgit 1.4.1