1 /* Test __builtin_{add,sub}_overflow_p on {,un}signed long int. */
3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 typedef signed long int S
;
6 typedef unsigned long int U
;
8 #define SHIFT ((__SIZEOF_LONG__ - 1) * __CHAR_BIT__)
9 #define S_MAX __LONG_MAX__
10 #define S_MIN (-__LONG_MAX__ - 1)
11 #if __SIZEOF_LONG_LONG__ > __SIZEOF_LONG__
12 typedef long long int W
;
13 #elif __SIZEOF_INT128__ > __SIZEOF_LONG__
19 #include "builtin-arith-overflow-p-7.c"