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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [inline15.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// { dg-options "-O1" }
3
// Origin: Jakub Jelinek 
4
 
5
class Type;
6
template
7
class X
8
{
9
public:
10
  X();
11
  inline X(int);
12
  inline ~X();
13
};
14
template const Type &foo(const X *);
15
template inline X::X(int x)
16
{
17
  const Type &a = foo(this);
18
}
19
template inline X::~X()
20
{
21
  const Type &a = foo(this);
22
}
23
class Y
24
{
25
  X a;
26
public:
27
  Y(const X &x = X());
28
};
29
Y::Y(const X &x) : a(1)
30
{
31
}

powered by: WebSVN 2.1.0

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