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.
This commit is contained in:
Sam James 2024-09-20 08:31:45 +01:00
parent 3308e82480
commit 82d97278cc
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ test02()
typedef std::array<int, len> array_type; typedef std::array<int, len> array_type;
array_type a; array_type a;
VERIFY( a.empty() == false ); // { dg-bogus "-Wmaybe-uninitialized" VERIFY( a.empty() == false ); // { dg-bogus "-Wmaybe-uninitialized" }
} }
} }

View File

@ -51,7 +51,7 @@ test02()
typedef std::array<int, len> array_type; typedef std::array<int, len> array_type;
array_type a; array_type a;
VERIFY( a.max_size() == len ); // { dg-bogus "-Wmaybe-uninitialized" VERIFY( a.max_size() == len ); // { dg-bogus "-Wmaybe-uninitialized" }
} }
} }

View File

@ -51,7 +51,7 @@ test02()
typedef std::array<int, len> array_type; typedef std::array<int, len> array_type;
array_type a; array_type a;
VERIFY( a.size() == len ); // { dg-bogus "-Wmaybe-uninitialized" VERIFY( a.size() == len ); // { dg-bogus "-Wmaybe-uninitialized" }
} }
} }