4 #include "memcheck/memcheck.h"
6 // this non-text symbol is required to trigger ada demangling
7 const char* __gnat_ada_main_program_name
= "some string";
9 // the functions are transcribed from symbols in an
10 // Ada hello world using a package
11 void system__file_io__write_buf(char* m
)
19 void ada__text_io__put_line(char *m
)
21 system__file_io__write_buf(m
);
24 void bad_print__uninit_print(char *m
)
26 ada__text_io__put_line(m
);
29 void _ada_main(char* m
)
31 bad_print__uninit_print(m
);
36 char* HW
= strdup("Hello, world!\n");
37 VALGRIND_MAKE_MEM_UNDEFINED(HW
+4, 1);