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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
sizeof2.C
blob
23176fa3583161b8f55d6d5720ec3fbbf5e0b1fe
1
// { dg-do assemble }
2
// { dg-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);// { dg-error "21:invalid application" } .*
16
17
return 0;
18
}