diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/attr-weakref-1.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/attr-weakref-1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/attr-weakref-1.c b/gcc-4.9/gcc/testsuite/gcc.dg/attr-weakref-1.c index ee900fcde..9ed1c51b3 100644 --- a/gcc-4.9/gcc/testsuite/gcc.dg/attr-weakref-1.c +++ b/gcc-4.9/gcc/testsuite/gcc.dg/attr-weakref-1.c @@ -4,12 +4,14 @@ // This test requires support for undefined weak symbols. This support // is not available on hppa*-*-hpux*. The test is skipped rather than // xfailed to suppress the warning that would otherwise arise. -// { dg-skip-if "" { "*-*-darwin*" "hppa*-*-hpux*" "*-*-aix*" } "*" { "" } } +// { dg-skip-if "" { "hppa*-*-hpux*" "*-*-aix*" } "*" { "" } } // For kernel modules and static RTPs, the loader treats undefined weak // symbols in the same way as undefined strong symbols. The test // therefore fails to load, so skip it. // { dg-skip-if "" { "*-*-vxworks*" && nonpic } "*" { "-non-static" } } // { dg-options "-O2" } +// { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } +// { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } // { dg-additional-sources "attr-weakref-1a.c" } // Copyright 2005 Free Software Foundation, Inc. |