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
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
sizeof3.C
blob
3596a1eeb99cc4394f5c81eea677d466f1b4dd78
1
// { dg-do assemble }
2
// { dg-options "-pedantic-errors" }
3
// GROUPS passed sizeof
4
// ARM $5.3.2
5
6
class bar;
7
8
int
9
main()
10
{
11
// sizeof may not be applied to an undefined class
12
int k = sizeof (bar);// { dg-error "" } .*
13
14
return 0;
15
}