1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* { dg-do compile } */ /* { dg-options "-fdump-tree-gimple" } */ double test1 (double x) { return __real __builtin_cexpi (x); } double test2 (double x) { return __imag __builtin_cexpi (x); } /* { dg-final { scan-tree-dump "cos" "gimple" } } */ /* { dg-final { scan-tree-dump "sin" "gimple" } } */