Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-16.c
blobe7ffe9350673a9e0250dfabcf33ae8e591297e3c
1 /* Copyright (C) 2003 Free Software Foundation.
3 Verify that all the __builtin_cabs? functions are recognized
4 by the compiler. Complex numbers are not supported with the
5 gcc.dg default "-pedantic-errors" option, so the dg-options
6 overrides this.
8 Written by Roger Sayle, 1st June 2003. */
10 /* { dg-do compile } */
11 /* { dg-options "-O -ansi" } */
12 /* { dg-final { scan-assembler-not "__builtin_" } } */
14 double test(__complex__ double x)
16 return __builtin_cabs (x);
19 float testf(__complex__ float x)
21 return __builtin_cabsf (x);
24 long double testl(__complex__ long double x)
26 return __builtin_cabsl (x);