aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/mangle46.C
blob: 2986dd7354b3baed72b537dae93224e200d5eb10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/48008
// { dg-options "-fabi-version=5 -fabi-compat-version=5" }
// Test that we retain function-cv-quals in template argument mangling.

template <class T>
struct A
{ };

typedef void cfn(int) const;
typedef void fn(int);

// { dg-final { scan-assembler  "_Z1f1AIFviEE" } }
void f(A<fn>) { }
// { dg-final { scan-assembler  "_Z1f1AIKFviEE" } }
void f(A<cfn>) { }