diff options
Diffstat (limited to 'gnu/llvm/unittests/Support/ErrorOrTest.cpp')
| -rw-r--r-- | gnu/llvm/unittests/Support/ErrorOrTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/llvm/unittests/Support/ErrorOrTest.cpp b/gnu/llvm/unittests/Support/ErrorOrTest.cpp index 87dcab7b181..2ffc6e5b794 100644 --- a/gnu/llvm/unittests/Support/ErrorOrTest.cpp +++ b/gnu/llvm/unittests/Support/ErrorOrTest.cpp @@ -128,13 +128,13 @@ static_assert( // ErrorOr<int*> x(nullptr); // ErrorOr<std::unique_ptr<int>> y; // y = x; // invalid conversion -static_assert(!std::is_assignable<ErrorOr<std::unique_ptr<int>>, +static_assert(!std::is_assignable<ErrorOr<std::unique_ptr<int>>&, const ErrorOr<int *> &>::value, "do not invoke explicit ctors in assignment"); // ErrorOr<std::unique_ptr<int>> x; // x = ErrorOr<int*>(nullptr); // invalid conversion -static_assert(!std::is_assignable<ErrorOr<std::unique_ptr<int>>, +static_assert(!std::is_assignable<ErrorOr<std::unique_ptr<int>>&, ErrorOr<int *> &&>::value, "do not invoke explicit ctors in assignment"); } // end anon namespace |
