<div dir="ltr">Hmm, I'm not sure, I cargo-culted the le32 test and didn't think about the non-hermeticity, but this does seem like a bad issue that I should fix.<div><br></div><div>The test needs va_list, size_t and ptrdiff_t. Should I try to include clang's headers directly? They use include_next so they will pull in the default headers if I don't prevent them from doing so.</div><div><br></div><div>I'd obviously fix the le32 test (and any other in this directory). What do you recommend?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 5:37 PM, Nick Lewycky <span dir="ltr"><<a href="mailto:nlewycky@google.com" target="_blank">nlewycky@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div class="h5"><div class="gmail_quote">On 12 September 2014 15:53, Nick Lewycky <span dir="ltr"><<a href="mailto:nlewycky@google.com" target="_blank">nlewycky@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span><div class="gmail_quote">On 12 September 2014 10:52, JF Bastien <span dir="ltr"><<a href="mailto:jfb@google.com" target="_blank">jfb@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="overflow:hidden">--- cfe/trunk/test/Driver/<span>le64</span>-<span>unknown</span>-<span>unknown</span>.<span>cpp</span> (added)<br>
+++ cfe/trunk/test/Driver/<span>le64</span>-<span>unknown</span>-<span>unknown</span>.<span>cpp</span> Fri Sep 12 12:52:47 2014<br>
@@ -0,0 +1,137 @@<br>
+// RUN: %clang -target <span>le64</span>-<span>unknown</span>-nacl -### %s -emit-llvm-only -c 2>&1 | FileCheck %s -check-prefix=ECHO<br>
+// RUN: %clang -target <span>le64</span>-<span>unknown</span>-nacl %s -emit-llvm -S -c -o - | FileCheck %s<br>
+<br>
+// ECHO: {{.*}} "-cc1" {{.*}}<span>le64</span>-<span>unknown</span>-<span>unknown</span>.c<br>
+<br>
+// Check platform defines<br>
+#include <stdarg.h><br>
+#include <stddef.h><br></div></blockquote></div><br></span>This test is non-hermetic. Please test only the driver's behaviour in a driver test.</div></div>
</blockquote></div><div class="gmail_extra"><br></div></div></div>... or is it? We have our own stdarg.h and stddef.h in lib/Headers? Does this use those?</div></div>
</blockquote></div><br></div>