gcc/testsuite/gnat.dg/assert2.ads
raw| 1 | package Assert2 |
| 2 | with SPARK_Mode |
| 3 | is |
| 4 | type Living is new Integer; |
| 5 | function Is_Martian (Unused : Living) return Boolean is (False); |
| 6 | |
| 7 | function Is_Green (Unused : Living) return Boolean is (True); |
| 8 | |
| 9 | pragma Assert |
| 10 | (for all M in Living => (if Is_Martian (M) then Is_Green (M))); |
| 11 | pragma Assert |
| 12 | (for all M in Living => (if Is_Martian (M) then not Is_Green (M))); |
| 13 | |
| 14 | procedure Dummy; |
| 15 | end Assert2; |