[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.util / rand.util.seedseq / iterator.verify.cpp
blobd5c57841c8fa22fc9dbd59632a2d8a239dcfb869
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 // <random>
11 // class seed_seq;
13 // template<class InputIterator>
14 // seed_seq(InputIterator begin, InputIterator end);
15 // Mandates: iterator_traits<InputIterator>::value_type is an integer type.
17 #include <random>
19 void test()
22 bool a[2] = {true, false};
23 std::seed_seq s(a, a+2); // OK
26 double a[2] = {1, 2};
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')}}