1 /* { dg-do compile } */ 2 /* { dg-options "-O -fdump-tree-forwprop1" } */ 3 f(_Complex float x,_Complex float y)4float f(_Complex float x, _Complex float y){ 5 x += y; 6 return __builtin_cimagf (x); 7 } 8 g(double x)9double g(double x){ 10 _Complex double c = __builtin_cexpi (x); 11 return __builtin_creal (c); 12 } 13 14 /* { dg-final { scan-tree-dump "__builtin_cos" "forwprop1"} } */ 15 /* { dg-final { scan-tree-dump-times "IMAGPART_EXPR" 2 "forwprop1"} } */ 16