2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr39013-2.c
blob3040d81a44d3f20b5aa63d89e8902ad1cb873ca4
1 /* PR target/39013 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target pie } */
4 /* { dg-options "-O2 -fpie -std=gnu99" } */
6 inline int foo (void); /* { dg-warning "declared but never defined" } */
7 extern inline int bar (void); /* { dg-warning "declared but never defined" } */
9 int
10 main (void)
12 return foo () + bar ();
15 /* { dg-final { scan-assembler "foo@PLT" } } */
16 /* { dg-final { scan-assembler "bar@PLT" } } */