Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/cpp_constructor_fp.ads @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
with Interfaces.C; use Interfaces.C; package Cpp_Constructor_FP is type Class is limited record null; end record with Convention => Cpp, Import; function Constructor (Fn : access function (Val : int) return int) return Class; pragma Cpp_Constructor (Constructor, External_Name => "foo"); end Cpp_Constructor_FP;