]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/torture/builtin-arith-overflow-12.c
re PR c/59708 (clang-compatible checked arithmetic builtins)
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / torture / builtin-arith-overflow-12.c
1 /* Test __builtin_{add,sub,mul_overflow. */
2 /* { dg-do run } */
3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
4
5 #include "builtin-arith-overflow-12.h"
6
7 TESTS (int, INT_MIN, INT_MAX)
8
9 #undef T
10 #define T(n, t1, t2, tr, v1, v2, vr, b, o) t##n##b ();
11
12 int
13 main ()
14 {
15 TESTS (int, INT_MIN, INT_MAX)
16 return 0;
17 }