Define "random_device" effective target
authorJonathan Wakely <jwakely@redhat.com>
Wed, 4 Jul 2018 16:56:21 +0000 (17:56 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 4 Jul 2018 16:56:21 +0000 (17:56 +0100)
commit89bc4ab198a0be9e5b2d493f9b25f7ea3df336ef
tree0080ada44473f1044e2754a7727460e7bf6055ea
parent4e4120a27ac1e2abd4a5309aefcc4ba0dac45784
Define "random_device" effective target

Currently only matches targets where _GLIBCXX_USE_RANDOM_TR1 is defined,
which means /dev/random and /dev/urandom are usable.

* testsuite/25_algorithms/make_heap/complexity.cc: Require effective
target for std::random_device.
* testsuite/26_numerics/random/random_device/cons/default.cc:
Likewise.
* testsuite/experimental/algorithm/sample-2.cc: Likewise.
* testsuite/experimental/algorithm/shuffle.cc: Likewise.
* testsuite/experimental/random/randint.cc: Likewise.
* testsuite/lib/libstdc++.exp
(check_effective_target_random_device): New proc.

From-SVN: r262415
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/25_algorithms/make_heap/complexity.cc
libstdc++-v3/testsuite/26_numerics/random/random_device/cons/default.cc
libstdc++-v3/testsuite/experimental/algorithm/sample-2.cc
libstdc++-v3/testsuite/experimental/algorithm/shuffle.cc
libstdc++-v3/testsuite/experimental/random/randint.cc
libstdc++-v3/testsuite/lib/libstdc++.exp