From 2792392c2ff1f4101a5dbf63d734ba551d849e07 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 1 Nov 1999 05:18:17 +0000 Subject: [PATCH] * gcc.dg/array-1.c: New test. From-SVN: r30309 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/array-1.c | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/array-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5f1343ec0ee..0a974dc6145 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 00000000000..b6fedb31b6d --- /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]; +}