mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 21:06:57 +08:00
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:
parent
3308e82480
commit
82d97278cc
@ -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" }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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" }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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" }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user