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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
bit-fields2.C
blob
af5703ca3c9c689ae1a7c8deb4bc4aa81f4721e9
1
// { dg-do assemble }
2
// GROUPS passed bit-fields
3
struct {
4
char c;
5
int i:8;
6
} s;
7
8
int main()
9
{
10
int &ir = s.i; // { dg-error "" } address of bitfield
11
int *ip = &s.i; // { dg-error "" } address of bitfield
12
ir = 10;
13
}