Skip to content

Commit 09403a6

Browse files
committed
[ELF,test] Improve "non-exported symbol" tests
Test that the error is not triggered when we see the non-exported definition first (#86777).
1 parent e9e4ab8 commit 09403a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lld/test/ELF/allow-shlib-undefined.s

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@
3131

3232
## Test some cases when a relocatable object file provides a non-exported definition.
3333
# RUN: not ld.lld main.o a.so def-hidden.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=NONEXPORTED
34+
## TODO
35+
# RUN: ld.lld main.o def-hidden.o a.so -o /dev/null
3436
# RUN: not ld.lld main.o a.so def-hidden.o -shared --no-allow-shlib-undefined -o /dev/null 2>&1 | FileCheck %s --check-prefix=NONEXPORTED
3537
# RUN: ld.lld main.o a.so def-hidden.o --allow-shlib-undefined --fatal-warnings -o /dev/null
3638
## Test a relocatable object file definition that is converted to STB_LOCAL.
3739
# RUN: not ld.lld main.o a.so def-hidden.o --version-script=local.ver -o /dev/null 2>&1 | FileCheck %s --check-prefix=NONEXPORTED
40+
## TODO
41+
# RUN: ld.lld main.o def-hidden.o a.so --version-script=local.ver -o /dev/null
3842

3943
## The section containing the definition is discarded, and we report an error.
4044
# RUN: not ld.lld --gc-sections main.o a.so def-hidden.o -o /dev/null 2>&1 | FileCheck %s

0 commit comments

Comments
 (0)