about summary refs log tree commit diff homepage
path: root/test/regression/2008-04-10-bad-alloca-free.c
blob: 46e2b0cf4d270a0178cc8c0a70ebd89bbe7081d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
// RUN: %klee --exit-on-error %t1.bc

void f(int *addr) {
  klee_make_symbolic_name(addr, sizeof *addr, "moo");
}

int main() {
  int x;
  f(&x);
  return x;
}