diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-07-25 21:42:55 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-07-25 21:48:06 +0100 |
commit | e0e546635a307c2a0a2c6c909e92dce3dfc967ff (patch) | |
tree | 13b4da7fa252ed871f5b8480388e0198426fc199 /gcc/testsuite | |
parent | e0633768a1a2efe689e5505b3a95aa949d704b06 (diff) | |
download | gcc-e0e546635a307c2a0a2c6c909e92dce3dfc967ff.zip gcc-e0e546635a307c2a0a2c6c909e92dce3dfc967ff.tar.gz gcc-e0e546635a307c2a0a2c6c909e92dce3dfc967ff.tar.bz2 |
C++, testsuite: Adjust pure-virtual1.C options for Darwin.
Darwin's static linker expects, by default, that all linkage will
be satisfied (even for weak items). This allows the two-level
namespace to work even for weak cases.
However, there's an option to make it behave in a similar manner
to ELF. This is needed for the pure-virtual1.C testcase to pass
on Darwin.
gcc/testsuite/ChangeLog:
* g++.dg/abi/pure-virtual1.C: Add dynamic_lookup option
for Darwin.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/abi/pure-virtual1.C | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/abi/pure-virtual1.C b/gcc/testsuite/g++.dg/abi/pure-virtual1.C index 86cc9f6..538e2cb 100644 --- a/gcc/testsuite/g++.dg/abi/pure-virtual1.C +++ b/gcc/testsuite/g++.dg/abi/pure-virtual1.C @@ -2,6 +2,7 @@ // { dg-do link } // { dg-require-weak } // { dg-additional-options "-fno-rtti -nodefaultlibs -lc" } +// { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } // { dg-xfail-if "AIX weak" { powerpc-ibm-aix* } } struct A |