Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gdc.dg/pr94970.d @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 2b5abeee2509 |
children |
rev | line source |
---|---|
152 | 1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94970 |
2 // { dg-do compile } | |
3 | |
4 struct S94970 | |
5 { | |
6 string index() { return null; } | |
7 ~this() { } | |
8 } | |
9 | |
10 static m() { return S94970(); } | |
11 | |
12 auto concat() | |
13 { | |
14 return m.index ~ ' '; | |
15 } | |
16 | |
17 auto newarray() | |
18 { | |
19 return new int[][](m.index.length, 1); | |
20 } |