[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.adapt / rand.adapt.shuf / default.pass.cpp
blob3b3cc18a540bbb5b0935ee5ac385520b0366feb8
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 // explicit shuffle_order_engine();
16 #include <random>
17 #include <cassert>
19 #include "test_macros.h"
21 void
22 test1()
24 std::knuth_b e1;
25 std::knuth_b e2(std::minstd_rand0::default_seed);
26 assert(e1 == e2);
27 assert(e1() == 152607844u);
30 int main(int, char**)
32 test1();
34 return 0;