diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-11-03 19:45:10 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-11-03 19:45:10 +0000 |
commit | a39041fae9f62c038e457f754c7578fb7e772dbb (patch) | |
tree | dea56d9d67c7b62563b127fbb29c1025411a7d4c /gcc/testsuite/g++.dg | |
parent | 98d59fe652402d1b42d3da0f39ab897d13d7a042 (diff) | |
download | gcc-a39041fae9f62c038e457f754c7578fb7e772dbb.zip gcc-a39041fae9f62c038e457f754c7578fb7e772dbb.tar.gz gcc-a39041fae9f62c038e457f754c7578fb7e772dbb.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r-- | gcc/testsuite/g++.dg/warn/inline2.C | 20 |
1 files changed, 20 insertions, 0 deletions
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<typename T> +struct TPL +{ + TPL (){} + ~TPL (){} + void method () {} +}; + +template <> TPL<int>::TPL (); +template <> TPL<int>::~TPL (); +template <> void TPL<int>::method (); + +void Foo () +{ + TPL<int> i; + i.method (); +} + |