Younan Zhang 77ef5a601a
[Clang][NFC] Fix a test failure with mold linker (#122587)
Mold prefers the suffix '$' for symbols like PLT and GOT entries, so
exclude these symbols as well. Otherwise, this test will fail for
developers using mold-linked Clang.

Closes https://github.com/llvm/llvm-project/issues/76982
2025-01-11 19:17:09 +08:00

7 lines
322 B
Plaintext

# Check that there are no unversioned clang symbols in libclang.so
RUN: llvm-nm -Dj --defined-only %libclang | grep -v -e '@@LLVM_[0-9]\+$' | not grep '^clang'
# Check that there are no local clang_ symbols (ignoring symbols with .cold or
# .localalias suffxies.)
RUN: llvm-nm %libclang | not grep '[a-z] clang_[^.$]\+$'