1*fe36f081STimo KreuzerMicrosoft compiler-tests 2*fe36f081STimo Kreuzer======================== 3*fe36f081STimo Kreuzer 4*fe36f081STimo KreuzerIntroduction 5*fe36f081STimo Kreuzer------------ 6*fe36f081STimo KreuzerThis repo includes selected tests from the Microsoft compiler-tests directory. 7*fe36f081STimo KreuzerThe initial focus is on exception handling tests, both for C++EH and SEH, to make it easier to test WinEH implementations for compatibility with the platform. The expectation is that this set of tests will grow and ultimately be added to the LLVM test-suite. Opening this as a separate repo is intended as a stop gap as the work to get the LLVM test-suite to run clean on Windows progresses. 8*fe36f081STimo Kreuzer 9*fe36f081STimo KreuzerSupported Platforms 10*fe36f081STimo Kreuzer------------------- 11*fe36f081STimo KreuzerThe first round of tests being opened are EH, the bulk of which are SEH tests. This is naturally Windows specific. Additionally only the most rudimentary harness is included (runtests.cmd) due to our objective to move these tests into the LLVM harness. 12*fe36f081STimo Kreuzer 13*fe36f081STimo KreuzerQuick Start 14*fe36f081STimo Kreuzer----------- 15*fe36f081STimo KreuzerThere are two main sub directories in the compiler-tests directory. The descriptions of what they contain are listed below. Overtime we expect to open more tests in these directories as well as add new areas of testing. 16*fe36f081STimo Kreuzer 17*fe36f081STimo Kreuzer####EH (C++EH) 18*fe36f081STimo KreuzerOnly one test is included here now, ihateeh.cxx. This tests object destructor semantics on Windows. Compile the file with usual flag combinations (MSVC) and compare with the output file ihateeh.out.correct. 19*fe36f081STimo Kreuzer 20*fe36f081STimo Kreuzer####SEH 21*fe36f081STimo KreuzerThe main tests in this directory are sehframes.cpp which tests various funclet frames, and xcpt4u.c which is a large collection of SEH torture tests. This last test is one of the main litmus tests used to verify that a compiler supports SEH suffiently to be used in the Windows kernel. Remaining sehxxxx.c tests are particular break outs from xcpt4u.c for ease of debugging. 22*fe36f081STimo Kreuzer 23*fe36f081STimo Kreuzer- Run the runtest.cmd in the seh directory to build the tests with MSVC. 24*fe36f081STimo Kreuzer- Run the clean.cmd to clean up obj/exes left after running the tests. 25*fe36f081STimo Kreuzer 26*fe36f081STimo KreuzerNext Steps 27*fe36f081STimo Kreuzer---------- 28*fe36f081STimo KreuzerMore tests will follow. If there are particular areas where there are questions please open an issue and we'll see if there are tests that can meet the need. 29