]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc
re PR libstdc++/81064 (Inline namespace regression)
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 26_numerics / random / pr60037-neg.cc
CommitLineData
52066eae 1// { dg-do compile { target c++11 } }
1c4ff014
ESR
2
3#include <random>
4
5std::mt19937 urng;
6
7std::__detail::_Adaptor<std::mt19937, unsigned long> aurng(urng);
8
9auto x = std::generate_canonical<std::size_t,
10 std::numeric_limits<std::size_t>::digits>(urng);
11
4a15d842 12// { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 156 }
1c4ff014 13
4a15d842 14// { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 3311 }