weak-2.c: xfail warnings for platforms that don't support weak symbols.

2002-05-19  David Billinghurst <David.Billinghurst@riotinto.com>

	* gcc.dg/weak-2.c:  xfail warnings for platforms that don't
	support weak symbols.
	* gcc.dg/weak-4.c: Likewise
	* gcc.dg/weak-6.c: Likewise

From-SVN: r53601
This commit is contained in:
David Billinghurst 2002-05-19 01:20:53 +00:00 committed by David Billinghurst
parent b64a1b533c
commit 210142e0e2
4 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2002-05-19 David Billinghurst <David.Billinghurst@riotinto.com>
* gcc.dg/weak-2.c: xfail warnings for platforms that don't
support weak symbols.
* gcc.dg/weak-4.c: Likewise
* gcc.dg/weak-6.c: Likewise
2002-05-16 David.Billinghurst <David.Billinghurst@riotinto.com>
* gcc.dg/weak-3.c: Add dg-excess-error comment for

View File

@ -30,7 +30,7 @@ void * foo1b (void)
return (void *)ffoo1b;
}
extern void * ffoo1c (void); /* { dg-warning "applying #pragma weak" "applying #pragma weak" } */
extern void * ffoo1c (void); /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */
void * foo1c (void)
{
return (void *)ffoo1c;

View File

@ -38,7 +38,7 @@ void * foo1b (void)
}
extern int vfoo1c; /* { dg-warning "applying #pragma weak" "applying #pragma weak" } */
extern int vfoo1c; /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */
void * foo1c (void)
{
return (void *)&vfoo1c;
@ -70,7 +70,7 @@ void * foo1f (void)
#pragma weak vfoo1f
extern int vfoo1g; /* { dg-warning "applying #pragma weak" "applying #pragma weak" } */
extern int vfoo1g; /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */
void * foo1g (void)
{
return (void *)&vfoo1g;

View File

@ -1,6 +1,6 @@
/* { dg-do compile } */
extern void * foo (void);
void * foo (void) { return (void *)foo; } /* { dg-error "precede" } */
void * foo (void) { return (void *)foo; } /* { dg-error "precede" "" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */
#pragma weak foo