OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR testsuite/20772
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
bitfield8.C
1
// { 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