gcc/testsuite/gcc.c-torture/execute/20030910-1.c
raw| 1 | /* The gimplifier was inserting unwanted temporaries for REALPART_EXPR |
| 2 | nodes. These need to be treated like a COMPONENT_REF so their address can |
| 3 | be taken. */ |
| 4 | |
| 5 | void abort (void); |
| 6 | void exit (int); |
| 7 | |
| 8 | int main() |
| 9 | { |
| 10 | __complex double dc; |
| 11 | double *dp = &(__real dc); |
| 12 | *dp = 3.14; |
| 13 | if ((__real dc) != 3.14) abort(); |
| 14 | exit (0); |
| 15 | } |
| 16 |