]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Fix decltype-bitfield1.C on i?86
authorMarek Polacek <polacek@redhat.com>
Tue, 7 Dec 2021 21:06:19 +0000 (16:06 -0500)
committerMarek Polacek <polacek@redhat.com>
Tue, 7 Dec 2021 21:08:20 +0000 (16:08 -0500)
commitcf2cd61dce4f5f0cf9d72328396e7f949db18ddb
treea602d3440438aa84a6b106f15733edc56c556e76
parent4394fd67264f5de650c2c3509c001c5f7203449d
c++: Fix decltype-bitfield1.C on i?86

This test was failing on i?86 because of:

warning: width of 'A::l' exceeds its type

so change the type to 'long long' and make the test run only on arches
where sizeof(long long) == 8 to avoid failing like this again.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/decltype-bitfield1.C: Change a type to unsigned
long long.  Only run on longlong64 targets.
gcc/testsuite/g++.dg/cpp0x/decltype-bitfield1.C