Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wchar-subscripts.C

raw
1 /* Copyright (C) 2005 Free Software Foundation.
2
3 by Gabriel Dos Reis <[email protected]> */
4
5 // { dg-do compile }
6 // { dg-options "-Wchar-subscripts" }
7
8 int main()
9 {
10 int ary[256] = { 0 };
11 return ary['a'];
12 }