1. procedure Test is
  2.  
  3. function Add_Int(A, B: Integer) return Integer;
  4. pragma Import (C, Add_Int, "add_integer");
  5.  
  6. A, B, C : Integer;
  7.  
  8. begin
  9.  
  10. A := 1;
  11. B := 2;
  12. C := 0;
  13.  
  14. C := Add_Int(A,B);
  15.  
  16. if C = (A+B) then
  17. Text_Io.Put_Line("Add successful");
  18. else
  19. Text_Io.Put_Line("Add failed");
  20. end if;
  21.  
  22. end Test;
  23.