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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [bitfield8.C] - Rev 693

Compare with Previous | Blame | View Log

// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-options "-fabi-version=0" }
// { dg-require-effective-target ilp32 }


struct A { 
  virtual void f() {}
  int f1 : 1; 
};

struct B : public A {
  int f2 : 31;
  int f3 : 4; 
  int f4 : 3;
};

int main ()
{
  if (sizeof (B) != 16)
    return 1;
}
  

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.