Check that P is not zero initialized.
authorDuncan Sands <baldrick@free.fr>
Tue, 16 Mar 2010 11:36:35 +0000 (11:36 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 16 Mar 2010 11:36:35 +0000 (11:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98627 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC++/2010-03-16-SinkStores.cpp [new file with mode: 0644]

diff --git a/test/FrontendC++/2010-03-16-SinkStores.cpp b/test/FrontendC++/2010-03-16-SinkStores.cpp
new file mode 100644 (file)
index 0000000..7b4b500
--- /dev/null
@@ -0,0 +1,11 @@
+// RUN: %llvmgxx -S %s -o - | FileCheck %s
+
+#include <utility>
+
+typedef std::pair<int,int> P;
+// CHECK: @_ZZ1fvE1X {{.*}} undef
+
+P f() {
+  static const P X = P(1,2);
+  return X;
+}