gcc/testsuite/gnat.dg/cpp_constructor_fp.ads
raw| 1 | with Interfaces.C; use Interfaces.C; |
| 2 | |
| 3 | package Cpp_Constructor_FP is |
| 4 | type Class is limited record null; end record |
| 5 | with Convention => Cpp, Import; |
| 6 | |
| 7 | function Constructor |
| 8 | (Fn : access function (Val : int) return int) return Class; |
| 9 | pragma Cpp_Constructor (Constructor, External_Name => "foo"); |
| 10 | end Cpp_Constructor_FP; |