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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/14481
2
// { dg-options "-Wunused" }
3
 
4
void func()
5
{
6
  struct mybitfields {
7
    unsigned int s_field:8;
8
  };
9
  struct mybitfields s; // { dg-warning "set but not used" }
10
  s.s_field = 255;
11
};
12
 

powered by: WebSVN 2.1.0

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