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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [lvalue1.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++/38877
2
 
3
template
4
struct pair
5
{
6
  typedef _T1 first_type;
7
  typedef _T2 second_type;
8
  _T1 first;
9
  _T2 second;
10
  pair () : first(), second() { }
11
  pair(const _T1& __a, const _T2& __b)
12
    : first(__a), second(__b) { }
13
};
14
 
15
template
16
inline pair<_T1, _T2>
17
make_pair(_T1 __x, _T2 __y)
18
{
19
    return pair<_T1, _T2>(__x, __y);
20
}
21
 
22
template  class bar;
23
 
24
template 
25
pair *, unsigned int>
26
foo (unsigned int position)
27
{
28
      const pair tmp;
29
      return make_pair (new bar(tmp.first),
30
                             position);
31
 }

powered by: WebSVN 2.1.0

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