]> gcc.gnu.org Git - gcc.git/commitdiff
* gcc.dg/20011130-1.c: New test.
authorJakub Jelinek <jakub@redhat.com>
Mon, 3 Dec 2001 14:23:01 +0000 (15:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 3 Dec 2001 14:23:01 +0000 (15:23 +0100)
From-SVN: r47550

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

index a9715d8734e44d47b3556b654ac017b68d12ed44..e714c1eaa236c2a3a60279b0802b668730bd98a6 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-03  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.dg/20011130-1.c: New test.
+
 2001-12-03  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.dg/other/scope1.C: New test.
diff --git a/gcc/testsuite/gcc.dg/20011130-1.c b/gcc/testsuite/gcc.dg/20011130-1.c
new file mode 100644 (file)
index 0000000..393f82a
--- /dev/null
@@ -0,0 +1,25 @@
+/* { dg-do compile } */
+/* { dg-options "-O3 -g -finline-limit=100" } */
+
+#define WORK(x, y) __asm__ ("" : "=r" (x) : "0" (x)); y += x + 26
+#define SOME_WORK(x, y) WORK(x, y); WORK(x, y); WORK(x, y); WORK(x, y)
+#define MORE_WORK(x, y) SOME_WORK(x, y); SOME_WORK(x, y); SOME_WORK(x, y)
+#define EVEN_MORE_WORK(x, y) MORE_WORK(x, y); MORE_WORK(x, y); MORE_WORK(x, y)
+#define LOTS_OF_WORK(x, y) EVEN_MORE_WORK(x, y); EVEN_MORE_WORK(x, y)
+
+static int __attribute__((unused)) foo (int x)
+{
+  static inline int bar (int x)
+    {
+      int y;
+      y = x;
+      LOTS_OF_WORK(x, y);
+      LOTS_OF_WORK(x, y);
+      LOTS_OF_WORK(x, y);
+      LOTS_OF_WORK(x, y);
+      LOTS_OF_WORK(x, y);
+      LOTS_OF_WORK(x, y);
+      return y;
+    }
+  return bar(x);
+}
This page took 0.091204 seconds and 5 git commands to generate.