diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/defarg1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/defarg1.C | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/defarg1.C b/gcc/testsuite/g++.old-deja/g++.other/defarg1.C deleted file mode 100644 index 68b07a510cc..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/defarg1.C +++ /dev/null @@ -1,28 +0,0 @@ -// Build don't link: - -int f (int x) -{ - extern void g (int i = f (x)); // ERROR - default argument uses local - - g(); - - return 0; -} - -int f (void); - -int h1 (int (*)(int) = f); -int h2 (int (*)(double) = f); // ERROR - no matching f - -template <class T> -int j (T t) -{ - extern void k (int i = j (t)); // ERROR - default argument uses local - - k (); - - return 0; -} - -template int j (double); // ERROR - instantiated from here - |