OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wfloat-equal-1.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR c/19999 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wfloat-equal" } */
4
 
5
double a, b;
6
_Complex double c, d;
7
int f(void) { return a == b; } /* { dg-warning "comparing floating point" } */
8
int g(void) { return c == d; } /* { dg-warning "comparing floating point" } */
9
int h(void) { return a != b; } /* { dg-warning "comparing floating point" } */
10
int i(void) { return c != d; } /* { dg-warning "comparing floating point" } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.