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
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
sizeof2.C
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
}