From: Alexandre Oliva Date: Mon, 1 Nov 1999 05:18:17 +0000 (+0000) Subject: * gcc.dg/array-1.c: New test. X-Git-Tag: prereleases/libstdc++-2.92~9769 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2792392c2ff1f4101a5dbf63d734ba551d849e07;p=thirdparty%2Fgcc.git * gcc.dg/array-1.c: New test. From-SVN: r30309 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5f1343ec0ee9..0a974dc61451 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +1999-11-01 Alexandre Oliva + + * gcc.dg/array-1.c: New test. + Sat Oct 30 22:23:46 1999 Stephen L Moshier * gcc.c-torture/execute/991030-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/array-1.c b/gcc/testsuite/gcc.dg/array-1.c new file mode 100644 index 000000000000..b6fedb31b6d1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/array-1.c @@ -0,0 +1,15 @@ +/* Simplified from ncurses 5.0's pad.c + by Alexandre Oliva + + Copyright (C) 1999 Free Software Foundation */ + +/* { dg-do compile { xfail alpha-*-* } } */ + +extern char foo[1]; +char foo[] = ""; + +int +bar() +{ + return foo[0]; +}