summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20030910-1.c
blob: 6c849134a9b008d5758e85da1bf62fe1d4153063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* The gimplifier was inserting unwanted temporaries for REALPART_EXPR
   nodes.  These need to be treated like a COMPONENT_REF so their address can
   be taken.  */

int main()
{
  __complex double dc;
  double *dp = &(__real dc);
  *dp = 3.14;
  if ((__real dc) != 3.14) abort();
  exit (0);
}