1 /* Test __builtin_{add,sub,mul}_overflow_p. */ 2 /* { dg-do run } */ 3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */ 4 5 #define OVFP 6 #include "builtin-arith-overflow-1.h" 7 8 #define U(s, op) op TESTS(short,SHRT_MIN,SHRT_MAX)9TESTS (short, SHRT_MIN, SHRT_MAX) 10 11 #undef T 12 #define T(n, t1, t2, tr, v1, v2, vr, b, o) t##n##b (); 13 14 int 15 main () 16 { 17 TESTS (short, SHRT_MIN, SHRT_MAX) 18 return 0; 19 } 20