view gcc/testsuite/c-c++-common/asan/red-align-2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* This tests aligment propagation to structure elem and
   abcense of redundant & 7.  */

/* { dg-options "-fdump-tree-sanopt" } */
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */

struct st {
  int a;
  int b;
  int c;
} __attribute__((aligned(16)));

int foo (struct st * s_p)
{
  return s_p->b;
}

/* { dg-final { scan-tree-dump-times "& 7" 1 "sanopt" } } */