]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/bitint-7.c
testsuite: Refer more consistently to C23 not C2X
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / bitint-7.c
1 /* PR c/102989 */
2 /* { dg-do compile { target bitint } } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4
5 #if __BITINT_MAXWIDTH__ >= 257
6 void
7 foo (_BitInt(135) *p, _BitInt(193) *q, _BitInt(257) *r)
8 {
9 r[0] = (((p[0] + p[1] + p[2]) + q[0] + (p[3] + p[4] + p[5])) + q[1]) + r[1] + (((p[6] + p[7] + p[8]) + q[2] + (p[9] + p[10] + p[11])) + q[3]) + r[2];
10 }
11 #else
12 void
13 foo (void)
14 {
15 }
16 #endif