aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
commite94da45302705e522d870bc4b3c58f3ca3d04d8e (patch)
tree994d9746d436949cedd8565e4c4ff68b982dd282 /test
parent1c91e672b127b23964127592e881733a463c1ccf (diff)
downloadexternal_llvm-e94da45302705e522d870bc4b3c58f3ca3d04d8e.zip
external_llvm-e94da45302705e522d870bc4b3c58f3ca3d04d8e.tar.gz
external_llvm-e94da45302705e522d870bc4b3c58f3ca3d04d8e.tar.bz2
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')
-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 0000000..7d646eb
--- /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
+}