main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
653 bytes
|
| Line | |
|---|
| 1 | program test
|
|---|
| 2 | implicit none
|
|---|
| 3 | logical havetobreak
|
|---|
| 4 | integer i,j,jj,k,n
|
|---|
| 5 |
|
|---|
| 6 | n=10
|
|---|
| 7 |
|
|---|
| 8 | i=1
|
|---|
| 9 | do 13 k=1,n
|
|---|
| 10 | if(k .gt. 3) go to 14
|
|---|
| 11 | i=i+1
|
|---|
| 12 | 13 continue
|
|---|
| 13 | 14 continue
|
|---|
| 14 |
|
|---|
| 15 | j=1
|
|---|
| 16 | havetobreak = .false.
|
|---|
| 17 | do k=1,n
|
|---|
| 18 | if(k .gt. 3) then
|
|---|
| 19 | havetobreak = .true.
|
|---|
| 20 | end if
|
|---|
| 21 | if(.not. havetobreak) then
|
|---|
| 22 | j=j+1
|
|---|
| 23 | end if
|
|---|
| 24 | end do
|
|---|
| 25 |
|
|---|
| 26 | jj=1
|
|---|
| 27 | do k=1,n
|
|---|
| 28 | if(k .gt. 3) then
|
|---|
| 29 | exit
|
|---|
| 30 | end if
|
|---|
| 31 | jj=jj+1
|
|---|
| 32 | end do
|
|---|
| 33 | !$ civl $assert(i==4);
|
|---|
| 34 | !$ civl $assert(j==4);
|
|---|
| 35 | !$ civl $assert(jj==4);
|
|---|
| 36 | write(*,*) i, j, jj
|
|---|
| 37 | end program |
|---|
Note:
See
TracBrowser
for help on using the repository browser.