This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to expand_inline_function


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]