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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [c99-bool-2.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Test for _Bool bit-fields.  After TC2, the width of a _Bool
2
   bit-field must not extend the width (number of sign and value bits)
3
   of _Bool, which is implementation-defined but is 1 unless the
4
   implementation defines representations for values greater than 1 in
5
   type _Bool and allows for _Bool objects to have such types, which
6
   GCC does not.  */
7
/* Origin: Joseph Myers <joseph@codesourcery.com> */
8
/* { dg-do compile } */
9
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
10
 
11
struct foo
12
{
13
  _Bool b : 2; /* { dg-error "width" } */
14
};

powered by: WebSVN 2.1.0

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