summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/rand/rand.util
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2019-05-31 18:35:30 +0000
committerMarshall Clow <mclow.lists@gmail.com>2019-05-31 18:35:30 +0000
commit7fc6a55688c816f5fc1a5481ae7af25be7500356 (patch)
treecac80ad839e171aa372cd03df408af1b90125db6 /libcxx/test/std/numerics/rand/rand.util
parent065bd45da9de57668cfaabe1b851a2e08acea215 (diff)
downloadbcm5719-llvm-7fc6a55688c816f5fc1a5481ae7af25be7500356.tar.gz
bcm5719-llvm-7fc6a55688c816f5fc1a5481ae7af25be7500356.zip
Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended.
llvm-svn: 362252
Diffstat (limited to 'libcxx/test/std/numerics/rand/rand.util')
-rw-r--r--libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp1
-rw-r--r--libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/default.pass.cpp2
-rw-r--r--libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp2
-rw-r--r--libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp2
-rw-r--r--libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/iterator.pass.cpp2
-rw-r--r--libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/types.pass.cpp2
6 files changed, 11 insertions, 0 deletions
diff --git a/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp b/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
index a05c0846af7..1693aa28971 100644
--- a/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
@@ -14,6 +14,7 @@
#include <random>
#include <cassert>
+#include "test_macros.h"
#include "truncate_fp.h"
int main(int, char**)
diff --git a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/default.pass.cpp b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/default.pass.cpp
index 87608e63c04..33f855bab30 100644
--- a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/default.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/default.pass.cpp
@@ -15,6 +15,8 @@
#include <random>
#include <cassert>
+#include "test_macros.h"
+
int main(int, char**)
{
std::seed_seq s;
diff --git a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp
index e328777782b..c7a4779bff1 100644
--- a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp
@@ -16,6 +16,8 @@
#include <random>
#include <cassert>
+#include "test_macros.h"
+
int main(int, char**)
{
{
diff --git a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp
index 656981b1a93..a227ff69028 100644
--- a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp
@@ -18,6 +18,8 @@
#include <random>
#include <cassert>
+#include "test_macros.h"
+
int main(int, char**)
{
std::seed_seq s= {5, 4, 3, 2, 1};
diff --git a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/iterator.pass.cpp b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/iterator.pass.cpp
index 10f7b34727e..2e2c6365eb4 100644
--- a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/iterator.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/iterator.pass.cpp
@@ -16,6 +16,8 @@
#include <random>
#include <cassert>
+#include "test_macros.h"
+
int main(int, char**)
{
unsigned a[5] = {5, 4, 3, 2, 1};
diff --git a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/types.pass.cpp b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/types.pass.cpp
index 50cfa7d59cc..82a12517c7b 100644
--- a/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/types.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/types.pass.cpp
@@ -17,6 +17,8 @@
#include <random>
#include <type_traits>
+#include "test_macros.h"
+
int main(int, char**)
{
static_assert((std::is_same<std::seed_seq::result_type, std::uint_least32_t>::value), "");
OpenPOWER on IntegriCloud