This is a testcase for https://bugs.llvm.org/show_bug.cgi?id=36777, which is
fixed by https://reviews.llvm.org/D44614.
Details
- Reviewers
grimar ruiu • espindola
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
Having such test case in LLD seems reasonable to me.
test/ELF/linkerscript/cxx11-tag-version.s | ||
---|---|---|
3 | Please use: | |
24 | I do not think you need to check anything except the names here. So I would shorten the checks: # CHECK: _Z14accepts_stringRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE # CHECK: _Z14returns_stringB5cxx11v # CHECK: _Z6globalB5cxx11 | |
33 | And I would drop the comments, they do not seem to be useful. |
"cxx11-tag-version.s" is not an appropriate file name for this test case because this is not specific to C++11. I'd name "extern-cpp.s".
test/ELF/linkerscript/cxx11-tag-version.s | ||
---|---|---|
4 | I think you can remove "VER1". | |
9 | Remove extraneous space characters between "CHECK:" and "Name:" | |
13–26 | You don't need to repeat the same test case three times. Please use only one symbol. |
Please use:
echo 'VER1 { global: extern "C++" { returns_string*; accepts_string*; global* }; local: *; };' > %t.script