URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 26 Dec 2001
|
// Contributed by Nathan Sidwell 26 Dec 2001
|
|
|
// PR 335. Missed diagnostic
|
// PR 335. Missed diagnostic
|
|
|
struct Foo
|
struct Foo
|
{
|
{
|
unsigned i;
|
unsigned i;
|
void Modify(unsigned j) const;
|
void Modify(unsigned j) const;
|
};
|
};
|
|
|
void Foo::Modify(unsigned j) const
|
void Foo::Modify(unsigned j) const
|
{
|
{
|
Foo::i = j; // { dg-error "assignment of data-member" "" }
|
Foo::i = j; // { dg-error "assignment of data-member" "" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.