990222-1.c: New test.

* gcc.c-torture/execute/990222-1.c: New test.
New test from Herman ten Brugge

From-SVN: r25361
This commit is contained in:
Jeffrey A Law 1999-02-22 00:17:46 +00:00 committed by Jeff Law
parent 691d2a24a1
commit 9c41200f1a
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Feb 22 01:15:08 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/990222-1.c: New test.
1999-02-19 Craig Burley <craig@jcb-sc.com>
* g77.f-torture/compile/19990218-0.f: New test.

View File

@ -0,0 +1,11 @@
char line[4] = { '1', '9', '9', '\0' };
int main()
{
char *ptr = line + 3;
while ((*--ptr += 1) > '9') *ptr = '0';
if (line[0] != '2' || line[1] != '0' || line[2] != '0')
abort();
return 0;
}