mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-12 03:06:48 +08:00
* gcc.c-torture/compile/20000717-1.c: New test.
From-SVN: r35084
This commit is contained in:
parent
e21239a3df
commit
9f759236eb
@ -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…
Reference in New Issue
Block a user