URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// PR c++/8057
|
// PR c++/8057
|
// Don't give a "statement has no effect" warning when declaring a
|
// Don't give a "statement has no effect" warning when declaring a
|
// template, only when instantiating it.
|
// template, only when instantiating it.
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-Wunused" }
|
// { dg-options "-Wunused" }
|
struct Y { static int i; };
|
struct Y { static int i; };
|
template class X { X() { Y::i; }; };
|
template class X { X() { Y::i; }; };
|
class Z { Z() { Y::i; }; }; // { dg-warning "no effect" }
|
class Z { Z() { Y::i; }; }; // { dg-warning "no effect" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.