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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [empty6.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-options "-Wabi" }
2
 
3
struct A {};
4
 
5
struct B {
6
  A a; // { dg-warning "empty" "" { xfail mmix-*-* } }
7
  virtual void f () {}
8
} __attribute__((aligned(2 * sizeof (void *))));
9
/* The preceding attribute is necessary on targets with
10
   BIGGEST_ALIGNMENT <= POINTER_SIZE to trigger the warning, as
11
   otherwise the offset of 'a' (i.e. POINTER_SIZE) is split into a
12
   non-zero DECL_FIELD_OFFSET and a zero DECL_FIELD_BIT_OFFSET,
13
   and then there is no discrepancy between DECL_FIELD_OFFSET and
14
   byte_position to warn about.  */

powered by: WebSVN 2.1.0

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