Fix a handful of tests that fail in C++03

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@243392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-07-28 07:31:50 +00:00
parent bfb46e486d
commit b47a434d60
8 changed files with 35 additions and 35 deletions

View File

@@ -14,6 +14,8 @@
#include <utility>
#include <type_traits>
#include "test_macros.h"
class A
{
A(const A&);
@@ -22,9 +24,9 @@ class A
int main()
{
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
#if TEST_STD_VER >= 11
static_assert((std::is_same<decltype(std::declval<A>()), A&&>::value), "");
#else
static_assert((std::is_same<decltype(std::declval<A>()), A>::value), "");
static_assert((std::is_same<decltype(std::declval<A>()), A&>::value), "");
#endif
}