URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Verify that -Wno-invalid-offsetof disables warning */
|
/* Verify that -Wno-invalid-offsetof disables warning */
|
/* Copyright (C) 2003 Free Software Foundation, Inc. */
|
/* Copyright (C) 2003 Free Software Foundation, Inc. */
|
/* Contributed by Matt Austern 15 May 2003 */
|
/* Contributed by Matt Austern 15 May 2003 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wno-invalid-offsetof" } */
|
/* { dg-options "-Wno-invalid-offsetof" } */
|
|
|
struct X
|
struct X
|
{
|
{
|
X() : x(3), y(4) { }
|
X() : x(3), y(4) { }
|
int x, y;
|
int x, y;
|
};
|
};
|
|
|
typedef X* pX;
|
typedef X* pX;
|
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
|
|
size_t yoff = size_t(&(pX(0)->y));
|
size_t yoff = size_t(&(pX(0)->y));
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.