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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [bitfield8.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run { target i?86-*-* x86_64-*-* } }
2
// { dg-options "-fabi-version=0" }
3
// { dg-require-effective-target ilp32 }
4
 
5
 
6
struct A {
7
  virtual void f() {}
8
  int f1 : 1;
9
};
10
 
11
struct B : public A {
12
  int f2 : 31;
13
  int f3 : 4;
14
  int f4 : 3;
15
};
16
 
17
int main ()
18
{
19
  if (sizeof (B) != 16)
20
    return 1;
21
}
22
 

powered by: WebSVN 2.1.0

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