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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [overload11.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++/39413
2
// We don't need to instantiate Wrapper to check the
3
// foo(const Thingy&) overload.
4
 
5
template  struct Incomplete;
6
 
7
template  class Wrapper
8
{
9
  Incomplete i;
10
};
11
 
12
template  struct Thingy
13
{
14
  Thingy();
15
  Thingy(const Wrapper& v);
16
 
17
  template  void foo(const Thingy&);
18
  void foo(const Thingy&);
19
};
20
 
21
int main()
22
{
23
    Thingy ap1;
24
    Thingy bp1;
25
 
26
    ap1.foo(bp1);
27
}

powered by: WebSVN 2.1.0

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