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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [template22.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do assemble  }
2
// Testcase for proper unification of code involving references.
3
 
4
template
5
struct A
6
{
7
    void foo();
8
};
9
 
10
template void A::foo() { }
11
 
12
template class A;
13
 
14
const int& f1 ();
15
int& f2 ();
16
int f3 ();
17
 
18
template  void g1 (const T&);
19
template  void g2 (T&);
20
template  void g3 (T);
21
 
22
int main()
23
{
24
  g1 (f1 ());
25
  g1 (f2 ());
26
  g1 (f3 ());
27
  g2 (f2 ());
28
  g3 (f1 ());
29
  g3 (f2 ());
30
  g3 (f3 ());
31
}

powered by: WebSVN 2.1.0

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