PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wchar-subscripts.C
blobbc38585d72e40e44fc330d3a1da1084af68a7bb7
1 /* Copyright (C) 2005  Free Software Foundation.
3    by Gabriel Dos Reis  <gdr@integrable-solutions.net>  */
5 // { dg-do compile }
6 // { dg-options "-Wchar-subscripts" }
8 int main()
10   int ary[256] = { 0 };
11   return ary['a'];