summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/template3.C
blob: 90ccfd8add604a70ee38251465be88eee08d4a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/33962
// { dg-do compile }

template <class T> struct A;

template <class U> void foo (const U &x, ...);
template <class T> void foo (const A<T> &x, ...);

void bar (const A<int> &x, const char *y)
{
  foo (x, y);
}

/* { dg-final { scan-assembler "_Z3fooIiEvRK1AIT_Ez" } } */
/* { dg-final { scan-assembler-not "_Z3fooI1AIiEEvRKT_z" } } */