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