summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/mangle62.C
blob: 6dbfd7865cfed931825e78624130c30f9bcc733c (plain)
1
2
3
4
5
6
7
8
9
10
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 <class T, class U> struct A { };
// { dg-final { scan-assembler "_Z1fP1AIKFvvEFvvEE" } }
void f (A<void()const, void()> *){}
// { dg-final { scan-assembler "_Z1gP1AIFvvEKFvvEE" } }
void g (A<void(), void()const> *){}