aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr78365.c
blob: 2588a4826fd307170e963ab0c11f585b1ec54445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-additional-options "-Wno-old-style-definition" } */

int a, b, c;
char d;
static void fn1 (void *, int);
int fn2 (int);

void fn1 (cc, yh) void *cc;
char yh;
{
  char y;
  a = fn2(c - b + 1);
  for (; y <= yh; y++)
    ;
}

void fn3()
{
    fn1((void *)fn3, 1);
    fn1((void *)fn3, d - 1);
}