libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / bitint-41.c
blobf97f03cd091c44ca14b0ef490c7961b9f9f260d3
1 /* PR middle-end/112336 */
2 /* { dg-do compile { target bitint } } */
3 /* { dg-options "-std=c23" } */
5 unsigned _BitInt(1) v1;
6 unsigned _BitInt(1) *p1 = &v1;
7 signed _BitInt(2) v2;
8 signed _BitInt(2) *p2 = &v2;
9 unsigned _BitInt(11) v11;
10 unsigned _BitInt(11) *p11 = &v11;
11 signed _BitInt(12) v12;
12 signed _BitInt(12) *p12 = &v12;
13 unsigned _BitInt(21) v21;
14 unsigned _BitInt(21) *p21 = &v21;
15 signed _BitInt(22) v22;
16 signed _BitInt(22) *p22 = &v22;
17 unsigned _BitInt(31) v31;
18 unsigned _BitInt(31) *p31 = &v31;
19 signed _BitInt(32) v32;
20 signed _BitInt(32) *p32 = &v32;
21 unsigned _BitInt(41) v41;
22 unsigned _BitInt(41) *p41 = &v41;
23 signed _BitInt(42) v42;
24 signed _BitInt(42) *p42 = &v42;
25 #if __BITINT_MAXWIDTH__ >= 128
26 unsigned _BitInt(127) v127;
27 unsigned _BitInt(127) *p127 = &v127;
28 signed _BitInt(128) v128;
29 signed _BitInt(128) *p128 = &v128;
30 #endif
31 #if __BITINT_MAXWIDTH__ >= 258
32 unsigned _BitInt(257) v257;
33 unsigned _BitInt(257) *p257 = &v257;
34 signed _BitInt(258) v258;
35 signed _BitInt(258) *p258 = &v258;
36 #endif