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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [two-stage4.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
 
2
// Contributed by Douglas Gregor 
3
 
4
template struct wrap {};
5
 
6
template bool& operator==(wrap, wrap);
7
 
8
template
9
void g(T, wrap > x)
10
{
11
  bool& b = x == x; // { dg-bogus "invalid initialization of reference" "" { xfail *-*-*} }
12
}
13
 
14
template int& operator==(wrap >, wrap >);
15
 
16
void h()
17
{
18
  wrap > x;
19
  g(17, x);
20
}

powered by: WebSVN 2.1.0

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