source:
CIVL/examples/fortran/smack/compound.f90@
3d3af8f
| Last change on this file since 3d3af8f was e3f356c, checked in by , 5 years ago | |
|---|---|
|
|
| File size: 246 bytes | |
| Rev | Line | |
|---|---|---|
| [e3f356c] | 1 | ! @expect verified |
| 2 | ||
| 3 | program main | |
| 4 | implicit none | |
| 5 | type Location | |
| 6 | integer x | |
| 7 | integer y | |
| 8 | end type Location | |
| 9 | ||
| 10 | type(Location) :: p | |
| 11 | p = Location(2,3) | |
| 12 | !print *, p%x == 3 | |
| 13 | !$CVL $assert(p%x == 2) | |
| 14 | !$CVL $assert(p%y == 3) | |
| 15 | end program main |
Note:
See TracBrowser
for help on using the repository browser.
