OSDN Git Service

update
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jun 1998 03:14:02 +0000 (03:14 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jun 1998 03:14:02 +0000 (03:14 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20400 138bc75d-0d04-0410-961f-82ee72b054a4

14 files changed:
gcc/testsuite/g++.old-deja/g++.jason/rfg15.C [deleted file]
gcc/testsuite/g++.old-deja/g++.law/operators29.C
gcc/testsuite/g++.old-deja/g++.mike/p1989.C
gcc/testsuite/g++.old-deja/g++.other/delete2.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/init5.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/typename7.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.robertl/eb26.C
gcc/testsuite/g++.old-deja/g++.robertl/eb27.C
gcc/testsuite/g++.old-deja/g++.robertl/eb36.C
gcc/testsuite/g++.old-deja/g++.robertl/eb43.C
gcc/testsuite/g++.old-deja/g++.robertl/eb49.C
gcc/testsuite/g++.old-deja/g++.robertl/eb70.C
gcc/testsuite/g++.old-deja/g++.robertl/eb76.C
gcc/testsuite/g++.old-deja/g++.robertl/eb88.C

diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg15.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg15.C
deleted file mode 100644 (file)
index 1f0ff3b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-const void *cvp;
-const void func1 ()
-{
-        return *cvp;    /* ERROR - returning a value from a void function */
-}
index ec0d47c..c24bbe4 100644 (file)
@@ -1,6 +1,5 @@
 // Build don't link: 
 // GROUPS passed operators
-// excess errors test - XFAIL *-*-*
 // (Message bugs/opr-del:4)
 // From: jamshid@ses.com (Jamshid Afshar)
 // Date:     Fri, 25 Feb 94 18:44:01 CST
index 2f3ebcf..7e18869 100644 (file)
@@ -336,7 +336,7 @@ struct vertex {
 
     vertex(): item(), fanout() // gets bogus error
       { };
-    vertex(const T& i): item(), fanout() // gets bogus error - XFAIL *-*-*
+    vertex(const T& i): item(), fanout() // gets bogus error
       { };
 };
 
@@ -458,7 +458,7 @@ void
 Graph<T>::nextV1(Pix vx, Pix& x) const
 {
     vertex<T> *v = (vertex<T> *) vx;
-    return v->fanout.next(x);  // ERROR - return from void method
+    return v->fanout.next(x);
 }
 
 template<class T>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete2.C b/gcc/testsuite/g++.old-deja/g++.other/delete2.C
new file mode 100644 (file)
index 0000000..09362f6
--- /dev/null
@@ -0,0 +1,13 @@
+// Build don't link:
+
+struct foo {
+  operator char*() const;
+};
+
+void bar(foo a) {
+  delete a; // should be accepted - XFAIL *-*-*
+  delete[] a; // should be accepted - XFAIL *-*-*
+  char b[1];
+  delete b; // ERROR - expecting pointer type
+  delete[] b; // ERROR - expecting pointer type
+}
diff --git a/gcc/testsuite/g++.old-deja/g++.other/init5.C b/gcc/testsuite/g++.old-deja/g++.other/init5.C
new file mode 100644 (file)
index 0000000..3f4785e
--- /dev/null
@@ -0,0 +1,27 @@
+// Objects must be destructed in decreasing cnt order
+// Original test attributed to James Kanze <jkanze@otelo.ibmmail.com>
+// execution test - XFAIL *-*-*
+
+static int cnt;
+
+class A {
+  int myCnt;
+public:
+  A() : myCnt(cnt++) {}
+  ~A() { if (--cnt != myCnt) abort(); }
+};
+
+void f() { static A a; /* a.myCnt == 1 */ }
+
+class B {
+  int myCnt;
+public:
+  B() : myCnt(cnt+1) { f(); ++cnt; }
+  ~B() { if (--cnt != myCnt) abort(); }
+};
+
+static A a1; // a1.myCnt == 0
+static B b1; // b1.myCnt == 2
+static A a2; // a2.myCnt == 3
+
+int main() {}
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename7.C b/gcc/testsuite/g++.old-deja/g++.pt/typename7.C
new file mode 100644 (file)
index 0000000..5c89603
--- /dev/null
@@ -0,0 +1,20 @@
+// Test for implicit typename
+// Build don't link:
+// Special g++ Options:
+
+template <class T>
+struct A {
+protected:
+  typedef struct B { } B;
+};
+
+template <class T>
+struct C { };
+
+template <class T>
+struct D : public A <C <T> > {
+  void f ()
+    {
+      B* new_entries = (B *) 0;
+    }
+};
index 8e0d0f8..1f9cc12 100644 (file)
@@ -3,6 +3,7 @@
 // cannot declare friend of enclosing class using its scope, works fine
 // without scope or for definition of foo::bar::f
 //
+// excess errors test - XFAIL *-*-*
 
 class foo
 {
index d85ed38..7dfd1a3 100644 (file)
@@ -3,6 +3,7 @@
 */
 /* (w) 4.9.97 by Kurt Garloff <K.Garloff@ping.de> */
 // Special g++ Options:
+// excess errors test - XFAIL *-*-*
 
 #include <iostream.h>
 
index 542cbeb..e01dbda 100644 (file)
@@ -13,7 +13,7 @@ private:
 
 template <typename T>
 foo<T>::foo()               :v(),   t() {}
-template <typename T=float>    // ERROR - default parm for member template
+template <typename T=float>    // ERROR - default parm for member template XFAIL *-*-*
 foo<T>::foo(vector<int> v_) :v(v_), t() {}
 
 foo<float> a;
index 80a7a06..8690d11 100644 (file)
@@ -1,3 +1,5 @@
+// excess errors test - XFAIL *-*-*
+
 #include <vector.h>
 #include <algo.h>
 
index 3d39b43..eb69dfd 100644 (file)
@@ -1,4 +1,5 @@
-// Build don't link:  
+// Build don't link:
+// excess errors test - XFAIL *-*-*
 
 // Here we declare ::S
 typedef struct s1 *S;
index 63a6de0..a82a399 100644 (file)
@@ -1,6 +1,7 @@
 // conversion ops should be treated as coming from the most derived class
 // for overload resolution.  See [over.match.funcs].
 // Build don't link:
+// excess errors test - XFAIL *-*-*
 
 class X {
 public:
index 61920c5..e2817ee 100644 (file)
@@ -1,5 +1,6 @@
 //Build don't link:
 // the template operator!= interferes.  It should be in a namespace.
+// excess errors test - XFAIL *-*-*
 
 #include <utility>
 
@@ -13,6 +14,6 @@ struct X {
 
 void
 f(X& v) {
-  if( v.t != V1 ) {            // gets bogus error - address of bitfield
+  if( v.t != V1 ) {            // complains about taking address of bitfield
   }
 }
index c47985c..006fe56 100644 (file)
@@ -1,5 +1,5 @@
 // Another magic NULL problem.
-// Special g++ Options:
+// Special g++ Options: -w
 
 #include <stddef.h>