about summary refs log tree commit diff homepage
path: root/test/Runtime/Uclibc/2007-10-08-optimization-calls-wrong-libc-functions.c
blob: 83e6a57a4030386f6281dd18297f3e7780f39593 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
// RUN: %klee --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;
}