[LLVMdev] LTO regression test Bug 17623

David Callahan dcallahan at fb.com
Tue Feb 3 16:58:24 PST 2015


Hello,

I have a fix for Bug17623 (http://llvm.org/bugs/show_bug.cgi?id=17623) but I am not sure how best to install a regression test. The commands I use to run the test are (approximately)

$LLVM/clang -flto -O2 -o BUG.o -c  BUG.c
$LLVM/llvm-lto -exported-symbol=main -o lto.o BUG.o
$LLVM/clang -o bug lto.o
./bug

Where the failing behavior is to seg fault and corrected behavior is to run to completion.
The use of llvm-lto avoids a dependence on the native loader having appropriate plugin support.

The reliance on running clang and code suggests a test belongs in the llvm-test-suite. Could someone give me a pointer on how to configure a test using commands like the above? Are there any other tests with a similar structure?

Thanks
david
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150204/765f54ae/attachment.html>


More information about the llvm-dev mailing list