about summary refs log tree commit diff homepage
path: root/test/Runtime/Uclibc/2007-10-08-optimization-calls-wrong-libc-functions.c
blob: d82f0eb9a60dd0d2213b8697504bc8b8d50ba24e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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>

#include "klee/klee.h"

int main() {
  int a;

  klee_make_symbolic(&a, sizeof a, "a");

  memset(&a, 0, sizeof a);

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