about summary refs log tree commit diff homepage
path: root/test/regression
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2012-05-25 09:42:42 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2012-05-25 09:42:42 +0000
commit0957ad0803f472bcb2dc8a5f64aa5583d1d2c6fe (patch)
treec64172b958330d19b1588b04df9e1eb0b7d1c5a5 /test/regression
parent461594277fe53d64ab89b02856232276916379d6 (diff)
downloadklee-0957ad0803f472bcb2dc8a5f64aa5583d1d2c6fe.tar.gz
Patch by Paul Marinescu that makes KLEE gracefully fail on assembly code.
Includes test case.



git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@157463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/regression')
-rw-r--r--test/regression/2012-05-13-asm-causes-aborts.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/regression/2012-05-13-asm-causes-aborts.c b/test/regression/2012-05-13-asm-causes-aborts.c
new file mode 100644
index 00000000..6622d02b
--- /dev/null
+++ b/test/regression/2012-05-13-asm-causes-aborts.c
@@ -0,0 +1,8 @@
+// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
+// RUN: %klee %t1.bc
+
+int main(int argc, char *argv[]){
+	__asm__ __volatile__ ("movl %eax, %eax");
+	return 0;
+}
+