diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-02-07 23:41:01 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-02-07 23:41:01 +0000 |
commit | ff47d09463cbc4e0aaec3233c3542a7aa1eea1ef (patch) | |
tree | 068e661efd5baf17c3da20f148ea9802b3e50233 /gcc/testsuite | |
parent | de9127c1b718aa3211aaa6d573791cf3077cfaba (diff) | |
download | gcc-ff47d09463cbc4e0aaec3233c3542a7aa1eea1ef.zip gcc-ff47d09463cbc4e0aaec3233c3542a7aa1eea1ef.tar.gz gcc-ff47d09463cbc4e0aaec3233c3542a7aa1eea1ef.tar.bz2 |
decl.c (store_parm_decls): Don't build cleanups for parameters while processing_template_decl.
* decl.c (store_parm_decls): Don't build cleanups for parameters
while processing_template_decl.
From-SVN: r31842
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/codegen1.C | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/codegen1.C b/gcc/testsuite/g++.old-deja/g++.pt/codegen1.C new file mode 100644 index 0000000..f9a39c0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/codegen1.C @@ -0,0 +1,24 @@ +// Build don't link: +// Origin: Mark Mitchell <mark@codesourcery.com> + +int i; + +struct S +{ + ~S () + { + } +}; + +template <class T> +void f (T, S) +{ + i = 0; +} + +int main () +{ + i = 1; + f (3, S ()); + return i; +} |