]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bf-ms-attrib.c: Fix expected struct size
authorJonathan Yong <10walls@gmail.com>
Wed, 9 Apr 2025 14:29:39 +0000 (14:29 +0000)
committerJonathan Yong <10walls@gmail.com>
Fri, 11 Apr 2025 01:57:27 +0000 (01:57 +0000)
Both gcc and msvc agree that the struct size should
be 12, gcc is already correct.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/testsuite/ChangeLog:

PR target/113633
* gcc.dg/bf-ms-attrib.c: Fix expected __ms_struct__ layout
size.

gcc/testsuite/gcc.dg/bf-ms-attrib.c

index 2da4f0320d6a69a08e89d26173b448eee58a2d3c..5208c7f882fb7e9171df1853f16c166e9dfa410a 100644 (file)
@@ -32,7 +32,7 @@ main()
     /* As long as the sizes are as expected, we know attributes are working.
        bf-ms-layout.c makes sure the right thing happens when the attribute
        is on. */
-    if (sizeof(struct one_ms) != 8)
+    if (sizeof(struct one_ms) != 12)
        abort();
     if (sizeof(struct one_gcc) != 8)
        abort();