Debian Codegraph @

gcc/testsuite/gdc.dg/pr90650b.d

raw
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90650
2 // { dg-do compile }
3 class c
4 {
5 static f ()
6 {
7 return 0;
8 }
9 }
10 void g ()
11 {
12 if ([0] & c.f()) {} // { dg-error "array operation .\\\[0\\\] & f\\(\\). without destination memory not allowed" }
13 }