Commit f35688c9 by Arnaud Charlet Committed by Pierre-Marie de Rodat

[Ada] Add an annotation for static analysis

2019-07-10  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

	* sfn_scan.adb (Scan_SFN_Pragmas): Add pragma Assert.

From-SVN: r273342
parent 9a5245da
2019-07-10 Arnaud Charlet <charlet@adacore.com>
* sfn_scan.adb (Scan_SFN_Pragmas): Add pragma Assert.
2019-07-10 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch3.adb (Check_Nonoverridable_Aspects): Correct the
......
......@@ -607,6 +607,7 @@ package body SFN_Scan is
exception
when others =>
pragma Assert (P'Valid);
Cursor := P - S'First + 1;
raise;
end Scan_SFN_Pragmas;
......
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