source:
CIVL/examples/fortran/badExamples/badIndexOutOfBound.f@
aaa9c8d
| Last change on this file since aaa9c8d was 3e4df15, checked in by , 10 years ago | |
|---|---|
|
|
| File size: 193 bytes | |
| Rev | Line | |
|---|---|---|
| [b7a3ce6] | 1 | PROGRAM TEST |
| 2 | INTEGER N | |
| 3 | PARAMETER (N=10) | |
| 4 | REAL ARRAY(N) !The index of ARRAY should from 1 to 10. | |
| [3e4df15] | 5 | ARRAY(11) = 1.0 !It uses an index out of the bound. |
| [b7a3ce6] | 6 | END |
| 7 |
Note:
See TracBrowser
for help on using the repository browser.
