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-13.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/44619
2
// { dg-do compile }
3
// { dg-options "-Wunused -W" }
4
 
5
struct S { int x, y; };
6
 
7
int
8
f1 ()
9
{
10
  struct S p;
11
  int S::*q = &S::x;
12
  p.*q = 5;
13
  return p.*q;
14
}
15
 
16
int
17
f2 (struct S *p, int S::*q)
18
{
19
  struct S *r = p;
20
  int S::*s = q;
21
  return r->*s;
22
}

powered by: WebSVN 2.1.0

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