summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wchar-subscripts.C
blob: bc38585d72e40e44fc330d3a1da1084af68a7bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Copyright (C) 2005  Free Software Foundation.

   by Gabriel Dos Reis  <gdr@integrable-solutions.net>  */

// { dg-do compile }
// { dg-options "-Wchar-subscripts" }

int main()
{
  int ary[256] = { 0 };
  return ary['a'];
}