<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello, </div>
<div><br>
</div>
<div>I have a fix for Bug17623 (<a href="http://llvm.org/bugs/show_bug.cgi?id=17623">http://llvm.org/bugs/show_bug.cgi?id=17623</a>) but I am not sure how best to install a regression test. The commands I use to run the test are (approximately) </div>
<div><br>
</div>
<div>
<div>$LLVM/clang -flto -O2 -o BUG.o -c  BUG.c</div>
<div>$LLVM/llvm-lto -exported-symbol=main -o lto.o BUG.o</div>
<div>$LLVM/clang -o bug lto.o</div>
<div>./bug</div>
<div><br>
</div>
</div>
<div>Where the failing behavior is to seg fault and corrected behavior is to run to completion.</div>
<div>The use of llvm-lto avoids a dependence on the native loader having appropriate plugin support.</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>Thanks</div>
<div>david</div>
</body>
</html>