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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [vbase10.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 compile }
2
// -fpack-struct is necessary because the code below assumes the initial
3
// packing is larger than 1, which cannot ge guaranteed for all targets.
4
// { dg-options "-Wabi -fabi-version=1 -fpack-struct=8" }
5
// On ARM processors, the alignment of B will be 4 even though it
6
// contains only a single "char".  That would avoids the situation
7
// that the warning below is designed to catch.  We therefore
8
// explicitly set the default structure alignment to 1.
9
// { dg-options "-Wabi -fabi-version=1 -mstructure-size-boundary=8" { target arm*-*-* } }
10
 
11
struct A { virtual void f(); char c1; };
12
struct B { B(); char c2; };
13
struct C : public A, public virtual B {}; // { dg-warning "ABI" }
14
 

powered by: WebSVN 2.1.0

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