OSDN Git Service

gcc/cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ns / template13.C
index 058d7b9..4655538 100644 (file)
@@ -1,23 +1,23 @@
-// { dg-do assemble { xfail *-*-* } }
+// { dg-do compile }
 // Templates defined outside must be declared inside
 namespace bar
 {
   // trick it to provide some prior declaration
   template<class T>
   void foo(); // { dg-error "definition" }
-  template<class T>class X; // { dg-error "" } previous declaration
+  template<class T>class X; // { dg-error "previous declaration" }
 }
 
 template <typename T>
 T const
-bar::foo(T const &a)    
-{                        // { dg-error "" "" { xfail *-*-* } } not declared in bar - 
+bar::foo(T const &a)     // { dg-error "" "" { xfail *-*-* } } not declared in bar - 
+{
   return a;
 }
 
-template<> void bar::foo<int>()
-{                        // { dg-error "" }
+template<> void bar::foo<int>()     // { dg-error "different namespace" }
+{
 }
 
 template<class T,class U>
-class bar::X{};         // { dg-error "" } does not match declaration
+class bar::X{};         // { dg-error "1 template parameter" }