Fix hash of WIDEN_*_EXPR
[official-gcc.git] / libstdc++-v3 / testsuite / 26_numerics / random / mersenne_twister_engine / requirements / constants.cc
bloba6d0b6325ba51ea52196eacd10b7874536204de9
1 // { dg-do link { target c++11 } }
2 // { dg-require-cstdint "" }
3 //
4 // 2009-09-29 Paolo Carlini <paolo.carlini@oracle.com>
5 //
6 // Copyright (C) 2009-2024 Free Software Foundation, Inc.
7 //
8 // This file is part of the GNU ISO C++ Library. This library is free
9 // software; you can redistribute it and/or modify it under the
10 // terms of the GNU General Public License as published by the
11 // Free Software Foundation; either version 3, or (at your option)
12 // any later version.
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
19 // You should have received a copy of the GNU General Public License along
20 // with this library; see the file COPYING3. If not see
21 // <http://www.gnu.org/licenses/>.
23 #include <random>
25 void test01()
27 std::mt19937 mt;
29 const void* p = &mt.word_size;
30 p = &mt.state_size;
31 p = &mt.shift_size;
32 p = &mt.mask_bits;
33 p = &mt.xor_mask;
34 p = &mt.tempering_u;
35 p = &mt.tempering_d;
36 p = &mt.tempering_s;
37 p = &mt.tempering_b;
38 p = &mt.tempering_t;
39 p = &mt.tempering_c;
40 p = &mt.tempering_l;
41 p = &mt.initialization_multiplier;
42 p = &mt.default_seed;
43 p = p; // Suppress unused warning.
46 int main()
48 test01();
49 return 0;