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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [template6.C] - Diff between revs 154 and 816

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

Rev 154 Rev 816
// { dg-do compile }
// { dg-do compile }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Wolfgang Bangerth  20 Feb 2003.
// Contributed by Wolfgang Bangerth  20 Feb 2003.
// PR c++/9778.  Ensure templated functions in other namespaces are
// PR c++/9778.  Ensure templated functions in other namespaces are
// correctly instantiated.
// correctly instantiated.
namespace NS {
namespace NS {
  template  void foo ();
  template  void foo ();
}
}
template  struct X {
template  struct X {
  int m;
  int m;
  void g () {
  void g () {
    NS::foo();
    NS::foo();
  }
  }
};
};
template class X<2>;
template class X<2>;
 
 

powered by: WebSVN 2.1.0

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