On Wed, Mar 23, 2016 at 3:54 PM, Joe Groff <jgr...@apple.com> wrote: > > > On Mar 23, 2016, at 2:25 PM, Saleem Abdulrasool via swift-dev < > swift-dev@swift.org> wrote: > > > > Hi, > > > > 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. > > > > Inputs/abi.h: > > > > float fp32_call(void); > > double fp64_call(void); > > long double fp80_call(void); > > > > Inputs/module.map: > > > > module abi { > > header "abi.h" > > } > > > > test.swift: > > > > %swift -I Inputs -parse %s > > import abi > > > > @inline(never) > > func blackhole<T>(t : T) { } > > > > func test_floating_point() { > > } > > > > Thanks! > > 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.
Yeah, I figured that out later thanks to the pointer that Alex provided. > > -Joe > > -- Saleem Abdulrasool compnerd (at) compnerd (dot) org
_______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev