I don't think we should have any executable tests in the front end at all. I think the easiest way here would be to check in an input file alongside the test file similar to how the Object tests work (an Inputs directory).<br>
<div><br></div><div>Thoughts?</div><br><div>On Tue Dec 17 2013 at 12:19:59 PM, Justin Bogner <<a href="mailto:mail@justinbogner.com">mail@justinbogner.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Justin Bogner <<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>> writes:<br>
>> +// RUN: %clangxx %s -o %t1 -fprofile-instr-generate<br>
>> +// RUN: mkdir -p %tdir && cd %tdir && %t1<br>
>><br>
>> This is going to fail on any platform that doesn't have native codegen<br>
>> enabled by default.<br>
><br>
> Hmm. Is there a REQUIRES or something I can use to conditionally enable<br>
> them then? I'm guessing if we don't have native codegen I can't do<br>
> something tricky like generate IR and run it with lli or something<br>
> either.<br>
<br>
This seems to be "REQUIRES: native". I'll add that to both tests.<br>
</blockquote>