* gcc.c-torture/compile/20000717-1.c: New test.
From-SVN: r35084
This commit is contained in:
parent
e21239a3df
commit
9f759236eb
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Jul 17 03:13:12 2000 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/compile/20000717-1.c: New test.
|
||||
|
||||
2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
|
||||
|
||||
* gcc.c-torture/execute/20000717-2.c: New test.
|
||||
|
|
11
gcc/testsuite/gcc.c-torture/compile/20000717-1.c
Normal file
11
gcc/testsuite/gcc.c-torture/compile/20000717-1.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
short
|
||||
inner_product (short *a, short *b)
|
||||
{
|
||||
int i;
|
||||
short sum = 0;
|
||||
|
||||
for (i = 9; i >= 0; i--)
|
||||
sum += (*a++) * (*b++);
|
||||
|
||||
return sum;
|
||||
}
|
Loading…
Add table
Reference in a new issue