diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/weak/weak-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/weak/weak-3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/weak/weak-3.c b/gcc/testsuite/gcc.dg/weak/weak-3.c index c9448f032cf..2294ebf7b4e 100644 --- a/gcc/testsuite/gcc.dg/weak/weak-3.c +++ b/gcc/testsuite/gcc.dg/weak/weak-3.c @@ -52,18 +52,18 @@ void * foo1e (void) extern void * ffoo1f (void); -extern void * ffoox1f (void); void * foo1f (void) { if (ffoo1f) /* { dg-warning "" } */ ffoo1f (); return 0; } +void * ffoox1f (void) { return (void *)0; } extern void * ffoo1f (void) __attribute__((weak, alias ("ffoox1f"))); /* { dg-warning "weak declaration" "weak declaration" } */ extern void * ffoo1g (void); -extern void * ffoox1g (void); +void * ffoox1g (void) { return (void *)0; } extern void * ffoo1g (void) __attribute__((weak, alias ("ffoox1g"))); void * foo1g (void) { |