OpenCores
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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/44412
2
// { dg-do compile }
3
// { dg-options "-Wunused" }
4
 
5
struct S
6
{
7
  int foo ();
8
  static int bar ();
9
};
10
 
11
int S::foo ()
12
{
13
  return 5;
14
}
15
 
16
int S::bar ()
17
{
18
  return 6;
19
}
20
 
21
int
22
f1 ()
23
{
24
  S s;
25
  return s.foo ();
26
}
27
 
28
int
29
f2 ()
30
{
31
  S s;
32
  return s.bar ();
33
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.