about summary refs log tree commit diff homepage
path: root/test/regression/2007-07-30-unflushed-byte.c
blob: ba8a08a790166d839e915f1bd629b438833311ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
// RUN: %klee %t1.bc

#include <assert.h>

int main() {
  char i, x[3];

  klee_make_symbolic(&i, sizeof i);

  x[0] = i;

  // DEMAND FAILED:Memory.cpp:read8:199: <isByteFlushed(offset)> is false: "unflushed byte without cache value"
  char y =  x[1];

  return 0;
}