repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
bitfield5.C
blob
eed76e649e6e4cd3b63f9b7df69a08232b0caa58
1
// { dg-do compile }
2
// { dg-options "-Wabi" }
3
4
struct A {
5
virtual void f();
6
int f1 : 1;
7
};
8
9
struct B : public A {
10
int f2 : 1; // { dg-warning "ABI" }
11
int : 0;
12
int f3 : 4;
13
int f4 : 3;
14
};