OSDN Git Service

* gcc.dg/debug/dwarf2/aranges-fnsec-1.c: Add -w to dg-options.
[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 "too few arguments" } */
13 }
14
15 int test3(double x)
16 {
17   return __builtin_isinf(x, x); /* { dg-error "too many arguments" } */
18 }