diff options
author | Lukas Wölfer <lukas.woelfer@rwth-aachen.de> | 2018-08-27 00:51:03 +0200 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2018-11-23 22:34:13 +0000 |
commit | 0283175fdda6bf4dbd9343b53987d0aee01ce9fc (patch) | |
tree | 53725b53080f718d22a8aa5d8661e63283c3084d /test/Feature | |
parent | 92b49c62b796e4c2544fc2415d9817068aed6eae (diff) | |
download | klee-0283175fdda6bf4dbd9343b53987d0aee01ce9fc.tar.gz |
Implemented memalign with alignment
Diffstat (limited to 'test/Feature')
-rw-r--r-- | test/Feature/Memalign.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 <stdlib.h> + +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; +} |