summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/array-1.c
blob: 6d1e69a17e576862cd203445503c9a362434a20f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Simplified from ncurses 5.0's pad.c
   by Alexandre Oliva <oliva@lsd.ic.unicamp.br>

   Copyright (C) 1999 Free Software Foundation  */

/* { dg-do compile } */

extern char foo[1];
char foo[] = "";

int
bar()
{
  return foo[0];
}