-- addDependentFile examples/golden/attributes/asm.h -- #include -- 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 :: Int32 -> Int32 -> IO Int32 -- __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 = fromFFIType hs_bindgen_369133049bfc1e73_base {-| __C declaration:__ @asm_labeled_function@ __defined at:__ @attributes\/asm.h 4:5@ __exported by:__ @attributes\/asm.h@ -} asm_labeled_function :: CInt -> CInt -> IO CInt {-| __C declaration:__ @asm_labeled_function@ __defined at:__ @attributes\/asm.h 4:5@ __exported by:__ @attributes\/asm.h@ -} asm_labeled_function = hs_bindgen_369133049bfc1e73 -- __unique:__ @test_attributesasm_Example_Unsafe_asm_labeled_function@ foreign import ccall unsafe "hs_bindgen_3ad6c287a2386382" hs_bindgen_3ad6c287a2386382_base :: Int32 -> Int32 -> IO Int32 -- __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 = fromFFIType hs_bindgen_3ad6c287a2386382_base {-| __C declaration:__ @asm_labeled_function@ __defined at:__ @attributes\/asm.h 4:5@ __exported by:__ @attributes\/asm.h@ -} asm_labeled_function :: CInt -> CInt -> IO CInt {-| __C declaration:__ @asm_labeled_function@ __defined at:__ @attributes\/asm.h 4:5@ __exported by:__ @attributes\/asm.h@ -} asm_labeled_function = 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 = fromFFIType hs_bindgen_4f7c4fceed28f171_base {-# NOINLINE asm_labeled_function #-} {-| __C declaration:__ @asm_labeled_function@ __defined at:__ @attributes\/asm.h 4:5@ __exported by:__ @attributes\/asm.h@ -} asm_labeled_function :: 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 = 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 = 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