Add missing dg-require-cstdint directives to tests
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Jul 2018 14:03:28 +0000 (15:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 26 Jul 2018 14:03:28 +0000 (15:03 +0100)
* testsuite/18_support/aligned_alloc/aligned_alloc.cc: Add
dg-require-cstdint directive.
* testsuite/20_util/allocator/overaligned.cc: Likewise.
* testsuite/20_util/any/cons/aligned.cc: Likewise.
* testsuite/20_util/monotonic_buffer_resource/allocate.cc: Likewise.
* testsuite/20_util/monotonic_buffer_resource/deallocate.cc: Likewise.
* testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
Likewise.
* testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
* testsuite/23_containers/list/modifiers/insert/25288.cc: Likewise.
* testsuite/23_containers/set/allocator/move_assign.cc: Likewise.
* testsuite/25_algorithms/make_heap/complexity.cc: Likewise.
* testsuite/25_algorithms/pop_heap/complexity.cc: Require cstdint and
random_device effective-target.
* testsuite/25_algorithms/push_heap/complexity.cc: Likewise.
* testsuite/25_algorithms/sample/1.cc: Require cstdint.
* testsuite/25_algorithms/sample/2.cc: Likewise.
* testsuite/25_algorithms/sort_heap/complexity.cc: Require cstdint
and random_device.
* testsuite/26_numerics/headers/random/types_std_c++0x.cc: Require
cstdint.
* testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
Likewise.
* testsuite/26_numerics/random/discard_block_engine/requirements/
constexpr_data.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/requirements/
constexpr_data.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/requirements/
constexpr_data.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
* testsuite/26_numerics/random/seed_seq/cons/65631.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/requirements/
constexpr_data.cc: Add dg-require-cstdint directive.
* testsuite/26_numerics/random/shuffle_order_engine/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/requirements/
constexpr_data.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/uniform_real_distribution/operators/
64351.cc: Likewise.
* testsuite/29_atomics/headers/atomic/types_std_c++0x.cc: Likewise.
* testsuite/experimental/algorithm/sample-2.cc: Likewise.
* testsuite/experimental/algorithm/sample.cc: Likewise.
* testsuite/experimental/algorithm/search.cc: Likewise.
* testsuite/experimental/algorithm/shuffle.cc: Likewise.
* testsuite/experimental/any/cons/aligned.cc: Likewise.
* testsuite/experimental/memory_resource/new_delete_resource.cc:
Likewise.
* testsuite/experimental/memory_resource/resource_adaptor.cc: Likewise.
* testsuite/experimental/random/randint.cc: Likewise.
* testsuite/experimental/source_location/1.cc: Likewise.
* testsuite/ext/bitmap_allocator/overaligned.cc: Likewise.
* testsuite/ext/malloc_allocator/overaligned.cc: Likewise.
* testsuite/ext/mt_allocator/overaligned.cc: Likewise.
* testsuite/ext/new_allocator/overaligned.cc: Likewise.
* testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
* testsuite/ext/pool_allocator/overaligned.cc: Likewise.
* testsuite/ext/throw_allocator/check_allocate_max_size.cc: Likewise.
* testsuite/ext/throw_allocator/check_deallocate_null.cc: Likewise.
* testsuite/ext/throw_allocator/check_delete.cc: Likewise.
* testsuite/ext/throw_allocator/check_new.cc: Likewise.
* testsuite/ext/throw_allocator/deallocate_global.cc: Likewise.
* testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
* testsuite/ext/throw_allocator/explicit_instantiation.cc: Likewise.
* testsuite/ext/throw_allocator/variadic_construct.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise.

From-SVN: r263008

65 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/18_support/aligned_alloc/aligned_alloc.cc
libstdc++-v3/testsuite/20_util/allocator/overaligned.cc
libstdc++-v3/testsuite/20_util/any/cons/aligned.cc
libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/allocate.cc
libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/deallocate.cc
libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc
libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc
libstdc++-v3/testsuite/23_containers/list/modifiers/insert/25288.cc
libstdc++-v3/testsuite/23_containers/set/allocator/move_assign.cc
libstdc++-v3/testsuite/25_algorithms/make_heap/complexity.cc
libstdc++-v3/testsuite/25_algorithms/pop_heap/complexity.cc
libstdc++-v3/testsuite/25_algorithms/push_heap/complexity.cc
libstdc++-v3/testsuite/25_algorithms/sample/1.cc
libstdc++-v3/testsuite/25_algorithms/sample/2.cc
libstdc++-v3/testsuite/25_algorithms/sort_heap/complexity.cc
libstdc++-v3/testsuite/26_numerics/headers/random/types_std_c++0x.cc
libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/83833.cc
libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/requirements/constexpr_data.cc
libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/requirements/constexpr_functions.cc
libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/requirements/constexpr_functions.cc
libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/requirements/constexpr_data.cc
libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/requirements/constexpr_functions.cc
libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/requirements/constexpr_data.cc
libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/requirements/constexpr_functions.cc
libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc
libstdc++-v3/testsuite/26_numerics/random/seed_seq/cons/65631.cc
libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/requirements/constexpr_data.cc
libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/requirements/constexpr_functions.cc
libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/requirements/constexpr_data.cc
libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/requirements/constexpr_functions.cc
libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/64351.cc
libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
libstdc++-v3/testsuite/experimental/algorithm/sample-2.cc
libstdc++-v3/testsuite/experimental/algorithm/sample.cc
libstdc++-v3/testsuite/experimental/algorithm/search.cc
libstdc++-v3/testsuite/experimental/algorithm/shuffle.cc
libstdc++-v3/testsuite/experimental/any/cons/aligned.cc
libstdc++-v3/testsuite/experimental/memory_resource/new_delete_resource.cc
libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc
libstdc++-v3/testsuite/experimental/random/randint.cc
libstdc++-v3/testsuite/experimental/source_location/1.cc
libstdc++-v3/testsuite/ext/bitmap_allocator/overaligned.cc
libstdc++-v3/testsuite/ext/malloc_allocator/overaligned.cc
libstdc++-v3/testsuite/ext/mt_allocator/overaligned.cc
libstdc++-v3/testsuite/ext/new_allocator/overaligned.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/hash_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/hash_set_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/list_update_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/list_update_set_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_set_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/trie_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/trie_set_rand.cc
libstdc++-v3/testsuite/ext/pool_allocator/overaligned.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_allocate_max_size.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_deallocate_null.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_delete.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_new.cc
libstdc++-v3/testsuite/ext/throw_allocator/deallocate_global.cc
libstdc++-v3/testsuite/ext/throw_allocator/deallocate_local.cc
libstdc++-v3/testsuite/ext/throw_allocator/explicit_instantiation.cc
libstdc++-v3/testsuite/ext/throw_allocator/variadic_construct.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cinttypes/functions.cc

index 225b4be..666d497 100644 (file)
@@ -1,5 +1,89 @@
 2018-07-26  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/18_support/aligned_alloc/aligned_alloc.cc: Add
+       dg-require-cstdint directive.
+       * testsuite/20_util/allocator/overaligned.cc: Likewise.
+       * testsuite/20_util/any/cons/aligned.cc: Likewise.
+       * testsuite/20_util/monotonic_buffer_resource/allocate.cc: Likewise.
+       * testsuite/20_util/monotonic_buffer_resource/deallocate.cc: Likewise.
+       * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
+       Likewise.
+       * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
+       * testsuite/23_containers/list/modifiers/insert/25288.cc: Likewise.
+       * testsuite/23_containers/set/allocator/move_assign.cc: Likewise.
+       * testsuite/25_algorithms/make_heap/complexity.cc: Likewise.
+       * testsuite/25_algorithms/pop_heap/complexity.cc: Require cstdint and
+       random_device effective-target.
+       * testsuite/25_algorithms/push_heap/complexity.cc: Likewise.
+       * testsuite/25_algorithms/sample/1.cc: Require cstdint.
+       * testsuite/25_algorithms/sample/2.cc: Likewise.
+       * testsuite/25_algorithms/sort_heap/complexity.cc: Require cstdint
+       and random_device.
+       * testsuite/26_numerics/headers/random/types_std_c++0x.cc: Require
+       cstdint.
+       * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
+       Likewise.
+       * testsuite/26_numerics/random/discard_block_engine/requirements/
+       constexpr_data.cc: Likewise.
+       * testsuite/26_numerics/random/discard_block_engine/requirements/
+       constexpr_functions.cc: Likewise.
+       * testsuite/26_numerics/random/independent_bits_engine/requirements/
+       constexpr_functions.cc: Likewise.
+       * testsuite/26_numerics/random/linear_congruential_engine/requirements/
+       constexpr_data.cc: Likewise.
+       * testsuite/26_numerics/random/linear_congruential_engine/requirements/
+       constexpr_functions.cc: Likewise.
+       * testsuite/26_numerics/random/mersenne_twister_engine/requirements/
+       constexpr_data.cc: Likewise.
+       * testsuite/26_numerics/random/mersenne_twister_engine/requirements/
+       constexpr_functions.cc: Likewise.
+       * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
+       * testsuite/26_numerics/random/seed_seq/cons/65631.cc: Likewise.
+       * testsuite/26_numerics/random/shuffle_order_engine/requirements/
+       constexpr_data.cc: Add dg-require-cstdint directive.
+       * testsuite/26_numerics/random/shuffle_order_engine/requirements/
+       constexpr_functions.cc: Likewise.
+       * testsuite/26_numerics/random/subtract_with_carry_engine/requirements/
+       constexpr_data.cc: Likewise.
+       * testsuite/26_numerics/random/subtract_with_carry_engine/requirements/
+       constexpr_functions.cc: Likewise.
+       * testsuite/26_numerics/random/uniform_real_distribution/operators/
+       64351.cc: Likewise.
+       * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc: Likewise.
+       * testsuite/experimental/algorithm/sample-2.cc: Likewise.
+       * testsuite/experimental/algorithm/sample.cc: Likewise.
+       * testsuite/experimental/algorithm/search.cc: Likewise.
+       * testsuite/experimental/algorithm/shuffle.cc: Likewise.
+       * testsuite/experimental/any/cons/aligned.cc: Likewise.
+       * testsuite/experimental/memory_resource/new_delete_resource.cc:
+       Likewise.
+       * testsuite/experimental/memory_resource/resource_adaptor.cc: Likewise.
+       * testsuite/experimental/random/randint.cc: Likewise.
+       * testsuite/experimental/source_location/1.cc: Likewise.
+       * testsuite/ext/bitmap_allocator/overaligned.cc: Likewise.
+       * testsuite/ext/malloc_allocator/overaligned.cc: Likewise.
+       * testsuite/ext/mt_allocator/overaligned.cc: Likewise.
+       * testsuite/ext/new_allocator/overaligned.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
+       * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
+       * testsuite/ext/pool_allocator/overaligned.cc: Likewise.
+       * testsuite/ext/throw_allocator/check_allocate_max_size.cc: Likewise.
+       * testsuite/ext/throw_allocator/check_deallocate_null.cc: Likewise.
+       * testsuite/ext/throw_allocator/check_delete.cc: Likewise.
+       * testsuite/ext/throw_allocator/check_new.cc: Likewise.
+       * testsuite/ext/throw_allocator/deallocate_global.cc: Likewise.
+       * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
+       * testsuite/ext/throw_allocator/explicit_instantiation.cc: Likewise.
+       * testsuite/ext/throw_allocator/variadic_construct.cc: Likewise.
+       * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise.
+
        * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
        * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
        * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
index 8af9c72..204735c 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
+// { dg-require-cstdint "" }
 
 #include <cstdlib>
 #include <cstdint>
index 288777a..62c07ea 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-faligned-new" }
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <memory>
 #include <cstddef>
index 15420ad..317cda6 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++17" }
+// { dg-require-cstdint "" }
 
 #include <any>
 #include <cstdint>
index d1c2715..4121509 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
+// { dg-require-cstdint "" }
 
 #include <memory_resource>
 #include <testsuite_allocator.h>
index 427256d..db83593 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
+// { dg-require-cstdint "" }
 
 #include <memory_resource>
 #include <testsuite_allocator.h>
index 60eb4d4..fea0823 100644 (file)
@@ -21,6 +21,7 @@
 // { dg-options "-pthread"  }
 // { dg-require-effective-target c++11 }
 // { dg-require-effective-target pthread }
+// { dg-require-cstdint "" }
 
 #include <memory>
 #include <random>
index c7ff465..b2f7aba 100644 (file)
@@ -21,6 +21,7 @@
 // { dg-options "-pthread"  }
 // { dg-require-effective-target c++11 }
 // { dg-require-effective-target pthread }
+// { dg-require-cstdint "" }
 
 #include <memory>
 #include <random>
index c4ea585..3636c68 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 // Copyright (C) 2005-2018 Free Software Foundation, Inc.
 //
index 7548c9e..0f2694e 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <set>
 #include <random>
index 069d2d0..a0e30c7 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 // { dg-require-effective-target random_device }
 
 #include <random>
index 62f9f75..2402936 100644 (file)
@@ -18,6 +18,8 @@
 // { dg-do run { target c++11 } }
 // { dg-require-normal-mode "" }
 // { dg-require-cmath "" }
+// { dg-require-cstdint "" }
+// { dg-require-effective-target random_device }
 
 #include <cmath>
 #include <random>
index e5fd09e..cb226ea 100644 (file)
@@ -18,6 +18,8 @@
 // { dg-do run { target c++11 } }
 // { dg-require-normal-mode "" }
 // { dg-require-cmath "" }
+// { dg-require-cstdint "" }
+// { dg-require-effective-target random_device }
 
 #include <cmath>
 #include <random>
index 154e361..98bab79 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
+// { dg-require-cstdint "" }
 
 #include <algorithm>
 #include <random>
index bfdcce1..2cc715a 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
+// { dg-require-cstdint "" }
 
 #ifndef _GLIBCXX_ASSERTIONS
 // Make std::uniform_int_distribution check its parameters
index acf39ba..b3ef55e 100644 (file)
@@ -17,6 +17,8 @@
 
 // { dg-do run { target c++11 } }
 // { dg-require-cmath "" }
+// { dg-require-cstdint "" }
+// { dg-require-effective-target random_device }
 
 #include <cmath>
 #include <random>
index bfb6054..176f818 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-require-cstdint "" }
 
 // Copyright (C) 2007-2018 Free Software Foundation, Inc.
 //
