[clang-repl] Fix dynamic library test to avoid cstdio and linker
authorAnubhab Ghosh <anubhabghosh.me@gmail.com>
Sat, 22 Apr 2023 13:44:29 +0000 (19:14 +0530)
committerAnubhab Ghosh <anubhabghosh.me@gmail.com>
Wed, 26 Apr 2023 03:41:09 +0000 (09:11 +0530)
commit7f96ce5e133be54891af177adbf8952d413e0f85
tree2e5ee3e96920d6922b10dd0d2d2403c38b99f940
parent0942e2eca1c3295296286c9c2464112a7d647b65
[clang-repl] Fix dynamic library test to avoid cstdio and linker

Some platforms do not have a working linker present. The goal is to
only test the loading of a shared library in clang-repl. A precompiled
library is used instead.

The cstdio header may also not be present. We only need printf.

Related discussion in D141824

Differential Revision: https://reviews.llvm.org/D148992
clang/test/Interpreter/Inputs/dynamic-library-test.cpp [deleted file]
clang/test/Interpreter/Inputs/libdynamic-library-test.so [new file with mode: 0755]
clang/test/Interpreter/dynamic-library.cpp