repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
bit-fields2.C
blob
394d035017af774cf5dc6c936a09e951b9fc6a5b
1
// { dg-do assemble }
2
// GROUPS passed bit-fields
3
struct S {
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
}