(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
pr65310.c
       1  /* { dg-do compile } */
       2  
       3  struct a 
       4  {
       5    int a[100];
       6  };
       7  typedef struct a b __attribute__ ((aligned (32)));
       8  typedef struct a c __attribute__ ((aligned (4)));
       9  
      10  int t(b *a)
      11  {
      12    int i;
      13    c *ptr = a;
      14    for (i=0;i<100;i++)
      15      ptr->a[i]++;
      16  }
      17  
      18  /* The memory access is through a pointer of type c which means
      19     *ptr is not aligned.  */
      20  
      21  /* { dg-final { scan-tree-dump "can't force alignment" "vect" { xfail vect_element_align_preferred } } } */
      22  /* { dg-final { scan-tree-dump-not "misalign = 0" "vect" { xfail vect_element_align_preferred } } } */