2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / builtin-arith-overflow-4.c
blob6d35aa1ae153410a9248cbdc24d7e5d2cb738350
1 /* Test __builtin_{add,sub,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) op
8 TESTS (char, SCHAR_MIN, SCHAR_MAX)
10 #undef T
11 #define T(n, t1, t2, tr, v1, v2, vr, b, o) t##n##b ();
13 int
14 main ()
16 TESTS (char, SCHAR_MIN, SCHAR_MAX)
17 return 0;