up
authorJason Merrill <jason@gcc.gnu.org>
Mon, 26 Oct 1998 02:09:40 +0000 (21:09 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 26 Oct 1998 02:09:40 +0000 (21:09 -0500)
From-SVN: r23345

gcc/testsuite/g++.old-deja/g++.ext/typeof1.C
gcc/testsuite/g++.old-deja/g++.law/arg11.C
gcc/testsuite/g++.old-deja/g++.law/missed-error1.C
gcc/testsuite/g++.old-deja/g++.law/vtable1.C

index 59edb91add7d3dd52b826becb5ffd4f9896d9117..a9c03b3ae60182ea92b1e212f2ff38fecd60a263 100644 (file)
@@ -1,7 +1,5 @@
 // Build don't link:
 
-// crash test - XFAIL *-*-*
-
 struct inttest {
   int elem[1];
 };
@@ -9,8 +7,8 @@ struct inttest {
 template <class T>
 void F(T x)
 {
-  typedef __typeof__(x.elem[0]) dummy;
-  i = 1;
+  typedef __typeof (x.elem[0]) dummy;
+  dummy i = 1;
 }
 
 int main() {
index 77ea8d84e45671922b44ddf04408471d4944cfb8..4f0868e68a67829bf002bbf40fe26e30412f8e41 100644 (file)
@@ -1,6 +1,5 @@
 // Build don't link: 
 // GROUPS passed arg-matching
-// excess errors test - XFAIL *-*-*
 // From: gustavo@cpqd.br (Gustavo Chaves)
 // Date:     Wed, 25 May 94 09:38:00 EST
 // Subject:  problem with user defined conversions in initialization
@@ -10,7 +9,7 @@ struct String { String(const char*); };
 
 struct Ack { Ack(String); };
 
-struct S { void method(Ack); };
+struct S { void method(Ack); };        // ERROR - referenced below
 
 void function(Ack);
 
index 50accb55440ff8f44cf45133ff0bfa7183952330..5091e7d7b6191c339ef0cd13d6e40c3acf058b68 100644 (file)
@@ -6,6 +6,16 @@
 // Subject:  Re: g++ ignores language context of function pointers
 // Message-ID: <9302021238.AA01513@Achates.MIT.EDU>
 
-        typedef void (*pfv2)(double, double);
-        extern "C" { typedef void (*pfv3)(double, double); }// ERROR -  , XFAIL *-*-*
+typedef void (*pfv)();
+void f ();
 
+extern "C"
+{
+  typedef void (*pcfv)(void);
+  void cf (void);
+}
+
+pfv p = f;
+pfv p2 = cf;                   // ERROR - mismatch XFAIL *-*-*
+pcfv p3 = f;                   // ERROR - mismatch XFAIL *-*-*
+pcfv p4 = cf;
index c788c179054698f8607dccc4b8d921d223411a5c..32a546a2827a65c895a3e3e547164600cb34bb0a 100644 (file)
@@ -1,6 +1,6 @@
-// Build don't link: 
+// Build don't link:
+// Special g++ Options: -w
 // GROUPS passed vtable
-// excess errors test - XFAIL *-*-*
 // vtable file
 // From: mrs@cygnus.com (Mike Stump)
 // Date:     Wed, 20 Apr 1994 17:46:11 -0700