diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-03 14:23:01 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-03 14:23:01 +0000 |
commit | 09add867642b764d20321382027ac1a27271bb06 (patch) | |
tree | c058568faf68cb55d9e6fac0a52a0038cb8ed9dc /gcc/testsuite/gcc.dg/20011130-1.c | |
parent | a8d9563d85f7af4f5bc85698eb18d9704afdc33c (diff) | |
download | gcc-09add867642b764d20321382027ac1a27271bb06.tar.gz |
* gcc.dg/20011130-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47550 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20011130-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20011130-1.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20011130-1.c b/gcc/testsuite/gcc.dg/20011130-1.c new file mode 100644 index 00000000000..393f82a91fb --- /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); +} |