OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-parm-4.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/47783
2
// { dg-do compile }
3
// { dg-options "-Wunused -W" }
4
 
5
struct R
6
{
7
  int &i;
8
};
9
 
10
void
11
foo (R r, int &s)
12
{
13
  r.i = 7;
14
  s = 8;
15
}
16
 
17
int
18
bar ()
19
{
20
  int x = 1, y = 1;
21
  R r = { x };
22
  foo (r, y);
23
  return x + y;
24
}

powered by: WebSVN 2.1.0

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