2015-08-28 15:33:40 +00:00
|
|
|
// { dg-do compile }
|
|
|
|
// { dg-options "-std=gnu++11" }
|
|
|
|
|
|
|
|
#include <random>
|
|
|
|
|
|
|
|
std::mt19937 urng;
|
|
|
|
|
|
|
|
std::__detail::_Adaptor<std::mt19937, unsigned long> aurng(urng);
|
|
|
|
|
|
|
|
auto x = std::generate_canonical<std::size_t,
|
|
|
|
std::numeric_limits<std::size_t>::digits>(urng);
|
|
|
|
|
2017-04-10 11:32:00 +00:00
|
|
|
// { dg-error "static assertion failed: template argument not a floating point type" "" { target *-*-* } 160 }
|
2015-08-28 15:33:40 +00:00
|
|
|
|
2017-04-10 11:32:00 +00:00
|
|
|
// { dg-error "static assertion failed: template argument not a floating point type" "" { target *-*-* } 3314 }
|