URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [compat/] [abi/] [bitfield1_y.C] - Rev 301
Compare with Previous | Blame | View Log
// { dg-options "-w -ansi -pedantic-errors -funsigned-bitfields" }
extern "C" void abort (void);
#include "bitfield1.h"
void bitfield1_y (A& a)
{
if (a.bitS != -1)
abort ();
if (a.bitU != 1)
abort ();
if (a.bit != 1)
abort ();
}