]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/torture/bitint-29.c
testsuite: Refer more consistently to C23 not C2X
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / torture / bitint-29.c
1 /* PR c/102989 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-std=gnu23" } */
4 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
6
7 #if __BITINT_MAXWIDTH__ >= 119
8 #include "../../c-c++-common/torture/builtin-arith-overflow-1.h"
9
10 #define U(s, op) op
11 TESTS (_BitInt(119), (-332306998946228968225951765070086143wb - 1), 332306998946228968225951765070086143wb)
12
13 #undef T
14 #define T(n, t1, t2, tr, v1, v2, vr, b, o) t##n##b ();
15 #endif
16
17 int
18 main ()
19 {
20 #if __BITINT_MAXWIDTH__ >= 119
21 TESTS (_BitInt(119), (-332306998946228968225951765070086143wb - 1), 332306998946228968225951765070086143wb)
22 #endif
23 return 0;
24 }