[flang] [unittests] Link to libMLIR in optimizer tests (#123476)
[llvm-project.git] / libcxx / test / std / containers / sequences / vector / vector.cons / copy.move_only.verify.cpp
blobaf8ca01370f0800064c90c11a498d90f4c4413b5
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // Make sure that a std::vector containing move-only types can't be copied.
11 // UNSUPPORTED: c++03 && !stdlib=libc++
13 #include <vector>
15 #include "MoveOnly.h"
17 void f() {
18 std::vector<MoveOnly> v;
19 std::vector<MoveOnly> copy = v; // expected-error-re@* {{{{(no matching function for call to '__construct_at')|(call to deleted constructor of 'MoveOnly')}}}}