about summary refs log tree commit diff homepage
path: root/test/Runtime/Uclibc/2007-10-08-optimization-calls-wrong-libc-functions.c
blob: 71f6d07a49fc5e4fa21d05d6d9502d7be44b306c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --exit-on-error --optimize --libc=uclibc %t1.bc

#include <string.h>
#include <assert.h>

int main() {
  int a;

  klee_make_symbolic(&a, sizeof a);

  memset(&a, 0, sizeof a);

  if (a) {
    assert(0);
  }
  
  return 0;
}