OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [expr/] [bitfield3.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// PR c++/30274
// PR c++/30274
struct S {
struct S {
  bool x : 4;
  bool x : 4;
};
};
S s;
S s;
void f() {
void f() {
  s.x--; // { dg-error "bool" }
  s.x--; // { dg-error "bool" }
  --s.x; // { dg-error "bool" }
  --s.x; // { dg-error "bool" }
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.