comparison gcc/testsuite/c-c++-common/torture/builtin-arith-overflow-p-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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
9 TESTS (int, INT_MIN, INT_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 (int, INT_MIN, INT_MAX)
18 return 0;
19 }