Commit 3ae273dc by Jason Merrill

up

From-SVN: r23345
parent aaa9d731
// Build don't link: // Build don't link:
// crash test - XFAIL *-*-*
struct inttest { struct inttest {
int elem[1]; int elem[1];
}; };
...@@ -9,8 +7,8 @@ struct inttest { ...@@ -9,8 +7,8 @@ struct inttest {
template <class T> template <class T>
void F(T x) void F(T x)
{ {
typedef __typeof__(x.elem[0]) dummy; typedef __typeof (x.elem[0]) dummy;
i = 1; dummy i = 1;
} }
int main() { int main() {
......
// Build don't link: // Build don't link:
// GROUPS passed arg-matching // GROUPS passed arg-matching
// excess errors test - XFAIL *-*-*
// From: gustavo@cpqd.br (Gustavo Chaves) // From: gustavo@cpqd.br (Gustavo Chaves)
// Date: Wed, 25 May 94 09:38:00 EST // Date: Wed, 25 May 94 09:38:00 EST
// Subject: problem with user defined conversions in initialization // Subject: problem with user defined conversions in initialization
...@@ -10,7 +9,7 @@ struct String { String(const char*); }; ...@@ -10,7 +9,7 @@ struct String { String(const char*); };
struct Ack { Ack(String); }; struct Ack { Ack(String); };
struct S { void method(Ack); }; struct S { void method(Ack); }; // ERROR - referenced below
void function(Ack); void function(Ack);
......
...@@ -6,6 +6,16 @@ ...@@ -6,6 +6,16 @@
// Subject: Re: g++ ignores language context of function pointers // Subject: Re: g++ ignores language context of function pointers
// Message-ID: <9302021238.AA01513@Achates.MIT.EDU> // Message-ID: <9302021238.AA01513@Achates.MIT.EDU>
typedef void (*pfv2)(double, double); typedef void (*pfv)();
extern "C" { typedef void (*pfv3)(double, double); }// ERROR - , XFAIL *-*-* 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;
// Build don't link: // Build don't link:
// Special g++ Options: -w
// GROUPS passed vtable // GROUPS passed vtable
// excess errors test - XFAIL *-*-*
// vtable file // vtable file
// From: mrs@cygnus.com (Mike Stump) // From: mrs@cygnus.com (Mike Stump)
// Date: Wed, 20 Apr 1994 17:46:11 -0700 // Date: Wed, 20 Apr 1994 17:46:11 -0700
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment