Ticket #47049: btest.f90
| File btest.f90, 300 bytes (added by basmac, 11 years ago) |
|---|
| Line | |
|---|---|
| 1 | ! Compile command for gfortran, to test backtrace: |
| 2 | ! gfortran -g -O0 -fbacktrace -ffpe-trap=zero btest.f90 |
| 3 | |
| 4 | implicit none |
| 5 | real x, y, z |
| 6 | |
| 7 | print *, 'Start program.' |
| 8 | x = 3.0 |
| 9 | y = 0.0 |
| 10 | |
| 11 | print *, 'Divide by zero.' |
| 12 | z = x / y |
| 13 | |
| 14 | print *, 'Print result.' |
| 15 | print *, ' Result "z" = ', z |
| 16 | |
| 17 | print *, 'Normal end.' |
| 18 | end |
