OSDN Git Service

PR middle-end/52419
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / fold-mulconj-1.c
1 /* PR tree-optimization/23452 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */
4
5 _Complex double foo(_Complex double z)
6 {
7   return z * ~z;
8 }
9
10 _Complex int bar(_Complex int z)
11 {
12   return z * ~z;
13 }
14
15 /* { dg-final { scan-tree-dump-times "CONJ_EXPR" 0 "gimple" } } */
16 /* { dg-final { cleanup-tree-dump "gimple" } } */