2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / unordered-1.c
blob1310532de33affa9d092cfc29ab4389a8d3c5504
1 /* { dg-do compile } */
3 void bar (int);
5 void foo (int i, float f)
7 bar (__builtin_isgreater (i, i)); /* { dg-error "non-floating-point" } */
8 bar (__builtin_isgreater (f, i));
9 bar (__builtin_isgreater (i, f));
10 bar (__builtin_isgreater (f, 2));
11 bar (__builtin_isgreater (f, 2.0f));
12 bar (__builtin_isgreater (f, 2.0));
13 bar (__builtin_isgreater (2, f));
14 bar (__builtin_isgreater (2.0f, f));
15 bar (__builtin_isgreater (2.0, f));
16 bar (__builtin_isgreater (&f, i)); /* { dg-error "non-floating-point" } */
17 bar (__builtin_isgreater (f, &i)); /* { dg-error "non-floating-point" } */