view gcc/testsuite/gcc.dg/tree-ssa/pr19633.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-ssa-vops" } */
struct S
{
  int w, x, y, z;
};
struct T
{
  int r;
  struct S s;
};
void bar (struct S, int);
void
foo (int a, struct T b)
{
  struct S x;
  struct S *c = &x;
  if (a)
    c = &b.s;
  bar (*c, a);
}

/* Make sure that .GLOBAL_VAR is not created when there are no
   clobbering calls.  */
/* { dg-final { scan-tree-dump-times "GLOBAL_VAR" 0 "ssa"} } */