about summary refs log tree commit diff homepage
path: root/test/Runtime/Uclibc/2007-10-08-optimization-calls-wrong-libc-functions.c
blob: f3de99c1e27cabf4144eae2379523d9ec537cfef (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 %O0opt -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;
}