2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libstdc++-v3 / testsuite / 26_numerics / random / pr60037-neg.cc
blob11d553910c96a648dd9f7cbc5efe82520b60fc46
1 // { dg-do compile }
2 // { dg-options "-std=gnu++11" }
4 #include <random>
6 std::mt19937 urng;
8 std::__detail::_Adaptor<std::mt19937, unsigned long> aurng(urng);
10 auto x = std::generate_canonical<std::size_t,
11 std::numeric_limits<std::size_t>::digits>(urng);
13 // { dg-error "static assertion failed: template argument not a floating point type" "" { target *-*-* } 167 }
15 // { dg-error "static assertion failed: template argument not a floating point type" "" { target *-*-* } 3466 }