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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [compat/] [abi/] [bitfield1_y.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-w -ansi -pedantic-errors -funsigned-bitfields" }
2
 
3
extern "C" void abort (void);
4
 
5
#include "bitfield1.h"
6
 
7
void bitfield1_y (A& a)
8
{
9
  if (a.bitS != -1)
10
    abort ();
11
  if (a.bitU != 1)
12
    abort ();
13
  if (a.bit != 1)
14
    abort ();
15
}

powered by: WebSVN 2.1.0

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