From 336b7dca5b88e235a02bb1f83153cf4cb6f8b469 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 4 Jan 2002 22:05:50 +0100 Subject: [PATCH] * gcc.dg/20020104-2.c: New test. From-SVN: r48542 --- gcc/testsuite/ChangeLog | 2 ++ gcc/testsuite/gcc.dg/20020104-2.c | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/20020104-2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 657035c2845..76d85e2e581 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -2,6 +2,8 @@ * gcc.dg/20020104-1.c: New test. + * gcc.dg/20020104-2.c: New test. + 2002-01-04 Hans-Peter Nilsson * 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 index 00000000000..3bcafe02f3a --- /dev/null +++ b/gcc/testsuite/gcc.dg/20020104-2.c @@ -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; +}