view gcc/testsuite/gcc.dg/pr60647-1.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 "-O2" } */

struct _wincore
{
  int y;
  int width;
};
int a;
void fn2 (void);
static int fn1 (dpy, winInfo) struct _XDisplay *dpy;
struct _wincore *winInfo;
{
  a = winInfo->width;
  fn2 ();
}

void fn4 (int, int, int);
static int fn3 (dpy, winInfo, visrgn) struct _XDisplay *dpy;
int winInfo, visrgn;
{
  int b = fn1 (0, winInfo);
  fn4 (0, 0, visrgn);
}

int
fn5 (event) struct _XEvent *event;
{
  fn3 (0, 0, 0);
}