source:
CIVL/mods/dev.civl.com/examples/fortran/smack/compound_fail.f90@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 243 bytes | |
| Line | |
|---|---|
| 1 | ! @expect error |
| 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.
