1 /* Test -Wchar-subscripts. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "-Wchar-subscripts" } */
23 a
[c
]; /* { dg-warning "warning: array subscript has type 'char'" } */
24 p
[c
]; /* { dg-warning "warning: array subscript has type 'char'" } */
25 /* -Wchar-subscripts does not warn if the char is not syntactically