about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
authorMartinNowack <martin.nowack@gmail.com>2016-08-08 22:01:00 +0200
committerGitHub <noreply@github.com>2016-08-08 22:01:00 +0200
commit74d88a5e0d6020fc262c166e42b8acdc335b4999 (patch)
treef6bbef19c49dc0c5b7484fcc563b4a21f2185234 /test
parentdf62e30a8883f3c146700f3666442c7ada42ba3c (diff)
parentad866e123b6be8a160ecb87249884cc3dfc3a349 (diff)
downloadklee-74d88a5e0d6020fc262c166e42b8acdc335b4999.tar.gz
Merge pull request #447 from hutoTUM/fix-klee_get_obj_size
Fix for klee_get_obj_size() crashing on 64-bit, resolves #446 
Diffstat (limited to 'test')
-rw-r--r--test/regression/2016-08-06-klee-get-obj-size.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/regression/2016-08-06-klee-get-obj-size.c b/test/regression/2016-08-06-klee-get-obj-size.c
new file mode 100644
index 00000000..df4114ff
--- /dev/null
+++ b/test/regression/2016-08-06-klee-get-obj-size.c
@@ -0,0 +1,14 @@
+// RUN: %llvmgcc %s -emit-llvm -g -O0 -c -o %t.bc
+// RUN: rm -rf %t.klee-out
+// RUN: %klee --output-dir=%t.klee-out %t.bc
+// RUN: test -f %t.klee-out/test000001.assert.err
+
+
+#include <klee/klee.h>
+#include <assert.h>
+
+int main() {
+  char s[5];
+  assert(5 != klee_get_obj_size(s));
+  return 0;
+}