URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-var-11.C] - Rev 694
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/44412
// { dg-do compile }
// { dg-options "-Wunused" }
struct S
{
int foo ();
static int bar ();
};
int S::foo ()
{
return 5;
}
int S::bar ()
{
return 6;
}
int
f1 ()
{
S s;
return s.foo ();
}
int
f2 ()
{
S s;
return s.bar ();
}
Go to most recent revision | Compare with Previous | Blame | View Log