This patch will make almost all of the regression test suite free standing w.r.t. system headers. I don't think it harms any of the tests, the changes seem entirely orthogonal to what is actually being tested. The only tests which still fail (I'm testing this by artificially setting a sysroot of /dev/null) are:<div>
<br></div><div><div>    Clang :: PCH/cxx-typeid.cpp</div><div>    Clang :: Sema/return.c</div><div>    Clang :: SemaTemplate/example-dynarray.cpp</div></div><div><br></div><div>These tests have really questionable design. 'cxx-typeid' just includes <typeinfo>. I have no idea how this is a good test, but there aren't any comments really explaining matters.</div>
<div><br></div><div>example-dynarray.cpp is actually a test program in disguise. I'd propose deleting it, and if Doug really wants it, we can add it to llvm-tests.</div><div><br></div><div>return.c uses longjmp. I punted here, but I'm also happy to embed the necessary bits directly into the test if that's a better pattern.</div>