view gcc/testsuite/gcc.dg/signbit-sa.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* Some versions of Solaris <math.h> give strict-aliasing warnings for
   signbit.  */
/* { dg-require-effective-target c99_runtime } */
/* { dg-options "-std=c99 -O2 -Wstrict-aliasing" } */

#include <math.h>

int
main (void)
{
  return signbit (1.0f) | signbit (1.0) | signbit (1.0l);;
}