Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr104389.c
blob0c6c85a4f48e2a53337809e1936de17ce1a86767
1 /* PR tree-optimization/104389 */
2 /* { dg-do run } */
3 /* { dg-options "-O2" } */
4 /* { dg-add-options ieee } */
5 /* { dg-require-effective-target inf } */
7 __attribute__((noipa)) double
8 foo (void)
10 double a = __builtin_huge_val ();
11 return a * 0.0;
14 __attribute__((noipa)) long double
15 bar (void)
17 return __builtin_huge_vall () * 0.0L;
20 int
21 main ()
23 if (!__builtin_isnan (foo ()) || !__builtin_isnanl (bar ()))
24 __builtin_abort ();
25 return 0;