From: Duncan Sands Date: Tue, 16 Mar 2010 11:36:35 +0000 (+0000) Subject: Check that P is not zero initialized. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=984751e5a78835b76fc7f2a09d08161c75c1fc81;ds=sidebyside Check that P is not zero initialized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98627 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; +}