1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-tree-dce -fdump-tree-optimized" } */
3 _Complex int t = 0;
f(void)4 int f(void)
5 {
6   t = 0;
7  __imag__ t = 2;
8 }
9 
10 /* { dg-final { scan-tree-dump-times "__complex__" 0 "optimized" } } */
11 /* { dg-final { scan-tree-dump-times "REALPART_EXPR" 1 "optimized" } } */
12 /* { dg-final { scan-tree-dump-times "IMAGPART_EXPR" 1 "optimized" } } */
13 
14