diff options
author | Sam James <sam@gentoo.org> | 2024-09-20 08:31:45 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-25 19:02:12 +0100 |
commit | 82d97278cc3adae40a13eef9ae6f339f87d1f8f6 (patch) | |
tree | 6bbe590b9946f1947acbcedbb5ba926b0cb50d13 | |
parent | 3308e82480169a4f6fdf75322cfbcbc765f21f7c (diff) | |
download | gcc-82d97278cc3adae40a13eef9ae6f339f87d1f8f6.zip gcc-82d97278cc3adae40a13eef9ae6f339f87d1f8f6.tar.gz gcc-82d97278cc3adae40a13eef9ae6f339f87d1f8f6.tar.bz2 |
libstdc++: testsuite: fix dg-bogus directive syntax
These dg-bogus directives were bogus as they missed a closing brace.
```
+PASS: 23_containers/array/capacity/empty.cc -std=gnu++17 (test for bogus messages, line 54)
PASS: 23_containers/array/capacity/empty.cc -std=gnu++17 (test for excess errors)
PASS: 23_containers/array/capacity/empty.cc -std=gnu++17 execution test
+PASS: 23_containers/array/capacity/max_size.cc -std=gnu++17 (test for bogus messages, line 54)
PASS: 23_containers/array/capacity/max_size.cc -std=gnu++17 (test for excess errors)
PASS: 23_containers/array/capacity/max_size.cc -std=gnu++17 execution test
+PASS: 23_containers/array/capacity/size.cc -std=gnu++17 (test for bogus messages, line 54)
```
libstdc++-v3/ChangeLog:
PR libstdc++/101831
* testsuite/23_containers/array/capacity/empty.cc: Add missing brace.
* testsuite/23_containers/array/capacity/max_size.cc: Ditto.
* testsuite/23_containers/array/capacity/size.cc: Ditto.
3 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/array/capacity/empty.cc b/libstdc++-v3/testsuite/23_containers/array/capacity/empty.cc index 9334282..f1554ed 100644 --- a/libstdc++-v3/testsuite/23_containers/array/capacity/empty.cc +++ b/libstdc++-v3/testsuite/23_containers/array/capacity/empty.cc @@ -51,7 +51,7 @@ test02() typedef std::array<int, len> array_type; array_type a; - VERIFY( a.empty() == false ); // { dg-bogus "-Wmaybe-uninitialized" + VERIFY( a.empty() == false ); // { dg-bogus "-Wmaybe-uninitialized" } } } diff --git a/libstdc++-v3/testsuite/23_containers/array/capacity/max_size.cc b/libstdc++-v3/testsuite/23_containers/array/capacity/max_size.cc index b6721ef..57d7895 100644 --- a/libstdc++-v3/testsuite/23_containers/array/capacity/max_size.cc +++ b/libstdc++-v3/testsuite/23_containers/array/capacity/max_size.cc @@ -51,7 +51,7 @@ test02() typedef std::array<int, len> array_type; array_type a; - VERIFY( a.max_size() == len ); // { dg-bogus "-Wmaybe-uninitialized" + VERIFY( a.max_size() == len ); // { dg-bogus "-Wmaybe-uninitialized" } } } diff --git a/libstdc++-v3/testsuite/23_containers/array/capacity/size.cc b/libstdc++-v3/testsuite/23_containers/array/capacity/size.cc index 524d1f9..4769fd6 100644 --- a/libstdc++-v3/testsuite/23_containers/array/capacity/size.cc +++ b/libstdc++-v3/testsuite/23_containers/array/capacity/size.cc @@ -51,7 +51,7 @@ test02() typedef std::array<int, len> array_type; array_type a; - VERIFY( a.size() == len ); // { dg-bogus "-Wmaybe-uninitialized" + VERIFY( a.size() == len ); // { dg-bogus "-Wmaybe-uninitialized" } } } |