index 821a1a4..1f2849b 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do run { target c++11 } }
 // { dg-additional-options "-ffloat-store" { target { m68*-*-* || ia32 } } }
+// { dg-require-cstdint "" }
 
 #include <random>
 #include <testsuite_hooks.h>
index 1ead99c..f365337 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <random>
 
index 23d0207..75db630 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <random>
 #include <type_traits>
index 11c1b9e..4420e12 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target { c++11 && { ! simulator } } } }
+// { dg-require-cstdint "" }
 
 #include <random>
 #include <testsuite_hooks.h>
index 7b10159..58c19d6 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-require-cstdint "" }
 
 // Copyright (C) 2008-2018 Free Software Foundation, Inc.
 //
index ef3f7da..a7e311e 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 // { dg-require-effective-target random_device }
 // { dg-require-effective-target tls_runtime }
 // { dg-add-options tls }
index b237370..0b9a3a4 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 
 #include <experimental/algorithm>
 #include <random>
index 10aecd5..4e64bcd 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 
 #include <experimental/algorithm>
 #include <testsuite_hooks.h>
index db958f6..a074255 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 // { dg-require-effective-target random_device }
 // { dg-require-effective-target tls_runtime }
 // { dg-add-options tls }
index 80aeefa..f761be9 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 
 #include <experimental/any>
 #include <cstdint>
