diff options
author | Duncan Sands <baldrick@free.fr> | 2010-03-16 11:36:35 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-03-16 11:36:35 +0000 |
commit | 984751e5a78835b76fc7f2a09d08161c75c1fc81 (patch) | |
tree | e2df29878c6fc21e6fadeefccec94b89497cb24c /test | |
parent | 22385eb8527f6bf8083ee85f85dc51e4d4928aaa (diff) | |
download | external_llvm-984751e5a78835b76fc7f2a09d08161c75c1fc81.zip external_llvm-984751e5a78835b76fc7f2a09d08161c75c1fc81.tar.gz external_llvm-984751e5a78835b76fc7f2a09d08161c75c1fc81.tar.bz2 |
Check that P is not zero initialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/FrontendC++/2010-03-16-SinkStores.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendC++/2010-03-16-SinkStores.cpp b/test/FrontendC++/2010-03-16-SinkStores.cpp new file mode 100644 index 0000000..7b4b500 --- /dev/null +++ b/test/FrontendC++/2010-03-16-SinkStores.cpp @@ -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; +} |