From 984751e5a78835b76fc7f2a09d08161c75c1fc81 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 16 Mar 2010 11:36:35 +0000 Subject: [PATCH] Check that P is not zero initialized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98627 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC++/2010-03-16-SinkStores.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/FrontendC++/2010-03-16-SinkStores.cpp diff --git a/test/FrontendC++/2010-03-16-SinkStores.cpp b/test/FrontendC++/2010-03-16-SinkStores.cpp new file mode 100644 index 00000000000..7b4b500eb53 --- /dev/null +++ b/test/FrontendC++/2010-03-16-SinkStores.cpp @@ -0,0 +1,11 @@ +// RUN: %llvmgxx -S %s -o - | FileCheck %s + +#include + +typedef std::pair P; +// CHECK: @_ZZ1fvE1X {{.*}} undef + +P f() { + static const P X = P(1,2); + return X; +} -- 2.34.1