<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">We define intptr_t as a signed long unless the target overrides it.<br>
I attached a small untested patch that corrects it for Win64.<br></blockquote><div><br>That patch worked.<br><br>These tests should also use intptr_t:<br><br>Clang::CodeGenCXX/reinterpret-cast.cpp (562 of 1789)<br>Clang::SemaCXX/cstyle-cast.cpp (1329 of 1789)<br>
Clang::SemaCXX/functional-cast.cpp (1363 of 1789)<br><br>And this test fails for what is probably a similar reason, it should be a unsigned long long, I think.<br><br>********************<br>FAIL: Clang::Parser/MicrosoftExtensions.c (827 of 1789)<br>
******************** TEST 'Clang::Parser/MicrosoftExtensions.c' FAILED ********************<br>Script:<br>--<br>D:/acharles/llvm/x64-build/bin/Debug/clang-cc.exe -fsyntax-only -verify -fms-extensions -x=objective-c++ D:\acharles\llv<br>
m\src\tools\clang\test\Parser\MicrosoftExtensions.c<br>--<br>Exit Code: 1<br>Command Output (stdout):<br>--<br>Command 0: "D:/acharles/llvm/x64-build/bin/Debug/clang-cc.exe" "-fsyntax-only" "-verify" "-fms-extensions" "-x=objective<br>
-c++" "D:\acharles\llvm\src\tools\clang\test\Parser\MicrosoftExtensions.c"<br>Command 0 Result: 1<br>Command 0 Output:<br><br><br>Command 0 Stderr:<br>error: 'error' diagnostics seen but not expected:<br>
Line 12: cast from pointer to smaller type 'ULONG_PTR' (aka 'unsigned long') loses information<br>2 diagnostics generated.<br><br><br>--<br>Command Output (stderr):<br>--<br>--<br><br><br>On a slightly unrelated note, is varargs (C style) supposed to work? It seems that every test involving them crashes with a null pointer deference.<br>
</div></div>