Displaying 1 result from an estimated 1 matches for "test_code_har".
2020 Aug 10
2
ORC JIT Weekly #19 -- Relocatable object level mocking with llvm-jitlink.
....o under normal
circumstances: function_to_test is static and will fail to resolve from the
harness code, function_to_mock is a duplicate definition, and
irrelevant_external is undefined. Our new llvm-jitlink options take care of
these issues however, and running the test looks like:
% clang -c -o test_code_harness.o test_code_harness.c
% llvm-jitlink -phony-externals test_code.o -harness test_code_harness.o
used mock utility function
Y is 42
This utility may be of interest to people who want to perform some very
late testing on build products to verify that compiled code behaves as
expected. On basic C...