summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/torture/builtin-arith-overflow-13.c
blob: 730b6d964af6a47283d4ce2f57fca6b2eeff6653 (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 (long, LONG_MIN, LONG_MAX)

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

int
main ()
{
  TESTS (long, LONG_MIN, LONG_MAX)
  return 0;
}