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] - Rev 715

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

// PR c++/44619
// { dg-do compile }
// { dg-options "-Wunused -W" }

struct S { int x, y; };

int
f1 ()
{
  struct S p;
  int S::*q = &S::x;
  p.*q = 5;
  return p.*q;
}

int
f2 (struct S *p, int S::*q)
{
  struct S *r = p;
  int S::*s = q;
  return r->*s;
}

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

powered by: WebSVN 2.1.0

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