summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/mangle14.C
blob: 2b38255ac0ad4101bb4634f4c99516ba7aa9c5cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }
// { dg-options "-Wabi -fabi-version=1" }
// { dg-final { scan-assembler "_Z1g1SIXadsr1ANS0_1fIiEEivEE" } }

struct A {
  template <typename T> int f ();
};

typedef int (A::*P)();

template <P> struct S {};

void g (S<&A::f<int> >) {} // { dg-warning "mangle" }