Files
gprbuild/examples/ada_cpp/src2/animals_interfaces.ads
Javier Miranda 8948a40f64 Filing variant of the original example which moves
the declaration of the interfaces to a separate new
package. Required to compile the example with 6.3.2
For JA06-004


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@166279 936e1b1b-40f2-da11-902a-00137254ae57
2010-10-24 22:23:12 +00:00

11 lines
423 B
Ada

with Interfaces.C.Strings; use Interfaces.C.Strings;
package Animals_Interfaces is
type Carnivore is limited interface;
function Number_Of_Teeth (X : Carnivore) return Natural is abstract;
pragma Convention (CPP, Number_Of_Teeth); -- Required by AI-430
type Domestic is limited interface;
procedure Set_Owner (X : in out Domestic; Name : Chars_Ptr) is abstract;
pragma Convention (CPP, Set_Owner);
end;