diff options
Diffstat (limited to 'test/core/weak-coalesce.objtxt')
-rw-r--r-- | test/core/weak-coalesce.objtxt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/core/weak-coalesce.objtxt b/test/core/weak-coalesce.objtxt new file mode 100644 index 0000000000000..550c10cfa468c --- /dev/null +++ b/test/core/weak-coalesce.objtxt @@ -0,0 +1,30 @@ +# RUN: lld -core %s | FileCheck %s + +# +# Test that weak definitions are coalesced away in favor of a regular definition +# + +--- +defined-atoms: + - name: _foo + merge: as-weak + scope: global + type: data +--- +defined-atoms: + - name: _foo + scope: global + type: data +--- +defined-atoms: + - name: _foo + merge: as-weak + scope: global + type: data +... + + +# CHECK: name: _foo +# CHECK-NOT: merge: as-weak +# CHECK-NOT: name: _foo +# CHECK: ... |