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