Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / builtin-arith-overflow-1.c
blob4d90ba5e1dbc94412727996555f185c42e7bdd63
1 /* Test __builtin_{add,sub,mul,{s,u}add,{s,u}sub,{s,u}mul}_overflow. */
2 /* { dg-do run } */
3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 #include "builtin-arith-overflow-1.h"
7 #define U(s, op) s##op
8 TESTS (int, INT_MIN, INT_MAX)
9 #undef U
10 #define U(s, op) op
11 TESTS (int, INT_MIN, INT_MAX)
13 #undef T
14 #define T(n, t1, t2, tr, v1, v2, vr, b, o) t##n##b ();
16 int
17 main ()
19 TESTS (int, INT_MIN, INT_MAX)
20 #undef U
21 #define U(s, op) s##op
22 TESTS (int, INT_MIN, INT_MAX)
23 return 0;