summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-2.c
blob: 951e7dece199ff7964f0a9b65fd48bec24dcba78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O3 -fcheck-pointer-bounds -mmpx -fno-inline" } */

#include "math.h"

double
test1 (double x, double y, double (*fn)(double, double))
{
  return fn (x, y);
}

double
test2 (double x, double y)
{
  return test1 (x, y, copysign);
}