mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-03 10:49:58 +00:00
16 lines
484 B
C++
16 lines
484 B
C++
|
// { 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);
|
||
|
|
||
|
// { dg-error "static assertion failed: template argument not a floating point type" "" { target *-*-* } 167 }
|
||
|
|
||
|
// { dg-error "static assertion failed: template argument not a floating point type" "" { target *-*-* } 3466 }
|