<div dir="ltr">On Wed, Mar 23, 2016 at 3:54 PM, Joe Groff <span dir="ltr"><<a href="mailto:jgroff@apple.com" target="_blank">jgroff@apple.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Mar 23, 2016, at 2:25 PM, Saleem Abdulrasool via swift-dev <<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I was looking at an ABI related issue on Windows. In trying to construct a test case, it seems that I am unable to import a declaration using a long double into swift. I was wondering if there is something about long double usage in swift that I am unaware of.<br>
><br>
> Inputs/abi.h:<br>
><br>
> float fp32_call(void);<br>
> double fp64_call(void);<br>
> long double fp80_call(void);<br>
><br>
> Inputs/module.map:<br>
><br>
> module abi {<br>
> header "abi.h"<br>
> }<br>
><br>
> test.swift:<br>
><br>
> %swift -I Inputs -parse %s<br>
> import abi<br>
><br>
> @inline(never)<br>
> func blackhole<T>(t : T) { }<br>
><br>
> func test_floating_point() {<br>
> }<br>
><br>
> Thanks!<br>
<br>
</span>For better or worse, the failure mode for unsupported C declarations in the Clang importer is just to discard them. It sounds like we didn't add support for long double imports.</blockquote><div><br></div><div>Yeah, I figured that out later thanks to the pointer that Alex provided.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
-Joe<br>
<br>
</font></span></blockquote></div><br>-- <br><div class="gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div>
</div></div>