aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/call1.C
blob: b9836bbcc5a897ff6abb18cf924dfa3ba093d660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:

struct IsCompressed { };
struct Field {
  bool IsCompressed() const { return true; }
};

template<class C>
inline bool
for_each(const Field& p, IsCompressed, C)
{
  return p.IsCompressed();
}

template bool for_each<int>(const Field& p, IsCompressed, int);