| 1 |
#define MYDEF program |
| 2 |
MYDEF foo |
| 3 |
character(20) :: str |
| 4 |
#ifdef CORRECT |
| 5 |
str = 'Hello, ' // 'world!' |
| 6 |
#else |
| 7 |
str = 'Preprocessing error!' |
| 8 |
#endif |
| 9 |
if (str /= 'Hello, world!') then |
| 10 |
print *, 'Preprocessing failed.' |
| 11 |
error stop 1 |
| 12 |
end if |
| 13 |
stop 0 |
| 14 |
end MYDEF foo |