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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [overload/] [ref1.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// Copyright (C) 2004 Free Software Foundation, Inc.
// Copyright (C) 2004 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Mar 2004 
// Contributed by Nathan Sidwell 5 Mar 2004 
// Origin: schmid@snake.iap.physik.tu-darmstadt.de
// Origin: schmid@snake.iap.physik.tu-darmstadt.de
// Bug 14397: Bogus access error.
// Bug 14397: Bogus access error.
struct S {
struct S {
    S (int);
    S (int);
    S(S const&);
    S(S const&);
  private:
  private:
    S(S&);
    S(S&);
};
};
S foo()
S foo()
{
{
  int result = 0;
  int result = 0;
  S s ((0,S (result)));
  S s ((0,S (result)));
  return S (result);
  return S (result);
}
}
 
 

powered by: WebSVN 2.1.0

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