]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Skip class-11_a.H for default_packed targets
authorDimitar Dimitrov <dimitar@dinux.eu>
Sat, 9 Aug 2025 11:01:48 +0000 (14:01 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Sat, 9 Aug 2025 11:17:47 +0000 (14:17 +0300)
The g++.dg/modules/class-11_a.H test expects structs to have a padding.
Skip this test for targets which have packed structs by default.

This patch fixes the test for pru-unknown-elf from FAIL to UNSUPPORTED.
The test still passes on x86_64-linux-gnu.

gcc/testsuite/ChangeLog:

* g++.dg/modules/class-11_a.H: Skip test for effective
default_packed targets.
* g++.dg/modules/class-11_b.C: Ditto.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/g++.dg/modules/class-11_a.H
gcc/testsuite/g++.dg/modules/class-11_b.C

index 799dbdd733c180d2ba86c5a31659155e8e360d75..43fddb67776527a596ae7ef1cbf5e13029b7306e 100644 (file)
@@ -1,6 +1,7 @@
 // Check for some additional lang_type flags that we'd missed.
 // { dg-additional-options "-fmodule-header -fabi-version=21 -Wabi=15" }
 // { dg-module-cmi {} }
+// { dg-skip-if "test assumes that structs have padding" { default_packed } }
 
 #if __cpp_trivial_relocatability < 202502L
 #define trivially_relocatable_if_eligible __trivially_relocatable_if_eligible
index 2450a45c7398c4a97a9b66b15a34b5685109ab60..87be71a398d7ac7663c48836c5b271348839646f 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules -fabi-version=21 -Wabi=15" }
+// { dg-skip-if "test assumes that structs have padding" { default_packed } }
 
 import "class-11_a.H";