1 /* { dg-do compile } */
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" } */