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] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// Contributed by Douglas Gregor 
// Contributed by Douglas Gregor 
template struct wrap {};
template struct wrap {};
template bool& operator==(wrap, wrap);
template bool& operator==(wrap, wrap);
template
template
void g(T, wrap > x)
void g(T, wrap > x)
{
{
  bool& b = x == x; // { dg-bogus "invalid initialization of reference" "" { xfail *-*-*} }
  bool& b = x == x; // { dg-bogus "invalid initialization of reference" "" { xfail *-*-*} }
}
}
template int& operator==(wrap >, wrap >);
template int& operator==(wrap >, wrap >);
void h()
void h()
{
{
  wrap > x;
  wrap > x;
  g(17, x);
  g(17, x);
}
}
 
 

powered by: WebSVN 2.1.0

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