view gcc/testsuite/g++.dg/warn/Wsign-compare-8.C @ 152:2b5abeee2509

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

// PR c++/84171
// { dg-options "-Wsign-compare" }

bool foo (char c)
{
  const int i = 0 = 0; // { dg-error "lvalue" }
  return c = i;
} // { dg-warning "control reaches" }