[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.adapt / rand.adapt.shuf / copy.pass.cpp
blobaab2941f335342bf0e6359ae17f3eb6ab4bc4693
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 // template<class Engine, size_t k>
12 // class shuffle_order_engine
14 // shuffle_order_engine(const shuffle_order_engine&);
16 #include <random>
17 #include <cassert>
19 #include "test_macros.h"
21 void
22 test1()
24 typedef std::knuth_b E;
25 E e1;
26 (void)e1();
27 E e2 = e1;
28 assert(e1 == e2);
29 assert(e1() == e2());
30 E::result_type k = e1();
31 assert(e1 != e2);
32 assert(e2() == k);
33 assert(e1 == e2);
36 int main(int, char**)
38 test1();
40 return 0;