From a39041fae9f62c038e457f754c7578fb7e772dbb Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 3 Nov 2005 19:45:10 +0000 Subject: re PR c++/21627 (invalid inline warning with ctor and dtor) PR c++/21627 * pt.c (register_specialization): Update inline flags on clones.y PR c++/21627 * g++.dg/warn/inline2.C: New test. From-SVN: r106442 --- gcc/testsuite/g++.dg/warn/inline2.C | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.dg/warn/inline2.C (limited to 'gcc/testsuite/g++.dg') diff --git a/gcc/testsuite/g++.dg/warn/inline2.C b/gcc/testsuite/g++.dg/warn/inline2.C new file mode 100644 index 0000000..0f5f78a --- /dev/null +++ b/gcc/testsuite/g++.dg/warn/inline2.C @@ -0,0 +1,20 @@ +// PR c++/21627 + +template +struct TPL +{ + TPL (){} + ~TPL (){} + void method () {} +}; + +template <> TPL::TPL (); +template <> TPL::~TPL (); +template <> void TPL::method (); + +void Foo () +{ + TPL i; + i.method (); +} + -- cgit v1.1