diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-01-11 18:26:05 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-01-11 18:26:05 +0000 |
commit | de8facc81f505ca7e86022911145271f614b96ea (patch) | |
tree | 27d2a92f66e87eecce3fd3a3010ba41b91a2f07d /test/CXX/special | |
parent | 463f13695f0acaed343daa189335fea56f81321b (diff) |
constexpr: fix typo resulting in move constructors sometimes not being
implicitly marked constexpr when they should be.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/special')
-rw-r--r-- | test/CXX/special/class.copy/p13-0x.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CXX/special/class.copy/p13-0x.cpp b/test/CXX/special/class.copy/p13-0x.cpp index 30d8c6ebad..0a9aa62145 100644 --- a/test/CXX/special/class.copy/p13-0x.cpp +++ b/test/CXX/special/class.copy/p13-0x.cpp @@ -53,3 +53,8 @@ constexpr NonConstexprDefault ncd = NonConstexprDefault(NonConstexprDefault(1)); constexpr Constexpr4 c4a = { ncd }; constexpr Constexpr4 c4b = Constexpr4(c4a); constexpr Constexpr4 c4c = Constexpr4(static_cast<Constexpr4&&>(const_cast<Constexpr4&>(c4b))); + +struct Constexpr5Base {}; +struct Constexpr5 : Constexpr5Base { constexpr Constexpr5() {} }; +constexpr Constexpr5 ce5move = Constexpr5(); +constexpr Constexpr5 ce5copy = ce5move; |