diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/template24.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/template24.C | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template24.C b/gcc/testsuite/g++.old-deja/g++.brendan/template24.C index 7d677023282..fca7aa3a92f 100644 --- a/gcc/testsuite/g++.old-deja/g++.brendan/template24.C +++ b/gcc/testsuite/g++.old-deja/g++.brendan/template24.C @@ -1,20 +1 @@ -// GROUPS passed templates -extern "C" void printf (char *, ...); - -template <class F> -class Temp -{ - F func_; -public: - Temp (F f) :func_(f) {} -}; - -int func (int h = 1, int z = 2) { return h+z; } - -main () -{ - Temp<int(*)(int, int)> temp (func); - - printf ("PASS\n"); - return 0; -} +int main () |