x
From-SVN: r21146
This commit is contained in:
parent
4d59ab3fda
commit
e03f7a0e96
3 changed files with 32 additions and 1 deletions
14
gcc/testsuite/g++.old-deja/g++.ns/ns16.C
Normal file
14
gcc/testsuite/g++.old-deja/g++.ns/ns16.C
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Build don't link:
|
||||
|
||||
class Y {
|
||||
public:
|
||||
void operator +(int) const;
|
||||
};
|
||||
|
||||
namespace X {
|
||||
extern Y const& z;
|
||||
}
|
||||
|
||||
void f(void) {
|
||||
X::z + 1;
|
||||
}
|
17
gcc/testsuite/g++.old-deja/g++.ns/template4.C
Normal file
17
gcc/testsuite/g++.old-deja/g++.ns/template4.C
Normal file
|
@ -0,0 +1,17 @@
|
|||
namespace NS
|
||||
{
|
||||
template <typename T>
|
||||
void solver (){}
|
||||
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void solver(){}
|
||||
|
||||
int main()
|
||||
{
|
||||
solver<double>();
|
||||
NS::solver<double>();
|
||||
}
|
||||
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
//Build don't link:
|
||||
template class x {}; // ERROR - not a template instantiation
|
||||
template class x {}; // ERROR - not a template instantiation XFAIL *-*-*
|
||||
|
|
Loading…
Add table
Reference in a new issue