2008-07-06 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / array1.C
blobc63ed22c88b8afc26aa05dd1ffaaf988063b1ffe
1 // Copyright (C) 2004 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 29 Nov 2004 <nathan@codesourcery.com>
4 // PR 18672:ICE gimplifying incomplete array type.
5 // Origin: Magnus Fromreide <gcc@magfr.user.lysator.liu.se>
7 struct A;
9 struct D {
10   static A ary[];
12 extern A ary[];
14 void Foo (A const *);
16 void Bar ()
18   Foo (D::ary);
19   Foo (::ary);