Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr102207.c
blob08540d0c18013915e0d0b76483332983b65f9809
1 /* PR tree-optimization/102207 */
2 /* { dg-do run { target int128 } } */
3 /* { dg-options "-O2" } */
5 typedef unsigned __int128 u128;
7 u128
8 foo (unsigned short a)
10 u128 g;
11 __builtin_sub_overflow ((unsigned long long) -a, 1, &g);
12 return g;
15 int
16 main ()
18 if (__SIZEOF_LONG_LONG__ * __CHAR_BIT__ != 64
19 || __SIZEOF_SHORT__ * __CHAR_BIT__ != 16)
20 return 0;
21 if (foo (1) != 0xfffffffffffffffeULL)
22 __builtin_abort ();
23 return 0;