URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 14 Jun 2005
|
// Contributed by Nathan Sidwell 14 Jun 2005
|
|
|
// PR 20678: ICE on error message
|
// PR 20678: ICE on error message
|
// Origin: Andrew Pinski pinskia@gcc.gnu.org
|
// Origin: Andrew Pinski pinskia@gcc.gnu.org
|
|
|
// NOTE: This test assumes packed structure layout differs from unpacked
|
// NOTE: This test assumes packed structure layout differs from unpacked
|
// structure layout. This isn't true, e.g., with the default
|
// structure layout. This isn't true, e.g., with the default
|
// arm-none-elf options.
|
// arm-none-elf options.
|
// { dg-options "-mstructure-size-boundary=8" { target arm-*-* } }
|
// { dg-options "-mstructure-size-boundary=8" { target arm-*-* } }
|
|
|
struct a
|
struct a
|
{
|
{
|
int m;
|
int m;
|
a(const a&);
|
a(const a&);
|
};
|
};
|
struct b
|
struct b
|
{ // { dg-error "cannot bind packed field" "" { target { ! default_packed } } }
|
{ // { dg-error "cannot bind packed field" "" { target { ! default_packed } } }
|
char c;
|
char c;
|
a aa __attribute__((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
|
a aa __attribute__((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
|
};
|
};
|
struct c
|
struct c
|
{
|
{
|
b bb;
|
b bb;
|
c(const b& __a): bb(__a) {} // { dg-error "synthesized" "" { target { ! default_packed } } }
|
c(const b& __a): bb(__a) {} // { dg-error "synthesized" "" { target { ! default_packed } } }
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.