Commit c92d7721 by Arnaud Charlet Committed by Arnaud Charlet

* gnat.dg/div_no_warning.adb: New test.

From-SVN: r139311
parent fe5dbc2c
2008-08-20 Arnaud Charlet <charlet@adacore.com>
* gnat.dg/div_no_warning.adb: New test.
2008-08-20 H.J. Lu <hongjiu.lu@intel.com> 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
PR target/37169 PR target/37169
......
-- { dg-do compile }
procedure div_no_warning is
Flag : constant Boolean := False;
Var : Boolean := True;
function F return Boolean is
begin
return Var;
end F;
Int : Integer := 0;
begin
if Flag and then F then
Int := Int / 0;
end if;
end div_no_warning;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment