<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi everyone!</div><div>    I'm trying to write a translator to translate LLVM IR to another IR(named 'X'). That's to say I use the result of Clang but do not use LLVM Backend. You can think I use Clang + Another IR('X') + Another Backend(Can recognize 'X'). Here, I want to know where is the test of Clang? </div><div><br></div><div>   First of all, I want to list the information I have known so far. </div><div>   1. clang-test repository in the LLVM</div><div>       The standalone repository I found yesterday. I found many test files in this folder but I didn't know whether it is the all test files of Clang, because I found that these are mainly from gcc test suite, especially I didn't know whether it contained C++11, C++1y test cases or not.</div><div><br></div><div>  2. tests in the Clang repository</div><div>     In the Clang repository, there is also one tests folder which has 'SemaCXX', 'SemaTemplate' and so on. But I find that it is tested by verify files. I think I need the running result(Because I use Clang, if  I compile it, it can compile perfectly). For example:</div><div><br></div><div>// a.cc</div><div><br></div><div>int func() {</div><div> <span style="line-height: 23.7999992370605px;">    int a = 1;</span></div><div style="line-height: 23.7999992370605px;">     int b = 3;</div><div style="line-height: 23.7999992370605px;">     return a + b;</div><div>}</div><div>int main() {</div><div>    std::cout << func();</div><div>    return 0;</div><div>}</div><div>if I run a.cc, the result will be 4. if I can have one 'expected_result' file, I can know whether it is the correct result or not.</div><div><br></div><div>The problem is that I do not whether Clang has this kind test suite, i.e. one test file(such as a.cc), one expected result file(such as a.expected). </div><div><br></div><div>Thanks</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>