summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wchar-subscripts.c
blob: acc6d23578e1f92d48d5e65460c8ad41fcb28311 (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(void)
{
  int ary[256] = { 0 };
  return ary['a'];
}