about summary refs log tree commit diff homepage
path: root/test/Feature/OneFreeError.c
blob: 8eb132981bfab3b89c250d84bfc458ff35d45773 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
// RUN: %klee %t1.bc
// RUN: test -f klee-last/test000001.ptr.err

int main() {
  int *x = malloc(4);
  free(x);
  x[0] = 1;
  return 0;
}