| 1 |
-- { dg-do compile } |
| 2 |
|
| 3 |
with Equal7_Pkg; use Equal7_Pkg; |
| 4 |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; |
| 5 |
procedure Equal7 is |
| 6 |
X : constant Integer := 42; |
| 7 |
|
| 8 |
begin |
| 9 |
if F (X) /= "" & ASCII.LF then |
| 10 |
null; |
| 11 |
end if; |
| 12 |
if not (F (X) = "" & ASCII.LF) then |
| 13 |
null; |
| 14 |
end if; |
| 15 |
end; |
| 16 |
|
| 17 |
-- { dg-error "ambiguous expression \\(cannot resolve \"/=\"\\)" "" { target *-*-* } 9 } |
| 18 |
-- { dg-error "possible interpretation at a-strunb.ads:\\d+" "" { target *-*-* } 9 } |
| 19 |
-- { dg-error "possible interpretation in package Standard" "" { target *-*-* } 9 } |
| 20 |
|
| 21 |
-- { dg-error "ambiguous expression \\(cannot resolve \"=\"\\)" "" { target *-*-* } 12 } |
| 22 |
-- { dg-error "possible interpretation at a-strunb.ads:\\d+" "" { target *-*-* } 12 } |
| 23 |
-- { dg-error "possible interpretation in package Standard" "" { target *-*-* } 12 } |