* gcc.c-torture/compile/991213-1.c: New test.
From-SVN: r30897
This commit is contained in:
parent
0b807ad843
commit
4767498bcd
2 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
|
|
13
gcc/testsuite/gcc.c-torture/compile/991213-1.c
Normal file
13
gcc/testsuite/gcc.c-torture/compile/991213-1.c
Normal 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); }) ;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue