]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.ns/template13.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / template13.C
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template13.C b/gcc/testsuite/g++.old-deja/g++.ns/template13.C
deleted file mode 100644 (file)
index 722666f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// Build don't link:
-// Templates defined outside must be declared inside
-// crash test - XFAIL *-*-*
-namespace bar
-{
-  template<class T>
-  void foo(); // trick it to provide some prior declaration
-  template<class T>class X; // ERROR - previous declaration
-}
-
-template <typename T>
-T const
-bar::foo(T const &a)    
-{                        // ERROR - not declared in bar - XFAIL *-*-*
-  return a;
-}
-
-template<> void bar::foo<int>()
-{                        // ERROR - not declared in bar - XFAIL *-*-*
-}
-
-template<class T,class U>
-class bar::X{};         // ERROR - does not match declaration