diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/call2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/call2.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/call2.C b/gcc/testsuite/g++.old-deja/g++.pt/call2.C new file mode 100644 index 000000000..94e4928b4 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/call2.C @@ -0,0 +1,14 @@ +// { dg-do assemble } + +struct IsCompressed { }; +struct Field { +}; + +template<class C> +inline bool +for_each(const Field& p, IsCompressed, C) +{ + return p.IsCompressed(); // { dg-error "" } calling type like a method +} + +template bool for_each<int>(const Field& p, IsCompressed, int); |