comparison gcc/testsuite/c-c++-common/torture/builtin-arith-overflow-5.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. */
2 /* { dg-do run } */
3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
4
5 #include "builtin-arith-overflow-1.h"
6
7 #define U(s, op) op
8 TESTS (short, SHRT_MIN, SHRT_MAX)
9
10 #undef T
11 #define T(n, t1, t2, tr, v1, v2, vr, b, o) t##n##b ();
12
13 int
14 main ()
15 {
16 TESTS (short, SHRT_MIN, SHRT_MAX)
17 return 0;
18 }