diff options
author | Jeff Law <law@gcc.gnu.org> | 1997-08-19 01:34:40 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-08-19 01:34:40 -0600 |
commit | 921e5a0eb4f27bab1d45761abdf877d611c6bc9b (patch) | |
tree | 335fa7ed68bccaabc938e142eabc167ac296372e /gcc/testsuite/gcc.c-torture/execute/loop-2c.c | |
parent | 45832e2182e27364dd403958fac6a9756fd047cd (diff) | |
download | gcc-921e5a0eb4f27bab1d45761abdf877d611c6bc9b.zip gcc-921e5a0eb4f27bab1d45761abdf877d611c6bc9b.tar.gz gcc-921e5a0eb4f27bab1d45761abdf877d611c6bc9b.tar.bz2 |
Initial revision
From-SVN: r14840
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/loop-2c.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/loop-2c.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-2c.c b/gcc/testsuite/gcc.c-torture/execute/loop-2c.c new file mode 100644 index 0000000..9facf3b --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/loop-2c.c @@ -0,0 +1,23 @@ +int a[2]; + +__inline__ f (b, o) +{ + unsigned int i; + int *p; + for (p = &a[b], i = b; --i < ~0; ) + *--p = i * 3 + o; +} + +g(int b) +{ + f (b, (int)a); +} + +main () +{ + a[0] = a[1] = 0; + g (2); + if (a[0] != (int)a || a[1] != (int)a + 3) + abort (); + exit (0); +} |