Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/torture/builtin-arith-overflow-11.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* Test __builtin_{add,sub}_overflow on {,un}signed long long int. */ |
2 /* { dg-do run } */ | |
3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */ | |
4 | |
5 typedef signed long long int S; | |
6 typedef unsigned long long int U; | |
7 #define COND 1 | |
8 #define SHIFT ((__SIZEOF_LONG_LONG__ - 1) * __CHAR_BIT__) | |
9 #define S_MAX __LONG_LONG_MAX__ | |
10 #define S_MIN (-__LONG_LONG_MAX__ - 1) | |
11 #if __SIZEOF_INT128__ > __SIZEOF_LONG_LONG__ | |
12 typedef __int128 W; | |
13 #else | |
14 #undef COND | |
15 #define COND 0 | |
16 #endif | |
17 #include "builtin-arith-overflow-7.c" |