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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [bitfield8.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { 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.