This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to expand_inline_function
- To: Jason Merrill <jason at redhat dot com>
- Subject: Re: Patch to expand_inline_function
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 26 Aug 2000 18:12:16 -0300
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200008252151.OAA25076@cse.cygnus.com>
On Aug 25, 2000, Jason Merrill <jason@redhat.com> wrote:
> Alexandre will check in the testcase. Right, Alexandre? :)
Yep. Here it is.
Index: gcc/testsuite/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* gcc.dg/dwarf2-2.c: New test.
Index: gcc/testsuite/gcc.dg/dwarf2-2.c
===================================================================
RCS file: dwarf2-2.c
diff -N dwarf2-2.c
--- gcc/testsuite/gcc.dg/dwarf2-2.c Tue May 5 13:32:27 1998
+++ gcc/testsuite/gcc.dg/dwarf2-2.c Sat Aug 26 14:04:58 2000
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-O -g" } */
+
+/* Copyright (C) 2000 Free Software Foundation */
+/* Contributed by Alexandre Oliva <aoliva@redhat.com> */
+
+inline double fx (double x)
+{
+ return 3 * x;
+}
+
+main ()
+{
+ double a = 0, fx (double), foo ();
+ fx (a);
+ if (a != 3)
+ foo ();
+}
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me