summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr39013-2.c
blob: 615d54900f84ca18f1db76d48c75e3976754ed2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/39013 */
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fpie -std=gnu99" } */

inline int foo (void);		/* { dg-warning "declared but never defined" } */
extern inline int bar (void);	/* { dg-warning "declared but never defined" } */

int
main (void)
{
  return foo () + bar ();
}

/* { dg-final { scan-assembler "foo@PLT" } } */
/* { dg-final { scan-assembler "bar@PLT" } } */