OSDN Git Service

2008-04-24 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / builtins-error.c
1 /* { dg-do compile } */
2
3 struct X { int x; };
4
5 int test1(struct X x)
6 {
7   return __builtin_isnormal(x); /* { dg-error "non-floating-point argument" } */
8 }
9
10 int test2(double x)
11 {
12   return __builtin_isgreater(x); /* { dg-error "not enough arguments" } */
13 }
14
15 int test3(double x)
16 {
17   return __builtin_isinf(x, x); /* { dg-error "too many arguments" } */
18 }