about summary refs log tree commit diff homepage
path: root/test/regression/2008-04-10-bad-alloca-free.c
blob: a6215f64a1df1158e1d1dcb1df2695b310337e9d (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(addr, sizeof *addr, "moo");
}

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