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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-7.C] - Rev 693

Compare with Previous | Blame | View Log

// PR c++/14481
// { dg-options "-Wunused" }

void func()
{
  struct mybitfields {
    unsigned int s_field:8;
  };
  struct mybitfields s; // { dg-warning "set but not used" }
  s.s_field = 255;
};

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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