Check that P is not zero initialized.

llvm-svn: 98627
This commit is contained in:
Duncan Sands 2010-03-16 11:36:35 +00:00
parent 86ca5493f7
commit 57f1191b0d
1 changed files with 11 additions and 0 deletions

View File

@ -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;
}