mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 02:44:43 +08:00
New test.
From-SVN: r18847
This commit is contained in:
parent
b3e4ff59a3
commit
a9c3c9a520
20
gcc/testsuite/g++.old-deja/g++.pt/typedef2.C
Normal file
20
gcc/testsuite/g++.old-deja/g++.pt/typedef2.C
Normal file
@ -0,0 +1,20 @@
|
||||
// Build don't link:
|
||||
|
||||
typedef const int cint;
|
||||
|
||||
template<class T>
|
||||
class A
|
||||
{
|
||||
public:
|
||||
T f(cint i);
|
||||
};
|
||||
|
||||
template <class T>
|
||||
T A<T>::f(cint i)
|
||||
{
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
A<int> a;
|
||||
}
|
Loading…
Reference in New Issue
Block a user