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++.old-deja
/
g++.brendan
/
sizeof2.C
blob
ddac679d880c9d00a56c67c953eb15660d78ed35
1
// Build don't link:
2
// Special g++ Options: -pedantic-errors
3
// GROUPS passed sizeof
4
// ARM $5.3.2
5
6
void f() { }
7
8
struct foo { int bit : 1; };
9
10
int
11
main()
12
{
13
// sizeof may not be applied to a bit-field
14
foo f;
15
int i = sizeof (f.bit);// ERROR - .*
16
17
return 0;
18
}