gcc/testsuite/g++.dg/overload/template3.C
raw| 1 | // PR c++/33962 |
| 2 | // { dg-do compile } |
| 3 | |
| 4 | template <class T> struct A; |
| 5 | |
| 6 | template <class U> void foo (const U &x, ...); |
| 7 | template <class T> void foo (const A<T> &x, ...); |
| 8 | |
| 9 | void bar (const A<int> &x, const char *y) |
| 10 | { |
| 11 | foo (x, y); |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler "_Z3fooIiEvRK1AIT_Ez" } } */ |
| 15 | /* { dg-final { scan-assembler-not "_Z3fooI1AIiEEvRKT_z" } } */ |