gcc/testsuite/c-c++-common/analyzer/pr119278.c
raw| 1 | /* PR analyzer/119278 */ |
| 2 | /* { dg-do compile } */ |
| 3 | |
| 4 | const unsigned char a[] = { |
| 5 | #define A 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 |
| 6 | A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A |
| 7 | }; |
| 8 | const unsigned char b[] = { |
| 9 | #define B 16, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1 |
| 10 | B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B |
| 11 | }; |
| 12 | struct S { const unsigned char *s; }; |
| 13 | void bar (struct S *); |
| 14 | |
| 15 | void |
| 16 | foo (void) |
| 17 | { |
| 18 | struct S t[] = { a, b }; |
| 19 | bar (t); |
| 20 | } |