]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/defarg1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / defarg1.C
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 (file)
index 68b07a5..0000000
+++ /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
-