diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-17 20:53:55 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-17 20:53:55 +0000 |
commit | 795c59e98ffae0810d7f48ddde10d93905a3fc90 (patch) | |
tree | f7cbb5576f892883e794f0cbf705b7d368e9d7b9 /gcc/testsuite/gcc.dg/loop-4.c | |
parent | 34b9d7fd7ffc02923971c88f2aa2c9dbcc90f4c1 (diff) | |
download | gcc-795c59e98ffae0810d7f48ddde10d93905a3fc90.tar.gz |
* gcc.dg/loop-4.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81946 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/loop-4.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/loop-4.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/loop-4.c b/gcc/testsuite/gcc.dg/loop-4.c new file mode 100644 index 00000000000..c83fd1c0fc5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/loop-4.c @@ -0,0 +1,25 @@ +/* PR optimization/11841 */ +/* Originator: Andrey Panov <panov@canopus.iacp.dvo.ru> */ +/* Reduced testcase by Volker Reichelt <reichelt@igpm.rwth-aachen.de> */ + +/* Verify that the (old) loop unroller doesn't wrongly mark a pseudo + referenced in a note as local. */ + +/* { dg-do run } */ +/* { dg-options "-O2 -funroll-loops" } */ + +int *a; + +int main() +{ + double d[6]; + int i, j; + + for (i=0; i<4; ++i) + for (j=0; j<3; ++j) + d[i+j] = 0; + + a = &i; + + return 0; +} |