OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / call2.C
1 // { dg-do assemble  }
2
3 struct IsCompressed { };
4 struct Field {
5 };
6
7 template<class C>
8 inline bool
9 for_each(const Field& p, IsCompressed, C)
10 {
11   return p.IsCompressed(); // { dg-error "" } calling type like a method
12 }
13
14 template bool for_each<int>(const Field& p, IsCompressed, int);