Commit e106e1b0 by Richard Sandiford Committed by Richard Sandiford

* gcc.dg/unordered-1.c: New test.

From-SVN: r50402
parent 71925bc0
2002-03-07 Richard Sandiford <rsandifo@redhat.com>
* gcc.dg/unordered-1.c: New test.
2002-03-07 Richard Earnshaw <rearnsha@arm.com>
* gcc.c-torture/execute/20020307-1.c: New test.
......
/* { dg-do compile } */
void bar (int);
void foo (int i, float f)
{
bar (__builtin_isgreater (i, i)); /* { dg-error "non-floating-point" } */
bar (__builtin_isgreater (f, i));
bar (__builtin_isgreater (i, f));
bar (__builtin_isgreater (f, 2));
bar (__builtin_isgreater (f, 2.0f));
bar (__builtin_isgreater (f, 2.0));
bar (__builtin_isgreater (2, f));
bar (__builtin_isgreater (2.0f, f));
bar (__builtin_isgreater (2.0, f));
bar (__builtin_isgreater (&f, i)); /* { dg-error "non-floating-point" } */
bar (__builtin_isgreater (f, &i)); /* { dg-error "non-floating-point" } */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment