blob: 8410009d00ec55175a2c8ec2ed869cbfb6177ad1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-do run } */
/* { dg-require-effective-target ia32 } */
/* { dg-options "-mpreferred-stack-boundary=2" { target { i?86-*-* x86_64-*-* } } } */
#include <stddef.h>
struct test
{
char a;
long long b;
};
struct test global_var;
int main()
{
struct test local_var;
if (__alignof__(global_var) != 4
|| __alignof__(local_var) != 4
|| offsetof(struct test, b) != 4)
__builtin_abort();
return 0;
}
|