diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/call2.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/call2.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/call2.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/call2.C new file mode 100755 index 0000000..51b2469 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/call2.C @@ -0,0 +1,14 @@ +// Build don't link: + +struct IsCompressed { }; +struct Field { +}; + +template<class C> +inline bool +for_each(const Field& p, IsCompressed, C) +{ + return p.IsCompressed(); // ERROR - calling type like a method +} + +template bool for_each<int>(const Field& p, IsCompressed, int); // ERROR - instantiated from here |