OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [empty8.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.