* gcc.c-torture/compile/991213-1.c: New test.

From-SVN: r30897
This commit is contained in:
Jeffrey A Law 1999-12-14 06:06:06 +00:00 committed by Jeff Law
parent 0b807ad843
commit 4767498bcd
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Mon Dec 13 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/991213-1.c: New test.
Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* gcc.dg/991209-1.c: New test.

View file

@ -0,0 +1,13 @@
typedef __complex__ double double_complex;
void
p (const double_complex *t, int n)
{
int i;
double s = ({ typeof ( t[n/2] ) arg = ( t[n/2] ); (__imag__ arg); }) ;
for (i = 1; i < n/2; i++)
s += 2* ({ typeof ( t[i] ) arg = ( t[i] ); (__imag__ arg); }) ;
}