about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2016-07-22 13:05:33 +0100
committerGitHub <noreply@github.com>2016-07-22 13:05:33 +0100
commit66adc6374cc9b43db2beccec9ae0a547dc411eae (patch)
treeb3c2c832d3f8fb119a9384dfb6ab77cd23bd6bea /test
parentc1037080cb61ec6d5d8af3db97a6ad5f35d7af31 (diff)
parenta6b2f63dbf0dd4498409d3caaf34eaccea3019ea (diff)
downloadklee-66adc6374cc9b43db2beccec9ae0a547dc411eae.tar.gz
Merge pull request #425 from jirislaby/globals
Executor: do not crash on non-sized globals
Diffstat (limited to 'test')
-rw-r--r--test/Feature/NonSizedGlobals.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Feature/NonSizedGlobals.c b/test/Feature/NonSizedGlobals.c
new file mode 100644
index 00000000..b98f7bf1
--- /dev/null
+++ b/test/Feature/NonSizedGlobals.c
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc %s -emit-llvm -g -c -o %t1.bc
+// RUN: rm -rf %t.klee-out
+// RUN: %klee --output-dir=%t.klee-out --exit-on-error %t1.bc
+
+struct X;
+extern struct X Y;
+void *ptr = &Y;
+
+int main()
+{
+	return 0;
+}