☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.dg
/
pr90650b.d
☽
☼
gcc/testsuite/gdc.dg/pr90650b.d
code
plain
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
}