compiler: give error for non-int arguments to make
[official-gcc.git] / gcc / testsuite / gnat.dg / cond_expr1.adb
blobe1a87a36ab533c32e0169520f43386b16224cbef
1 -- { dg-do compile }
2 -- { dg-options "-gnat12" }
4 function Cond_Expr1 (Dir : in String) return String is
5 begin
6 return (if Dir (Dir'Last) = '\' then Dir else Dir & '\');
7 end;