mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-30 03:49:37 +08:00
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:
parent
b64a1b533c
commit
210142e0e2
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user