summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/addr1.C
blob: dd5e3870fc53e238de9f62d855e5fa02df4965bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/15542

template <typename> struct S_T { 
  const char** operator & (); 
}; 
 
template <class T> void foo(T **) {} 
 
template <typename> void templateTest() { 
  S_T<const char> s_t; 
  foo(&s_t); 
}