URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [warn1.C] - Rev 853
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-Wunused" }
template <class T>
struct S
{
struct R
{
R();
~R();
};
void foo()
{
R r; // no warning
int i; // { dg-warning "" } unused
}
S();
~S();
};
void f()
{
S<int> si;
si.foo();
}
Go to most recent revision | Compare with Previous | Blame | View Log