[flang] [unittests] Link to libMLIR in optimizer tests (#123476)
[llvm-project.git] / libcxx / test / std / containers / sequences / vector / vector.cons / deduct.verify.cpp
bloba6fc763050ec6572cc0ad9f6e153a184c3de2131
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 // <vector>
10 // UNSUPPORTED: c++03, c++11, c++14
12 // template <class InputIterator, class Allocator = allocator<typename iterator_traits<InputIterator>::value_type>>
13 // vector(InputIterator, InputIterator, Allocator = Allocator())
14 // -> vector<typename iterator_traits<InputIterator>::value_type, Allocator>;
17 #include <cassert>
18 #include <cstddef>
19 #include <vector>
21 int main(int, char**) {
22 // Test the explicit deduction guides
23 // TODO: Should there be tests for explicit deduction guides?
25 // Test the implicit deduction guides
27 // vector (allocator &)
28 // expected-error-re@+1 {{no viable constructor or deduction guide for deduction of template arguments of '{{(std::)?}}vector'}}
29 std::vector vec(std::allocator< int>{});
32 return 0;