diff options
Diffstat (limited to 'test/FrontendC++')
-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 0000000000..7b4b500eb5 --- /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; +} |