mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 20:17:25 +08:00
new
From-SVN: r28766
This commit is contained in:
parent
79d133336a
commit
607eef6e92
18
gcc/testsuite/g++.old-deja/g++.pt/repo1.C
Normal file
18
gcc/testsuite/g++.old-deja/g++.pt/repo1.C
Normal file
@ -0,0 +1,18 @@
|
||||
// Bug: g++ complains about duplicate explicit instantiations with -frepo.
|
||||
// From Jason Merrill <jason@cygnus.com>
|
||||
|
||||
// Build then link:
|
||||
// Special g++ Options: -frepo
|
||||
|
||||
template <class T> struct A {
|
||||
virtual ~A () { }
|
||||
};
|
||||
|
||||
template <class T> void g (T t) { }
|
||||
|
||||
template class A<int>;
|
||||
|
||||
int main ()
|
||||
{
|
||||
g (42);
|
||||
}
|
Loading…
Reference in New Issue
Block a user