aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/pr16876.c
blob: 9587849b2fcbf8001cdbf6ffb514e112ca006037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-options "-O -finline-functions" } */

static void g();
struct bigstack {
   char space[4096];
};


void f() {
    g(0); /* { dg-error "incompatible type for argument 1 of 'g'" } */
}

static void g(struct bigstack bstack) {
     g(bstack);
}