]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc
libstdc++: Fix incorrect results in std::seed_seq::generate [PR 97311]
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 26_numerics / random / pr60037-neg.cc
CommitLineData
52066eae 1// { dg-do compile { target c++11 } }
49ba2588 2// { dg-require-cstdint "" }
1c4ff014
ESR
3
4#include <random>
5
6std::mt19937 urng;
7
8std::__detail::_Adaptor<std::mt19937, unsigned long> aurng(urng);
9
10auto x = std::generate_canonical<std::size_t,
11 std::numeric_limits<std::size_t>::digits>(urng);
12
c06617a7 13// { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 167 }
1c4ff014 14
3ee44d4c 15// { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 3312 }