From 7abf924d31287b688558718d1f70cb4c56caaddb Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 5 Feb 2012 19:27:57 +0000 Subject: [PATCH] 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 --- test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll 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 00000000000..419f5947678 --- /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> ) + ret void +}