18012Sjulian// { dg-do link }
212090Sgibbs// { dg-options "-std=gnu++11" }
38012Sjulian// { dg-require-cstdint "" }
415329Sgibbs//
512090Sgibbs// 2009-09-29  Paolo Carlini <paolo.carlini@oracle.com>
615329Sgibbs//
712090Sgibbs// Copyright (C) 2009-2015 Free Software Foundation, Inc.
812090Sgibbs//
912090Sgibbs// This file is part of the GNU ISO C++ Library.  This library is free
1012090Sgibbs// software; you can redistribute it and/or modify it under the
1112090Sgibbs// terms of the GNU General Public License as published by the
1212090Sgibbs// Free Software Foundation; either version 3, or (at your option)
1312090Sgibbs// any later version.
1412090Sgibbs//
1512090Sgibbs// This library is distributed in the hope that it will be useful,
1615329Sgibbs// but WITHOUT ANY WARRANTY; without even the implied warranty of
1715329Sgibbs// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
188012Sjulian// GNU General Public License for more details.
1915329Sgibbs//
2015329Sgibbs// You should have received a copy of the GNU General Public License along
2115329Sgibbs// with this library; see the file COPYING3.  If not see
2215329Sgibbs// <http://www.gnu.org/licenses/>.
2315329Sgibbs
2415329Sgibbs#include <random>
2515329Sgibbs
2615329Sgibbsvoid test01()
2715329Sgibbs{
2815329Sgibbs  std::mt19937 mt;
2915329Sgibbs
3015329Sgibbs  const void* p = &mt.word_size;
3150477Speter  p = &mt.state_size;
328012Sjulian  p = &mt.shift_size;
338012Sjulian  p = &mt.mask_bits;
34130274Simp  p = &mt.xor_mask;
35130274Simp  p = &mt.tempering_u;
368012Sjulian  p = &mt.tempering_d;
37130274Simp  p = &mt.tempering_s;
3813691Sgibbs  p = &mt.tempering_b;
3912090Sgibbs  p = &mt.tempering_t;
4012122Sgibbs  p = &mt.tempering_c;
4112122Sgibbs  p = &mt.tempering_l;
4212122Sgibbs  p = &mt.initialization_multiplier;
4312122Sgibbs  p = &mt.default_seed;
4412122Sgibbs  p = p; // Suppress unused warning.
4512122Sgibbs}
4612090Sgibbs
4723855Sjoergint main()
4812090Sgibbs{
4913691Sgibbs  test01();
5012090Sgibbs  return 0;
5145791Speter}
5245791Speter