blob: b718f5ebbe26823c9245bc574450ca7de891c501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* PR c/102989 */
/* { dg-do compile { target bitint } } */
/* { dg-options "-std=c23" } */
#include <limits.h>
#ifndef BITINT_MAXWIDTH
#error BITINT_MAXWIDTH not defined
#elif BITINT_MAXWIDTH < ULLONG_WIDTH
#error BITINT_MAXWIDTH smaller than ULLONG_WIDTH
#endif
_BitInt(BITINT_MAXWIDTH) a;
_BitInt(BITINT_MAXWIDTH + 1) b; /* { dg-error "'_BitInt' argument '\[0-9]+' is larger than 'BITINT_MAXWIDTH' '\[0-9]+'" } */
|