* gcc.dg/20020104-2.c: New test.
authorJakub Jelinek <jakub@redhat.com>
Fri, 4 Jan 2002 21:05:50 +0000 (22:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 4 Jan 2002 21:05:50 +0000 (22:05 +0100)
From-SVN: r48542

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

index 657035c2845d920f765d087cf85250bcfca639df..76d85e2e581403c1811f4e399e4ddc339c1ab497 100644 (file)
@@ -2,6 +2,8 @@
 
        * gcc.dg/20020104-1.c: New test.
 
+       * gcc.dg/20020104-2.c: New test.
+
 2002-01-04  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * gcc.dg/20020103-1.c: Fix typo in target selector.
diff --git a/gcc/testsuite/gcc.dg/20020104-2.c b/gcc/testsuite/gcc.dg/20020104-2.c
new file mode 100644 (file)
index 0000000..3bcafe0
--- /dev/null
@@ -0,0 +1,10 @@
+/* This testcase used to fail because outlining_inline_function was called
+   too early, before rtl was generated.  */
+/* { dg-do compile } */
+/* { dg-options "-O3 -g" } */
+
+int foo (const int *x)
+{
+  char a[*x];
+  return 0;
+}