1REM This is a simple example script to verify that the tests are working on 2REM windows. This script will be superceded by the lit/lnt as they are 3REM migrated to the LLVM test-suite. 4 5REM set FLAGS to the desired optimization level 6set FLAGS=-EHsc -O2 7 8cl %FLAGS% ehframes.cpp 9ehframes.exe > ehframes.tmp 2>&1 10@if NOT ERRORLEVEL 0 echo FAIL ehframes.exe 11diff ehframes.tmp ehframes.out 12@if ERRORLEVEL 1 echo FAIL ehframes.exe with diffs! 13 14cl %FLAGS% ehthrow.cxx 15ehthrow.exe > ehthrow.tmp 2>&1 16@if NOT ERRORLEVEL 0 echo FAIL ehthrow.exe 17diff ehthrow.tmp ehthrow.amd64 18@if ERRORLEVEL 1 echo FAIL ehthrow.exe with diffs! 19 20cl %FLAGS% nesttry.cxx 21nesttry.exe > nesttry.tmp 2>&1 22@if NOT ERRORLEVEL 0 echo FAIL nesttry.exe 23diff nesttry.tmp nesttry.out 24@if ERRORLEVEL 1 echo FAIL nesttry.exe with diffs! 25 26cl %FLAGS% noreturn.cpp 27noreturn.exe 28@if NOT ERRORLEVEL 0 echo FAIL noreturn.exe 29 30cl %FLAGS% recursive_throw.cpp 31recursive_throw.exe > recursive_throw.tmp 2>&1 32@if NOT ERRORLEVEL 0 echo FAIL recursive_throw.exe 33diff recursive_throw.tmp recursive_throw.out 34@if ERRORLEVEL 1 echo FAIL recursive_throw.exe with diffs! 35 36cl %FLAGS% rethrow1.cpp 37rethrow1.exe > rethrow1.tmp 2>&1 38@if NOT ERRORLEVEL 0 echo FAIL rethrow1.exe 39diff rethrow1.tmp rethrow1.out 40@if ERRORLEVEL 1 echo FAIL rethrow1.exe with diffs! 41 42cl %FLAGS% rethrow4.cpp 43rethrow4.exe > rethrow4.tmp 2>&1 44@if NOT ERRORLEVEL 0 echo FAIL rethrow4.exe 45diff rethrow4.tmp rethrow4.out 46@if ERRORLEVEL 1 echo FAIL rethrow4.exe with diffs! 47 48cl %FLAGS% rethrow5.cpp 49rethrow5.exe > rethrow5.tmp 2>&1 50@if NOT ERRORLEVEL 0 echo FAIL rethrow5.exe 51diff rethrow5.tmp rethrow5.out 52@if ERRORLEVEL 1 echo FAIL rethrow5.exe with diffs! 53 54cl %FLAGS% rethrow_unknown.cpp 55rethrow_unknown.exe 56@if NOT ERRORLEVEL 0 echo FAIL rethrow_unknown.exe 57 58cl %FLAGS% terminate.cpp 59terminate.exe > terminate.tmp 2>&1 60@if NOT ERRORLEVEL 0 echo FAIL terminate.exe 61diff terminate.tmp terminate.out 62@if ERRORLEVEL 1 echo FAIL terminate.exe with diffs! 63 64cl %FLAGS% unreachedeh.cpp 65unreachedeh.exe 66@if NOT ERRORLEVEL 0 echo FAIL unreachedeh.exe 67 68cl %FLAGS% vcatch.cpp 69vcatch.exe 70@if NOT ERRORLEVEL 0 echo FAIL vcatch.exe 71 72