summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtins-59.c
blob: b940d39ed60ea131069298dd67e7bb644085c1fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple" } */
/* { dg-require-effective-target c99_runtime } */

double test (double x)
{
  double s, c;
  __builtin_sincos (x, &s, &c);
  return s + c;
}

/* { dg-final { scan-tree-dump "__builtin_cexpi" "gimple" } } */
/* { dg-final { scan-tree-dump-not "sincos" "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */