Wdtor1.C: Declare template in system header with explicit C++ linkage.

* g++.dg/warn/Wdtor1.C: Declare template in system header with
	explicit C++ linkage.

From-SVN: r97955
This commit is contained in:
Mark Mitchell 2005-04-10 22:39:22 +00:00 committed by Mark Mitchell
parent 6892757cae
commit 9ee12b3b62
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-04-10 Mark Mitchell <mark@codesourcery.com>
* g++.dg/warn/Wdtor1.C: Declare template in system header with
explicit C++ linkage.
2005-04-10 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* gfortran.dg/pr17229.f: Take care of the new obsolescence

View File

@ -5,10 +5,14 @@
# 1 "<command line>"
# 1 "t.cc"
# 1 "include/t.h" 1 3 4
// Declare the template with explicit C++ linkage in case system
// headers have implicit C linkage.
extern "C++" {
template <int> class t
{
virtual void f();
};
}
# 2 "t.cc" 2
void f(void)