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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr14475.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* This used to ICE because there was no null check in
   check_bitfield_type_and_width. */
 
struct tree_common
{
  enum tree_code code : 8; /* { dg-error "ISO C forbids forward references to" "" } */
  /* { dg-error "type of bit-field .code. is a GCC extension" "" { target *-*-* } 6 } */
  /* { dg-warning "narrower than values of its type" "" { target *-*-* } 6 } */
  /* { dg-error "incomplete type" "" { target *-*-* } 6 } */
};
 

Go to most recent revision | 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.