Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/opt/array1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Copyright (C) 2004 Free Software Foundation, Inc. |
2 // Contributed by Nathan Sidwell 29 Nov 2004 <nathan@codesourcery.com> | |
3 | |
4 // PR 18672:ICE gimplifying incomplete array type. | |
5 // Origin: Magnus Fromreide <gcc@magfr.user.lysator.liu.se> | |
6 | |
7 struct A; | |
8 | |
9 struct D { | |
10 static A ary[]; | |
11 }; | |
12 extern A ary[]; | |
13 | |
14 void Foo (A const *); | |
15 | |
16 void Bar () | |
17 { | |
18 Foo (D::ary); | |
19 Foo (::ary); | |
20 } |