gcc/testsuite/gcc.dg/pr120057-2.c
raw| 1 | /* PR c/120057 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=c23" } */ |
| 4 | |
| 5 | constexpr signed char foo[65] = { |
| 6 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 129, 11, 12, 13, 14, 15, 16, /* { dg-error "'constexpr' initializer not representable in type of object" } */ |
| 7 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |
| 8 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |
| 9 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |
| 10 | 1 |
| 11 | }; |