diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-12-03 15:23:01 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-12-03 15:23:01 +0100 |
commit | 63658a9aaa0e8e7a16548f505c4c6ebd21a56c1d (patch) | |
tree | c058568faf68cb55d9e6fac0a52a0038cb8ed9dc | |
parent | 5e2ce672f413d1b6c9a1278a16d5a1304cdba0f9 (diff) | |
download | gcc-63658a9aaa0e8e7a16548f505c4c6ebd21a56c1d.zip gcc-63658a9aaa0e8e7a16548f505c4c6ebd21a56c1d.tar.gz gcc-63658a9aaa0e8e7a16548f505c4c6ebd21a56c1d.tar.bz2 |
* gcc.dg/20011130-1.c: New test.
From-SVN: r47550
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20011130-1.c | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a9715d8..e714c1e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..393f82a --- /dev/null +++ b/gcc/testsuite/gcc.dg/20011130-1.c @@ -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); +} |