OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
align2.C
1
class Foo {
2
};
3
4
class Bar : virtual Foo {
5
public:
6
int b;
7
} x;
8
9
main()
10
{
11
// printf("Foo offset %d\n", (int)(Foo*)&x - (int)&x);
12
// printf("b offset %d\n", (int)&x.b - (int)&x);
13
// printf("sizeof is %d\n", sizeof(Bar));
14
// This core dumps on a SPARC is alignment is wrong.
15
Bar blist[10];
16
}