From f9bfb600a167fe945c7cc2fed02a95fb82e11c2f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 20 Jun 2008 21:55:02 +0100 Subject: [PATCH] * gcc.dg/inline-31.c: New test. From-SVN: r136993 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/inline-31.c | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/inline-31.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9e70eb671d7..71de4be63ce 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-06-20 Joseph Myers + + * gcc.dg/inline-31.c: New test. + 2008-06-19 Jerry DeLisle * gfortran.dg/fmt_l.f90: Fix end of line test pattern. diff --git a/gcc/testsuite/gcc.dg/inline-31.c b/gcc/testsuite/gcc.dg/inline-31.c new file mode 100644 index 00000000000..1d9a2212e10 --- /dev/null +++ b/gcc/testsuite/gcc.dg/inline-31.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-options "-std=c99 -pedantic-errors" } */ +inline int f (void) { return 0; } + +void +g (void) +{ + extern int f(); +} -- 2.30.2