diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-07 19:54:23 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-07 19:54:23 +0000 |
commit | 3f95e81d60a3b19e0b124d134ca130e42827c447 (patch) | |
tree | ee2daaeb9b71d2f0b1bff6b708d70e13c136da67 /gcc/testsuite/gcc.c-torture/compile/20050423-1.c | |
parent | b3786ab323f4845c9721759e9e0442bfa68eafe4 (diff) | |
download | gcc-3f95e81d60a3b19e0b124d134ca130e42827c447.tar.gz |
* 20050423-1.c: Testcase for PR tree-optimization/20742.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20050423-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20050423-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20050423-1.c b/gcc/testsuite/gcc.c-torture/compile/20050423-1.c new file mode 100644 index 00000000000..fee5eb9093e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20050423-1.c @@ -0,0 +1,16 @@ +/* PR tree-optimization/20742 */ + +int +foo (int x, int y) +{ + register int a = y + 57; + register int b = y + 31; + + while (x-- > 0) + { + #define TEN(x) x x x x x x x x x x + TEN (TEN (a += b; b -= a;)) + TEN (TEN (a += b; b -= a;)) + } + return a + b; +} |