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