aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr16107.c
blob: a54d9e19021f17ec600f39e6273f7630971c85d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

#include <math.h>

double t (double x)
{
 x = -x;
 x = cos (x);
 x = -x;
 x = cosh (x);
 return x;
}

/* { dg-final { scan-tree-dump-not "-x" "optimized" } } */