hs-bindgen-1.0.0.0: test-artefacts/fixtures/attributes/asm/th.txt
-- addDependentFile test-artefacts/headers/golden/attributes/asm.h
-- #include <attributes/asm.h>
-- signed int hs_bindgen_369133049bfc1e73 (
-- signed int arg1,
-- signed int arg2
-- )
-- {
-- return (asm_labeled_function)(arg1, arg2);
-- }
-- signed int hs_bindgen_3ad6c287a2386382 (
-- signed int arg1,
-- signed int arg2
-- )
-- {
-- return (asm_labeled_function)(arg1, arg2);
-- }
-- /* test_attributesasm_Example_get_asm_labeled_function */
-- __attribute__ ((const))
-- signed int (*hs_bindgen_4f7c4fceed28f171 (void)) (
-- signed int arg1,
-- signed int arg2
-- )
-- {
-- return &asm_labeled_function;
-- }
-- /* test_attributesasm_Example_get_asm_labeled_variable */
-- __attribute__ ((const))
-- signed int *hs_bindgen_e637e98af1313f88 (void)
-- {
-- return &asm_labeled_variable;
-- }
-- __unique:__ @test_attributesasm_Example_Safe_asm_labeled_function@
foreign import ccall safe "hs_bindgen_369133049bfc1e73" hs_bindgen_369133049bfc1e73_base ::
CInt
-> CInt
-> IO CInt
-- __unique:__ @test_attributesasm_Example_Safe_asm_labeled_function@
hs_bindgen_369133049bfc1e73 :: CInt -> CInt -> IO CInt
-- __unique:__ @test_attributesasm_Example_Safe_asm_labeled_function@
hs_bindgen_369133049bfc1e73 = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_369133049bfc1e73_base (toFFIType x_0) (toFFIType x_1))
{-| __C declaration:__ @asm_labeled_function@
__defined at:__ @attributes\/asm.h 4:5@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_function_safe :: CInt -> CInt -> IO CInt
{-| __C declaration:__ @asm_labeled_function@
__defined at:__ @attributes\/asm.h 4:5@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_function_safe = hs_bindgen_369133049bfc1e73
-- __unique:__ @test_attributesasm_Example_Unsafe_asm_labeled_function@
foreign import ccall unsafe "hs_bindgen_3ad6c287a2386382" hs_bindgen_3ad6c287a2386382_base ::
CInt
-> CInt
-> IO CInt
-- __unique:__ @test_attributesasm_Example_Unsafe_asm_labeled_function@
hs_bindgen_3ad6c287a2386382 :: CInt -> CInt -> IO CInt
-- __unique:__ @test_attributesasm_Example_Unsafe_asm_labeled_function@
hs_bindgen_3ad6c287a2386382 = \x_0 -> \x_1 -> fmap fromFFIType (hs_bindgen_3ad6c287a2386382_base (toFFIType x_0) (toFFIType x_1))
{-| __C declaration:__ @asm_labeled_function@
__defined at:__ @attributes\/asm.h 4:5@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_function_unsafe :: CInt -> CInt -> IO CInt
{-| __C declaration:__ @asm_labeled_function@
__defined at:__ @attributes\/asm.h 4:5@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_function_unsafe = hs_bindgen_3ad6c287a2386382
-- __unique:__ @test_attributesasm_Example_get_asm_labeled_function@
foreign import ccall unsafe "hs_bindgen_4f7c4fceed28f171" hs_bindgen_4f7c4fceed28f171_base ::
IO (FunPtr Void)
-- __unique:__ @test_attributesasm_Example_get_asm_labeled_function@
hs_bindgen_4f7c4fceed28f171 :: IO (FunPtr (CInt ->
CInt -> IO CInt))
-- __unique:__ @test_attributesasm_Example_get_asm_labeled_function@
hs_bindgen_4f7c4fceed28f171 = fmap fromFFIType hs_bindgen_4f7c4fceed28f171_base
{-# NOINLINE asm_labeled_function_funptr #-}
{-| __C declaration:__ @asm_labeled_function@
__defined at:__ @attributes\/asm.h 4:5@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_function_funptr :: FunPtr (CInt -> CInt -> IO CInt)
{-| __C declaration:__ @asm_labeled_function@
__defined at:__ @attributes\/asm.h 4:5@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_function_funptr = unsafePerformIO hs_bindgen_4f7c4fceed28f171
-- __unique:__ @test_attributesasm_Example_get_asm_labeled_variable@
foreign import ccall unsafe "hs_bindgen_e637e98af1313f88" hs_bindgen_e637e98af1313f88_base ::
IO (Ptr Void)
-- __unique:__ @test_attributesasm_Example_get_asm_labeled_variable@
hs_bindgen_e637e98af1313f88 :: IO (Ptr CInt)
-- __unique:__ @test_attributesasm_Example_get_asm_labeled_variable@
hs_bindgen_e637e98af1313f88 = fmap fromFFIType hs_bindgen_e637e98af1313f88_base
{-# NOINLINE asm_labeled_variable #-}
{-| __C declaration:__ @asm_labeled_variable@
__defined at:__ @attributes\/asm.h 2:12@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_variable :: Ptr CInt
{-| __C declaration:__ @asm_labeled_variable@
__defined at:__ @attributes\/asm.h 2:12@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_variable = unsafePerformIO hs_bindgen_e637e98af1313f88