view gcc/testsuite/gcc.c-torture/execute/unroll-1.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-options "-fgnu89-inline" } */

extern void abort (void);
extern void exit (int);

inline int
f (int x)
{
  return (x + 1);
}
 
int
main (void)
{
  int a = 0 ;
 
  while ( (f(f(f(f(f(f(f(f(f(f(1))))))))))) + a < 12 )
    {
      a++;
      exit (0);
    }
  if (a != 1)
    abort();
}