summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/torture/builtin-arith-overflow-15.c
blob: 3d78994d7dd0eefd9f79cc44ee91cf64bdf395bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test __builtin_{add,sub,mul}_overflow.  */
/* { dg-do run } */
/* { dg-skip-if "" { ! run_expensive_tests }  { "*" } { "-O0" "-O2" } } */

#include "builtin-arith-overflow-12.h"

TESTS (char, SCHAR_MIN, SCHAR_MAX)

#undef T
#define T(n, t1, t2, tr, v1, v2, vr, b, o) t##n##b ();

int
main ()
{
  TESTS (char, SCHAR_MIN, SCHAR_MAX)
  return 0;
}