about summary refs log tree commit diff homepage
path: root/test/regression/2008-04-10-bad-alloca-free.c
blob: 5049f47ce8d4c4303619436dd7c22f5c1cc92e63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --exit-on-error %t1.bc

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

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