summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template12.C
blob: 686db48f50a5370e9f5b23e7bc5838cfd4e6d891 (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }
// GROUPS passed templates
inline void foo (const int &x) {}

template <class type>
inline void foo (const type &x) {x.eat_this_and_die();}

int main (int argc, char **argv) {foo (argc);}