Fix regression for libstdc++-v3/testsuite/29_atomics/atomic/62259.cc as...

Fix regression for libstdc++-v3/testsuite/29_atomics/atomic/62259.cc
as reported at <http://gcc.gnu.org/ml/gcc-patches/2015-04/msg00543.html>.

	* testsuite/29_atomics/atomic/62259.cc: Assert atomic
	alignment is larger-equal, not equal, to default alignment.

From-SVN: r222072
This commit is contained in:
Hans-Peter Nilsson 2015-04-14 00:37:57 +00:00 committed by Hans-Peter Nilsson
parent a2bb9b6bf0
commit 0357625940
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2015-04-14 Hans-Peter Nilsson <hp@axis.com>
* testsuite/29_atomics/atomic/62259.cc: Assert atomic
alignment is larger-equal, not equal, to default alignment.
2015-04-13 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/65754

View File

@ -33,7 +33,7 @@ struct twoints {
int32_t b;
};
static_assert( alignof(std::atomic<twoints>) == alignof(int64_t),
static_assert( alignof(std::atomic<twoints>) >= alignof(int64_t),
"std::atomic not suitably aligned" );
// libstdc++/65147
@ -44,7 +44,7 @@ struct power_of_two_obj {
std::atomic<power_of_two_obj> obj1;
static_assert( alignof(obj1) == alignof(int64_t),
static_assert( alignof(obj1) >= alignof(int64_t),
"std::atomic not suitably aligned" );
struct container_struct {
@ -54,5 +54,5 @@ struct container_struct {
container_struct obj2;
static_assert( alignof(obj2.ao) == alignof(int64_t),
static_assert( alignof(obj2.ao) >= alignof(int64_t),
"std::atomic not suitably aligned" );