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
/
alignof.C
blob
1449aded826070cdd9400b9f37bf80a07f94eb0b
1
// Build don't link:
2
// GROUPS passed extensions
3
struct bar { int bit : 1; };
4
5
void foo (int *r, bar t)
6
{
7
// doing alignof on a bit-field should be illegal
8
__alignof__ (t.bit);// ERROR - .*
9
10
// both of these (a regular ref and an INDIRECT_REF) should work
11
__alignof__ (r);
12
__alignof__ (*r);
13
}