Debian Codegraph @

gcc/testsuite/gdc.dg/pr98427.d

raw
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98427
2 // { dg-do compile }
3 // { dg-options "-O2 -fno-inline" }
4
5 @trusted memoizeExpr()
6 {
7 struct CodepointSet
8 {
9 struct CowArray
10 {
11 uint *ptr;
12 }
13
14 const CodepointSet binary(U)(U rhs)
15 {
16 return rhs;
17 }
18
19 CowArray array;
20 }
21
22 CodepointSet().binary(CodepointSet());
23 }