(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr99492.c
       1  /* { dg-do run { target { powerpc*-ibm-aix* } } } */
       2  /* { dg-options "" } */
       3  
       4  extern void abort (void);
       5  
       6  struct A {
       7      double _Complex a[64];
       8  };
       9  
      10  struct B {
      11      double b[64];
      12  };
      13  
      14  struct C {
      15      char c1;
      16      double _Complex c2;
      17  };
      18  
      19  struct D {
      20      char c1;
      21      double c2;
      22  };
      23  
      24  int main() {   
      25    if (__alignof(double _Complex) != 8)
      26      abort();
      27  
      28    if (__alignof(struct A) != 8)
      29      abort();
      30  
      31    if (__alignof(struct C) != 4)
      32      abort();
      33  
      34    if (__builtin_offsetof(struct C, c2) != 4)
      35      abort();
      36  
      37    if (__alignof(double) != 8)
      38      abort();
      39  
      40    if (__alignof(struct B) != 8)
      41      abort();
      42  
      43    if (__alignof(struct D) != 4)
      44      abort();
      45  
      46    if (__builtin_offsetof(struct D, c2) != 4)
      47      abort();
      48  
      49    return 0;
      50  }