diff options
Diffstat (limited to 'libstdc++-v3/testsuite/experimental')
6 files changed, 13 insertions, 13 deletions
diff --git a/libstdc++-v3/testsuite/experimental/any/assign/2.cc b/libstdc++-v3/testsuite/experimental/any/assign/2.cc index e38455b..c2d7fec 100644 --- a/libstdc++-v3/testsuite/experimental/any/assign/2.cc +++ b/libstdc++-v3/testsuite/experimental/any/assign/2.cc @@ -31,14 +31,14 @@ struct X { X() = default; X(const X&) { copied = true; } - X(X&& x) { moved = true; } + X(X&&) { moved = true; } }; struct X2 { X2() = default; X2(const X2&) { copied = true; } - X2(X2&& x) noexcept { moved = true; } + X2(X2&&) noexcept { moved = true; } }; void test01() diff --git a/libstdc++-v3/testsuite/experimental/any/cons/2.cc b/libstdc++-v3/testsuite/experimental/any/cons/2.cc index d6af447..d6241ae 100644 --- a/libstdc++-v3/testsuite/experimental/any/cons/2.cc +++ b/libstdc++-v3/testsuite/experimental/any/cons/2.cc @@ -30,14 +30,14 @@ struct X { X() = default; X(const X&) { copied = true; } - X(X&& x) { moved = true; } + X(X&&) { moved = true; } }; struct X2 { X2() = default; X2(const X2&) { copied = true; } - X2(X2&& x) noexcept { moved = true; } + X2(X2&&) noexcept { moved = true; } }; void test01() diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc index 0e2aeda..c346a95 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc @@ -124,7 +124,7 @@ test04() // remove write permission on the directory: fs::permissions(dir, fs::perms::owner_read|fs::perms::owner_exec); n = fs::remove_all(dir, ec); - VERIFY( n == -1 ); + VERIFY( n == std::uintmax_t(-1) ); VERIFY( ec == std::errc::permission_denied ); // not ENOTEMPTY try { diff --git a/libstdc++-v3/testsuite/experimental/memory/observer_ptr/cons/cons.cc b/libstdc++-v3/testsuite/experimental/memory/observer_ptr/cons/cons.cc index 4b29da2..3d6bb41 100644 --- a/libstdc++-v3/testsuite/experimental/memory/observer_ptr/cons/cons.cc +++ b/libstdc++-v3/testsuite/experimental/memory/observer_ptr/cons/cons.cc @@ -44,7 +44,6 @@ void test02() void test03() { - int x{}; observer_ptr<int> a; observer_ptr<const int> b{a}; VERIFY(a == b); diff --git a/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc b/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc index 01d4a94..284b428 100644 --- a/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc +++ b/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc @@ -31,7 +31,7 @@ test06() memory_resource* r = null_memory_resource(); bool caught = false; - void* p = nullptr; + void* p __attribute__((unused)) = nullptr; try { p = r->allocate(1); } catch (const std::bad_alloc&) { diff --git a/libstdc++-v3/testsuite/experimental/source_location/1.cc b/libstdc++-v3/testsuite/experimental/source_location/1.cc index 9f5a00d..5ca5b3a 100644 --- a/libstdc++-v3/testsuite/experimental/source_location/1.cc +++ b/libstdc++-v3/testsuite/experimental/source_location/1.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-require-cstdint "" } +// { dg-options "-Wno-address" } #include <experimental/source_location> #include <experimental/string_view> @@ -29,7 +30,7 @@ void test01() { constexpr source_location loc = source_location::current(); - static_assert( loc.line() == 31 ); + static_assert( loc.line() == 32 ); // static_assert( loc.column() == 35 ); VERIFY( loc.file_name() == __FILE__ ); VERIFY( loc.function_name() == string_view(__FUNCTION__) ); @@ -51,13 +52,13 @@ struct S { void test02() { S s0; - VERIFY( s0.loc.line() == 53 ); + VERIFY( s0.loc.line() == 54 ); // 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() == 47 ); + VERIFY( s1.loc.line() == 48 ); VERIFY( s1.loc.file_name() == __FILE__ ); VERIFY( s1.loc.function_name() == s1.func ); } @@ -75,21 +76,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() == 77 ); + VERIFY( loc.line() == 78 ); // 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() == 83 ); + VERIFY( loc.line() == 84 ); // 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() == 70 ); + VERIFY( loc.line() == 71 ); // static_assert( loc.column() == 23 ); VERIFY( loc.file_name() == __FILE__ ); VERIFY( loc.function_name() == func ); |