This patch adds a test for the -lto-freestanding option, similar to llvm/test/ThinLTO/X86/tli-nobuiltin.ll.