OSDN Git Service

* gcc.dg/dwarf2-2.c: New test.
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Aug 2000 21:12:53 +0000 (21:12 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Aug 2000 21:12:53 +0000 (21:12 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36000 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/dwarf2-2.c [new file with mode: 0644]

index 65ef706..392f268 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gcc.dg/dwarf2-2.c: New test.
+
 2000-08-26  Zack Weinberg  <zack@wolery.cumb.org>
 
        * gcc.dg/cpp/tr-warn4.c: Remove unconstrained .* from
diff --git a/gcc/testsuite/gcc.dg/dwarf2-2.c b/gcc/testsuite/gcc.dg/dwarf2-2.c
new file mode 100644 (file)
index 0000000..82e5d8d
--- /dev/null
@@ -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 ();
+}