diff options
Diffstat (limited to 'test/Feature/Memalign.c')
-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; +} |