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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user