From c27a97d04853380f1e80525391b3f0d156ed4c84 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Thu, 30 Oct 2014 09:35:42 +0000 Subject: Imported from /home/lorry/working-area/delta_gcc-tarball/gcc-4.9.2.tar.bz2. --- gcc/testsuite/g++.dg/abi/mangle62.C | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/abi/mangle62.C (limited to 'gcc/testsuite/g++.dg/abi/mangle62.C') diff --git a/gcc/testsuite/g++.dg/abi/mangle62.C b/gcc/testsuite/g++.dg/abi/mangle62.C new file mode 100644 index 0000000000..6dbfd7865c --- /dev/null +++ b/gcc/testsuite/g++.dg/abi/mangle62.C @@ -0,0 +1,11 @@ +// Before v8, we mistakenly treated an unqualified function type +// as a substitution candidate for a function type with function-cv-quals. +// Test for the conformant behavior. + +// { dg-options -fabi-version=0 } + +template struct A { }; +// { dg-final { scan-assembler "_Z1fP1AIKFvvEFvvEE" } } +void f (A *){} +// { dg-final { scan-assembler "_Z1gP1AIFvvEKFvvEE" } } +void g (A *){} -- cgit v1.2.1