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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [ref1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2004 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 5 Mar 2004 
3
 
4
// Origin: schmid@snake.iap.physik.tu-darmstadt.de
5
// Bug 14397: Bogus access error.
6
 
7
struct S {
8
    S (int);
9
    S(S const&);
10
  private:
11
    S(S&);
12
};
13
 
14
S foo()
15
{
16
  int result = 0;
17
 
18
  S s ((0,S (result)));
19
 
20
  return S (result);
21
}

powered by: WebSVN 2.1.0

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