source:
CIVL/examples/fortran/smack/pointer_fail.f90@
22f2e8e
| Last change on this file since 22f2e8e was e3f356c, checked in by , 5 years ago | |
|---|---|
|
|
| File size: 174 bytes | |
| Rev | Line | |
|---|---|---|
| [e3f356c] | 1 | ! @expect error |
| 2 | ||
| 3 | program main | |
| 4 | implicit none | |
| 5 | integer, pointer :: box | |
| 6 | integer, target :: x = 3 | |
| 7 | box => x | |
| 8 | !print *, box == 3 | |
| 9 | !$CVL $assert(box /= 3) | |
| 10 | end program main |
Note:
See TracBrowser
for help on using the repository browser.
