URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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>;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.