index 4c6d894..11667b1 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 // { dg-xfail-run-if "PR libstdc++/77691" { { i?86-*-solaris2.* x86_64-*-solaris2.* } && ilp32 } }
 
 #include <experimental/memory_resource>
index 46cb113..53c176a 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 // { dg-xfail-run-if "PR libstdc++/77691" { { i?86-*-solaris2.* x86_64-*-solaris2.* } && ilp32 } }
 
 // Copyright (C) 2016-2018 Free Software Foundation, Inc.
index 90ba72a..54ad371 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 // { dg-require-effective-target random_device }
 // { dg-require-effective-target tls_runtime }
 // { dg-add-options tls }
index a57669c..8bc62dd 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++14 } }
+// { dg-require-cstdint "" }
 
 #include <experimental/source_location>
 #include <experimental/string_view>
@@ -28,7 +29,7 @@ void
 test01()
 {
   constexpr source_location loc = source_location::current();
-  static_assert( loc.line() == 30 );
+  static_assert( loc.line() == 31 );
   // static_assert( loc.column() == 35 );
   VERIFY( loc.file_name() == __FILE__ );
   VERIFY( loc.function_name() == string_view(__FUNCTION__) );
@@ -50,13 +51,13 @@ struct S {
 void test02()
 {
   S s0;
-  VERIFY( s0.loc.line() == 52 );
+  VERIFY( s0.loc.line() == 53 );
   // static_assert( s0.loc.column() == 7 );
   VERIFY( s0.loc.file_name() == __FILE__ );
   VERIFY( s0.loc.function_name() == string_view(__FUNCTION__) );
 
   S s1(1);
-  VERIFY( s1.loc.line() == 46 );
+  VERIFY( s1.loc.line() == 47 );
   VERIFY( s1.loc.file_name() == __FILE__ );
   VERIFY( s1.loc.function_name() == s1.func );
 }
@@ -74,21 +75,21 @@ source_location g(string_view& func) {
 void test03()
 {
   auto loc = f(); // f's first argument corresponds to this line of code
-  VERIFY( loc.line() == 76 );
+  VERIFY( loc.line() == 77 );
   // static_assert( loc.column() == 16 );
   VERIFY( loc.file_name() == __FILE__ );
   VERIFY( loc.function_name() == string_view(__FUNCTION__) );
 
   source_location c = source_location::current();
   loc = f(c); // f's first argument gets the same values as c, above
-  VERIFY( loc.line() == 82 );
+  VERIFY( loc.line() == 83 );
   // static_assert( loc.column() == 23 );
   VERIFY( loc.file_name() == __FILE__ );
   VERIFY( loc.function_name() == string_view(__FUNCTION__) );
 
   string_view func;
   loc = g(func);
-  VERIFY( loc.line() == 69 );
+  VERIFY( loc.line() == 70 );
   // static_assert( loc.column() == 23 );
   VERIFY( loc.file_name() == __FILE__ );
   VERIFY( loc.function_name() == func );
index 45a4e6f..faa9cd5 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-faligned-new" }
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <ext/bitmap_allocator.h>
 #include <cstddef>
index 3a86c57..701c9ae 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-faligned-new" }
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <ext/malloc_allocator.h>
 #include <cstddef>
index 6d1eb1b..468bf39 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-faligned-new" }
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <ext/mt_allocator.h>
 #include <cstddef>
index 4bf8abb..896cc01 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-faligned-new" }
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <ext/new_allocator.h>
 #include <cstddef>
index 9a6cbb6..d2e687f 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 // This can take long on simulators, timing out the test.
 // { dg-options "-DITERATIONS=5" { target simulator } }
 // { dg-timeout-factor 2.0 }
index ccde2cd..58aac1f 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 // This can take long on simulators, timing out the test.
 // { dg-options "-DITERATIONS=5" { target simulator } }
 // { dg-timeout-factor 2.0 }
index c786cb3..c68a2b2 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 // -*- C++ -*-
 
index a211ae7..bc21610 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 // -*- C++ -*-
 
index 911c1d5..fd77e9b 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 // This can take long on simulators, timing out the test.
 // { dg-options "-DITERATIONS=5" { target simulator } }
 // { dg-timeout-factor 2.0 }
index 8513d74..34dbcf5 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 // This can take long on simulators, timing out the test.
 // { dg-options "-DITERATIONS=5" { target simulator } }
 // { dg-timeout-factor 2.0 }
index 0f3163f..9d6283a 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 // This can take long on simulators, timing out the test.
 // { dg-options "-DITERATIONS=5" { target simulator } }
 // { dg-timeout-factor 2.0 }
index bb0722f..3441aa3 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 // This can take long on simulators, timing out the test.
 // { dg-options "-DITERATIONS=5" { target simulator } }
 // { dg-timeout-factor 2.0 }
index e8100a3..4962f4c 100644 (file)
@@ -1,6 +1,7 @@
 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
 // { dg-do run { target { ! c++17 } } }
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 // This can take long on simulators, timing out the test.
 // { dg-options "-DITERATIONS=5" { target simulator } }
 // { dg-timeout-factor 2.0 }
index 856d3d7..520d9a8 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-faligned-new" }
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 
 #include <ext/pool_allocator.h>
 #include <cstddef>
index e946916..75925d6 100644 (file)
@@ -17,6 +17,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 #include <ext/throw_allocator.h>
 #include <testsuite_allocator.h>
index 5bcf7cf..cc12a52 100644 (file)
@@ -17,6 +17,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 #include <ext/throw_allocator.h>
 #include <testsuite_allocator.h>
index eec1596..b70a956 100644 (file)
@@ -17,6 +17,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 #include <cstdlib>
 #include <ext/throw_allocator.h>
index 68fc7bf..1f8b634 100644 (file)
@@ -17,6 +17,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 #include <cstdlib>
 #include <ext/throw_allocator.h>
index 8d5dda0..38f417c 100644 (file)
@@ -19,6 +19,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 #include <string>
 #include <stdexcept>
index 47871b8..58ee6d9 100644 (file)
@@ -17,6 +17,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-require-time "" }
+// { dg-require-cstdint "" }
 
 #include <string>
 #include <ext/throw_allocator.h>
index 01a7b32..4a843a4 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-require-cstdint "" }
 
 // 2007-10-26  Paolo Carlini  <pcarlini@suse.de>