Suppress clang warnings in some tests

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@246399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-08-30 22:04:20 +00:00
parent 9eddf6e1f5
commit 408369b7c9
9 changed files with 55 additions and 28 deletions

View File

@@ -6,6 +6,8 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: c++98, c++03, c++11
// <optional>
@@ -15,8 +17,6 @@
#include <type_traits>
#include <cassert>
#if _LIBCPP_STD_VER > 11
using std::experimental::optional;
class X
@@ -41,17 +41,14 @@ public:
class Z
{
int i_;
public:
Z(int i) : i_(i) {}
Z(int) {}
Z(Z&&) {throw 6;}
};
#endif // _LIBCPP_STD_VER > 11
int main()
{
#if _LIBCPP_STD_VER > 11
{
typedef int T;
constexpr optional<T> opt(T(5));
@@ -106,5 +103,4 @@ int main()
assert(i == 6);
}
}
#endif // _LIBCPP_STD_VER > 11
}