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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
sizeof5.C
blob
551f408cf3eb9788b6f1ccc2c76e5bc6fb6f8e1d
1
// { dg-do run }
2
// GROUPS passed sizeof
3
// ARM $5.3.2
4
5
extern "C" int printf (const char *, ...);
6
7
class foo {};
8
9
int
10
main ()
11
{
12
// The size of any class or class object is larger than zero.
13
int i = sizeof (foo);
14
if (i > 0)
15
printf ("PASS\n");
16
else
17
{ printf ("FAIL\n"); return 1; }
18
}