1 /* { dg-do compile } */
2 
3 void bar (int);
4 
foo(int i,float f)5 void foo (int i, float f)
6 {
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" } */
18 }
19