2 -- { dg-options "-O -gnatn -fdump-tree-optimized" }
6 function Read
return Mode
is
11 -- There should be a single call to Value_Enumeration_Pos after inlining
13 if Mode
'Valid_Value (S
) then
22 function Translate
(S
: String) return Mode
is
26 -- There should be a single call to Value_Enumeration_Pos after inlining
28 if Mode
'Valid_Value (S
) then
39 -- { dg-final { scan-tree-dump-times ".value_enumeration_pos" 2 "optimized" } }