aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20021120-1.c
blob: 3dc49287f1a23ce9635d2dbad47519b787b7fa64 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/8518 */
/* Contributed by Volker Reichelt. */

/* Verify that GCC doesn't get confused by the
   redefinition of an extern inline function. */

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

extern int inline foo () { return 0; }
extern int inline bar () { return 0; }
static int inline bar () { return foo(); }