diff options
author | Jeffrey A Law <law@cygnus.com> | 2000-04-12 16:46:01 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-04-12 10:46:01 -0600 |
commit | 380b409b7df10ab4055dfc29d2cb6973754b2768 (patch) | |
tree | 213584da51c91f0674a073d2f19af122b508e286 /gcc | |
parent | 270630a20972ecc7921d1ffcc99c521604b15015 (diff) | |
download | gcc-380b409b7df10ab4055dfc29d2cb6973754b2768.zip gcc-380b409b7df10ab4055dfc29d2cb6973754b2768.tar.gz gcc-380b409b7df10ab4055dfc29d2cb6973754b2768.tar.bz2 |
* gcc.c-torture/execute/20000412-4.c: New test.
From-SVN: r33119
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20000412-4.c | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ca822b9..22501c2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,6 @@ Wed Apr 12 10:25:08 2000 Jeffrey A Law (law@cygnus.com) + * gcc.c-torture/execute/20000412-4.c: New test. * gcc.c-torture/compile/20000412-2.c: New test. * gcc.c-torture/execute/20000412-3.c: New test. * gcc.c-torture/compile/20000412-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/20000412-4.c b/gcc/testsuite/gcc.c-torture/execute/20000412-4.c new file mode 100644 index 0000000..f05b151 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000412-4.c @@ -0,0 +1,26 @@ + void f(int i, int j, int radius, int width, int N) + { + const int diff = i-radius; + const int lowk = (diff>0 ? diff : 0 ); + int k; + + for(k=lowk; k<= 2; k++){ + int idx = ((k-i+radius)*width-j+radius); + if (idx < 0) + abort (); + } + + for(k=lowk; k<= 2; k++); + } + + + int main(int argc, char **argv) + { + int exc_rad=2; + int N=8; + int i; + for(i=1; i<4; i++) + f(i,1,exc_rad,2*exc_rad + 1, N); + exit (0); + } + |