aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc
blob: 11d553910c96a648dd9f7cbc5efe82520b60fc46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { 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 }