PR rtl-optimization/88018
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / builtin-arith-overflow-p-12.c
blob2f38c1852117b49df18cd1c743dcb036f0a7cce4
1 /* Test __builtin_{add,sub,mul}_overflow_p. */
2 /* { dg-do run } */
3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 #define OVFP
6 #include "builtin-arith-overflow-12.h"
8 TESTS (int, INT_MIN, INT_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 (int, INT_MIN, INT_MAX)
17 return 0;