Commit 16481bae by Andreas Schwab Committed by Jeff Law

* gcc.c-torture/execute/990513-1.c: New test.

From-SVN: r26919
parent ab519383
Thu May 13 02:02:46 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* gcc.c-torture/execute/990513-1.c: New test.
1999-05-10 Richard Henderson <rth@cygnus.com>
* g++.old-deja/g++.other/null1.C (g): Add overload for long.
......
#include <string.h>
void foo (int *BM_tab, int j)
{
int *BM_tab_base;
BM_tab_base = BM_tab;
BM_tab += 0400;
while (BM_tab_base != BM_tab)
{
*--BM_tab = j;
*--BM_tab = j;
*--BM_tab = j;
*--BM_tab = j;
}
}
int main ()
{
int BM_tab[0400];
memset (BM_tab, 0, sizeof (BM_tab));
foo (BM_tab, 6);
if (BM_tab[0] != 6)
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment