-- addDependentFile examples/golden/functions/fun_attributes_conflict.h -- #include -- signed int hs_bindgen_5d7162df3a16d8d5 ( -- signed int arg1 -- ) -- { -- return square_cp(arg1); -- } -- signed int hs_bindgen_7f240b4e0c2eea24 ( -- signed int arg1 -- ) -- { -- return square_pc(arg1); -- } -- signed int hs_bindgen_d32b50f04af10764 ( -- signed int arg1 -- ) -- { -- return square_cc(arg1); -- } -- signed int hs_bindgen_fab6c9860ff1400b ( -- signed int arg1 -- ) -- { -- return square_pp(arg1); -- } -- signed int hs_bindgen_648d4f0fd0df4c79 ( -- signed int arg1 -- ) -- { -- return square_cp(arg1); -- } -- signed int hs_bindgen_632a1e6eb5ceeda7 ( -- signed int arg1 -- ) -- { -- return square_pc(arg1); -- } -- signed int hs_bindgen_56d75b1ff2482f13 ( -- signed int arg1 -- ) -- { -- return square_cc(arg1); -- } -- signed int hs_bindgen_eac2f9645ef29119 ( -- signed int arg1 -- ) -- { -- return square_pp(arg1); -- } -- /* test_functionsfun_attributes_confl_Example_get_square_cp */ -- __attribute__ ((const)) -- signed int (*hs_bindgen_9445b7269de35e9e (void)) ( -- signed int arg1 -- ) -- { -- return &square_cp; -- } -- /* test_functionsfun_attributes_confl_Example_get_square_pc */ -- __attribute__ ((const)) -- signed int (*hs_bindgen_b0c647124e93645d (void)) ( -- signed int arg1 -- ) -- { -- return &square_pc; -- } -- /* test_functionsfun_attributes_confl_Example_get_square_cc */ -- __attribute__ ((const)) -- signed int (*hs_bindgen_87ee2f018e6d262a (void)) ( -- signed int arg1 -- ) -- { -- return &square_cc; -- } -- /* test_functionsfun_attributes_confl_Example_get_square_pp */ -- __attribute__ ((const)) -- signed int (*hs_bindgen_0f31a17bf5ee4e4f (void)) ( -- signed int arg1 -- ) -- { -- return &square_pp; -- } -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_cp@ foreign import ccall safe "hs_bindgen_5d7162df3a16d8d5" hs_bindgen_5d7162df3a16d8d5_base :: Int32 -> Int32 -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_cp@ hs_bindgen_5d7162df3a16d8d5 :: CInt -> CInt -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_cp@ hs_bindgen_5d7162df3a16d8d5 = fromFFIType hs_bindgen_5d7162df3a16d8d5_base {-| Conflicting attributes on functions for llvm/clang versions 18 and up Examples from https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html __C declaration:__ @square_cp@ __defined at:__ @functions\/fun_attributes_conflict.h 9:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cp :: CInt -> CInt {-| Conflicting attributes on functions for llvm/clang versions 18 and up Examples from https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html __C declaration:__ @square_cp@ __defined at:__ @functions\/fun_attributes_conflict.h 9:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cp = hs_bindgen_5d7162df3a16d8d5 -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_pc@ foreign import ccall safe "hs_bindgen_7f240b4e0c2eea24" hs_bindgen_7f240b4e0c2eea24_base :: Int32 -> Int32 -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_pc@ hs_bindgen_7f240b4e0c2eea24 :: CInt -> CInt -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_pc@ hs_bindgen_7f240b4e0c2eea24 = fromFFIType hs_bindgen_7f240b4e0c2eea24_base {-| __C declaration:__ @square_pc@ __defined at:__ @functions\/fun_attributes_conflict.h 11:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pc :: CInt -> CInt {-| __C declaration:__ @square_pc@ __defined at:__ @functions\/fun_attributes_conflict.h 11:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pc = hs_bindgen_7f240b4e0c2eea24 -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_cc@ foreign import ccall safe "hs_bindgen_d32b50f04af10764" hs_bindgen_d32b50f04af10764_base :: Int32 -> Int32 -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_cc@ hs_bindgen_d32b50f04af10764 :: CInt -> CInt -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_cc@ hs_bindgen_d32b50f04af10764 = fromFFIType hs_bindgen_d32b50f04af10764_base {-| __C declaration:__ @square_cc@ __defined at:__ @functions\/fun_attributes_conflict.h 13:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cc :: CInt -> CInt {-| __C declaration:__ @square_cc@ __defined at:__ @functions\/fun_attributes_conflict.h 13:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cc = hs_bindgen_d32b50f04af10764 -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_pp@ foreign import ccall safe "hs_bindgen_fab6c9860ff1400b" hs_bindgen_fab6c9860ff1400b_base :: Int32 -> IO Int32 -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_pp@ hs_bindgen_fab6c9860ff1400b :: CInt -> IO CInt -- __unique:__ @test_functionsfun_attributes_confl_Example_Safe_square_pp@ hs_bindgen_fab6c9860ff1400b = fromFFIType hs_bindgen_fab6c9860ff1400b_base {-| __C declaration:__ @square_pp@ __defined at:__ @functions\/fun_attributes_conflict.h 15:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pp :: CInt -> IO CInt {-| __C declaration:__ @square_pp@ __defined at:__ @functions\/fun_attributes_conflict.h 15:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pp = hs_bindgen_fab6c9860ff1400b -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_cp@ foreign import ccall unsafe "hs_bindgen_648d4f0fd0df4c79" hs_bindgen_648d4f0fd0df4c79_base :: Int32 -> Int32 -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_cp@ hs_bindgen_648d4f0fd0df4c79 :: CInt -> CInt -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_cp@ hs_bindgen_648d4f0fd0df4c79 = fromFFIType hs_bindgen_648d4f0fd0df4c79_base {-| Conflicting attributes on functions for llvm/clang versions 18 and up Examples from https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html __C declaration:__ @square_cp@ __defined at:__ @functions\/fun_attributes_conflict.h 9:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cp :: CInt -> CInt {-| Conflicting attributes on functions for llvm/clang versions 18 and up Examples from https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html __C declaration:__ @square_cp@ __defined at:__ @functions\/fun_attributes_conflict.h 9:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cp = hs_bindgen_648d4f0fd0df4c79 -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_pc@ foreign import ccall unsafe "hs_bindgen_632a1e6eb5ceeda7" hs_bindgen_632a1e6eb5ceeda7_base :: Int32 -> Int32 -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_pc@ hs_bindgen_632a1e6eb5ceeda7 :: CInt -> CInt -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_pc@ hs_bindgen_632a1e6eb5ceeda7 = fromFFIType hs_bindgen_632a1e6eb5ceeda7_base {-| __C declaration:__ @square_pc@ __defined at:__ @functions\/fun_attributes_conflict.h 11:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pc :: CInt -> CInt {-| __C declaration:__ @square_pc@ __defined at:__ @functions\/fun_attributes_conflict.h 11:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pc = hs_bindgen_632a1e6eb5ceeda7 -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_cc@ foreign import ccall unsafe "hs_bindgen_56d75b1ff2482f13" hs_bindgen_56d75b1ff2482f13_base :: Int32 -> Int32 -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_cc@ hs_bindgen_56d75b1ff2482f13 :: CInt -> CInt -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_cc@ hs_bindgen_56d75b1ff2482f13 = fromFFIType hs_bindgen_56d75b1ff2482f13_base {-| __C declaration:__ @square_cc@ __defined at:__ @functions\/fun_attributes_conflict.h 13:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cc :: CInt -> CInt {-| __C declaration:__ @square_cc@ __defined at:__ @functions\/fun_attributes_conflict.h 13:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cc = hs_bindgen_56d75b1ff2482f13 -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_pp@ foreign import ccall unsafe "hs_bindgen_eac2f9645ef29119" hs_bindgen_eac2f9645ef29119_base :: Int32 -> IO Int32 -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_pp@ hs_bindgen_eac2f9645ef29119 :: CInt -> IO CInt -- __unique:__ @test_functionsfun_attributes_confl_Example_Unsafe_square_pp@ hs_bindgen_eac2f9645ef29119 = fromFFIType hs_bindgen_eac2f9645ef29119_base {-| __C declaration:__ @square_pp@ __defined at:__ @functions\/fun_attributes_conflict.h 15:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pp :: CInt -> IO CInt {-| __C declaration:__ @square_pp@ __defined at:__ @functions\/fun_attributes_conflict.h 15:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pp = hs_bindgen_eac2f9645ef29119 -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_cp@ foreign import ccall unsafe "hs_bindgen_9445b7269de35e9e" hs_bindgen_9445b7269de35e9e_base :: IO (FunPtr Void) -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_cp@ hs_bindgen_9445b7269de35e9e :: IO (FunPtr (CInt -> IO CInt)) -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_cp@ hs_bindgen_9445b7269de35e9e = fromFFIType hs_bindgen_9445b7269de35e9e_base {-# NOINLINE square_cp #-} {-| Conflicting attributes on functions for llvm/clang versions 18 and up Examples from https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html __C declaration:__ @square_cp@ __defined at:__ @functions\/fun_attributes_conflict.h 9:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cp :: FunPtr (CInt -> IO CInt) {-| Conflicting attributes on functions for llvm/clang versions 18 and up Examples from https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html __C declaration:__ @square_cp@ __defined at:__ @functions\/fun_attributes_conflict.h 9:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cp = unsafePerformIO hs_bindgen_9445b7269de35e9e -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_pc@ foreign import ccall unsafe "hs_bindgen_b0c647124e93645d" hs_bindgen_b0c647124e93645d_base :: IO (FunPtr Void) -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_pc@ hs_bindgen_b0c647124e93645d :: IO (FunPtr (CInt -> IO CInt)) -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_pc@ hs_bindgen_b0c647124e93645d = fromFFIType hs_bindgen_b0c647124e93645d_base {-# NOINLINE square_pc #-} {-| __C declaration:__ @square_pc@ __defined at:__ @functions\/fun_attributes_conflict.h 11:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pc :: FunPtr (CInt -> IO CInt) {-| __C declaration:__ @square_pc@ __defined at:__ @functions\/fun_attributes_conflict.h 11:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pc = unsafePerformIO hs_bindgen_b0c647124e93645d -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_cc@ foreign import ccall unsafe "hs_bindgen_87ee2f018e6d262a" hs_bindgen_87ee2f018e6d262a_base :: IO (FunPtr Void) -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_cc@ hs_bindgen_87ee2f018e6d262a :: IO (FunPtr (CInt -> IO CInt)) -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_cc@ hs_bindgen_87ee2f018e6d262a = fromFFIType hs_bindgen_87ee2f018e6d262a_base {-# NOINLINE square_cc #-} {-| __C declaration:__ @square_cc@ __defined at:__ @functions\/fun_attributes_conflict.h 13:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cc :: FunPtr (CInt -> IO CInt) {-| __C declaration:__ @square_cc@ __defined at:__ @functions\/fun_attributes_conflict.h 13:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_cc = unsafePerformIO hs_bindgen_87ee2f018e6d262a -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_pp@ foreign import ccall unsafe "hs_bindgen_0f31a17bf5ee4e4f" hs_bindgen_0f31a17bf5ee4e4f_base :: IO (FunPtr Void) -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_pp@ hs_bindgen_0f31a17bf5ee4e4f :: IO (FunPtr (CInt -> IO CInt)) -- __unique:__ @test_functionsfun_attributes_confl_Example_get_square_pp@ hs_bindgen_0f31a17bf5ee4e4f = fromFFIType hs_bindgen_0f31a17bf5ee4e4f_base {-# NOINLINE square_pp #-} {-| __C declaration:__ @square_pp@ __defined at:__ @functions\/fun_attributes_conflict.h 15:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pp :: FunPtr (CInt -> IO CInt) {-| __C declaration:__ @square_pp@ __defined at:__ @functions\/fun_attributes_conflict.h 15:5@ __exported by:__ @functions\/fun_attributes_conflict.h@ -} square_pp = unsafePerformIO hs_bindgen_0f31a17bf5ee4e4f