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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
align2.C
blob
ef39bb1ac71bd947ec7de31e6672df73c7eea820
1
// { dg-do run }
2
class Foo {
3
};
4
5
class Bar : virtual Foo {
6
public:
7
int b;
8
} x;
9
10
int main()
11
{
12
// printf("Foo offset %d\n", (int)(Foo*)&x - (int)&x);
13
// printf("b offset %d\n", (int)&x.b - (int)&x);
14
// printf("sizeof is %d\n", sizeof(Bar));
15
// This core dumps on a SPARC is alignment is wrong.
16
Bar blist[10];
17
}