summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr45732.c
blob: 04ceaa279169891a965d5b39e35b6c3a21d738db (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

typedef char chars[5];
const chars bad_chars[] = { "" };

int foo ()
{
  const chars *c = bad_chars;
  return c[0][0];
}