libstdc++ testsuite: Correct S0 in std/time/hh_mm_ss/1.cc
For targets where the ABI mandates structure layout that has no padding, like cris-elf, this test started failing when introduced as an add-on to the existing 1.cc, thereby effectively causing a regression in testsuite results. Adding an empty structure to S0, corresponds better to the layout of hh_mm_ss<seconds>. PR testsuite/108632 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty struct at end of S0.
This commit is contained in:
parent
dbc4db7e82
commit
a939dd8357
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ size()
|
|||
{
|
||||
using namespace std::chrono;
|
||||
|
||||
struct S0 { long long h; char m; char s; bool neg; };
|
||||
struct S0 { long long h; char m; char s; bool neg; struct { } empty; };
|
||||
static_assert(sizeof(hh_mm_ss<seconds>) == sizeof(S0));
|
||||
struct S1 { long long h; char m; char s; bool neg; char ss; };
|
||||
static_assert(sizeof(hh_mm_ss<duration<int, std::centi>>) == sizeof(S1));
|
||||
|
|
Loading…
Add table
Reference in a new issue