summaryrefslogtreecommitdiff
path: root/test/CodeGen/CPP
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-02-05 19:27:57 +0000
committerDuncan Sands <baldrick@free.fr>2012-02-05 19:27:57 +0000
commit7abf924d31287b688558718d1f70cb4c56caaddb (patch)
tree9ac171bd64625039c9228b0a46289cd916221e23 /test/CodeGen/CPP
parent87ba3f122b0203cf71e10c5e48d2d35beb3b0fc3 (diff)
downloadllvm-7abf924d31287b688558718d1f70cb4c56caaddb.tar.gz
llvm-7abf924d31287b688558718d1f70cb4c56caaddb.tar.bz2
llvm-7abf924d31287b688558718d1f70cb4c56caaddb.tar.xz
Testcase for commit 149833 (use of an uninitialized variable noticed
by GCC). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/CPP')
-rw-r--r--test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll b/test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll
new file mode 100644
index 0000000000..419f594767
--- /dev/null
+++ b/test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll
@@ -0,0 +1,6 @@
+; RUN: llc < %s -march=cpp
+declare void @foo(<4 x i32>)
+define void @bar() {
+ call void @foo(<4 x i32> <i32 0, i32 1, i32 2, i32 3>)
+ ret void
+}