about summary refs log tree commit diff homepage
path: root/test/Feature/Memalign.c
blob: e5d09f6cdd2bb5746c7160bb59fff34d4af4e3e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang -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;
}