1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
13 // template<class InputIterator>
14 // seed_seq(InputIterator begin, InputIterator end);
15 // Mandates: iterator_traits<InputIterator>::value_type is an integer type.
22 bool a
[2] = {true, false};
23 std::seed_seq
s(a
, a
+2); // OK
27 std::seed_seq
s(a
, a
+2); // expected-error@*:* {{Mandates: iterator_traits<InputIterator>::value_type is an integer type}}
28 // expected-error@*:* {{invalid operands to binary expression ('double' and 'unsigned int')}}