summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/sincos-1-nov.c
blob: da5f301a19a0f09745e5079d294b9e4974cf4b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run } */
/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
/* { dg-additional-options "-lm" } */


#include "mpx-check.h"
#include "math.h"

int mpx_test (int argc, const char **argv)
{
  double d1, d2;
  d1 = sin(argc);
  d2 = cos(argc);

  printf ("%f %f\n", d1, d2);

  return 0;
}