c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / predicate2.ads
blob4e918f93250040668cc6a4738f36d09dde03e106
1 package Predicate2 is
3 type Optional_Name_Type is new String;
5 subtype Name_Type is Optional_Name_Type
6 with Dynamic_Predicate => Name_Type'Length > 0;
7 -- A non case sensitive name
9 subtype Value_Type is String;
11 overriding function "=" (Left, Right : Optional_Name_Type) return Boolean;
12 overriding function "<" (Left, Right : Optional_Name_Type) return Boolean;
14 end Predicate2;