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
2013-05-29 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
empty8.C
blob
a5287b15fa0b3591768ce3a4ac9c49b8eb4d02e1
1
// { dg-do run }
2
// { dg-options "-fabi-version=0" }
3
4
struct E1 {};
5
struct E2 : public E1 {};
6
struct S1 { int i; };
7
struct S2 : public S1, E2 {};
8
9
S2 s2;
10
11
int main () {
12
if ((char *)(E2*) &s2 != (char *)&s2)
13
return 1;
14
}