view gcc/testsuite/gdc.dg/pr90650a.d @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90650
// { dg-do compile }
class c
{
  static f ()
  {
    return 0;
  }
}

void g ()
{
  if (0 & [0] & c.f()) {}   // { dg-error "array operation \\\[0\\\] & 0 & f\\(\\) without destination memory not allowed" }
}