view gcc/testsuite/gcc.dg/vect/O3-pr49087.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 } */

static char func2() { }

struct S0
{
 int t;
};

int g;

struct S0 s0;

int 
foo (int arg)
{
  int *ptr = &g;
  int i, j;
  for (i = 0; i < 10; i += 1)
    {
      for (j = 0; j < 1; j += 1)
	{
	  int k;
	  if (arg)
	    {
	      int l;
	      for (k = 1; arg < 10; arg = func2 ())
		{
		  return l;
		}
	    }
	  *ptr = func2 () ^ s0.t;
	}
    }
}