gcc/testsuite/gnat.dg/cpp_constructor.adb
raw| 1 | -- { dg-do compile } |
| 2 | |
| 3 | with Interfaces.C; use Interfaces.C; |
| 4 | with Cpp_Constructor_FP; |
| 5 | with Cpp_Constructor_Useit; |
| 6 | |
| 7 | procedure Cpp_Constructor is |
| 8 | F : Cpp_Constructor_FP.Class := |
| 9 | Cpp_Constructor_FP.Constructor (Cpp_Constructor_Useit.My_Fn'Access); |
| 10 | begin |
| 11 | null; |
| 12 | end Cpp_Constructor; |