<div dir="ltr">For such a target-specific calling convention, I would recommending arranging for the test to use a fixed target, instead of whatever the host target is.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 24, 2019 at 7:21 AM Gábor Márton via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I have a commit which breaks a unittest (gtest and not a lit test) on<br>
certain platforms/buildbots: clang-ppc64be-linux,<br>
clang-x64-windows-msvc.<br>
Those platforms do not support the calling conventions used in the test:<br>
```<br>
[==========] 1 test from 1 test case ran. (45 ms total)<br>
[  PASSED  ] 0 tests.<br>
[  FAILED  ] 1 test, listed below:<br>
[  FAILED  ] StructuralEquivalenceFunctionTest.FunctionsWithDifferentCallingConventions<br>
<br>
 1 FAILED TEST<br>
input.cc:1:16: warning: calling convention 'fastcall' ignored for this<br>
target [-Wignored-attributes]<br>
__attribute__((fastcall)) void foo();<br>
               ^<br>
input.cc:1:16: warning: calling convention 'ms_abi' ignored for this<br>
target [-Wignored-attributes]<br>
__attribute__((ms_abi))   void foo();<br>
               ^<br>
```<br>
<br>
Is there a way to disable a unittest on these platforms?<br>
I am thinking about #ifndef ppc and #ifndef windows ... is there such<br>
defines available?<br>
<br>
Many thanks,<br>
Gabor<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>