summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2010-01-15 11:29:26 +0000
committerJay Foad <jay.foad@gmail.com>2010-01-15 11:29:26 +0000
commit46a49da410a738a68ecbd2964f519251ba27fc66 (patch)
tree994d9746d436949cedd8565e4c4ff68b982dd282 /test/ExecutionEngine
parent5b3701256c6706182ebfaeed8d50a66c6afe2a40 (diff)
downloadllvm-46a49da410a738a68ecbd2964f519251ba27fc66.tar.gz
llvm-46a49da410a738a68ecbd2964f519251ba27fc66.tar.bz2
llvm-46a49da410a738a68ecbd2964f519251ba27fc66.tar.xz
Test case for http://llvm.org/PR6028.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r--test/ExecutionEngine/2010-01-15-UndefValue.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ExecutionEngine/2010-01-15-UndefValue.ll b/test/ExecutionEngine/2010-01-15-UndefValue.ll
new file mode 100644
index 0000000000..7d646ebdeb
--- /dev/null
+++ b/test/ExecutionEngine/2010-01-15-UndefValue.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as %s -o %t.bc
+; RUN: lli -force-interpreter=true %t.bc
+
+define i32 @main() {
+ %a = add i32 0, undef
+ %b = add float 0.0, undef
+ %c = add double 0.0, undef
+ ret i32 0
+}