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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
sizeof4.C
blob
3ac0a8e2ec573b208feaab7be2d43ce2df261b4b
1
// { dg-do assemble }
2
// { dg-options "-pedantic-errors" }
3
// GROUPS passed sizeof
4
// ARM $5.3.2
5
6
int
7
main()
8
{
9
// sizeof may not be applied to the type void
10
int l = sizeof (void);// { dg-error "" } .*
11
12
return 0;
13
}