Testcase for commit 149833 (use of an uninitialized variable noticed
authorDuncan Sands <baldrick@free.fr>
Sun, 5 Feb 2012 19:27:57 +0000 (19:27 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 5 Feb 2012 19:27:57 +0000 (19:27 +0000)
by GCC).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149840 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll [new file with mode: 0644]

diff --git a/test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll b/test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll
new file mode 100644 (file)
index 0000000..419f594
--- /dev/null
@@ -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
+}