source:
vendors/test/repos/add_subroutine/hello.F90.add_lines
@
10669
Last change on this file since 10669 was 10669, checked in by nicolasmartin, 5 years ago | |
---|---|
File size: 513 bytes |
Line | |
---|---|
1 | PROGRAM Hello |
2 | |
3 | #if !defined(LOCAL_STRING) |
4 | USE Hello_Constants, ONLY: hello_string |
5 | #endif |
6 | |
7 | IMPLICIT NONE |
8 | |
9 | #if defined(LOCAL_STRING) |
10 | CHARACTER (LEN=80), PARAMETER :: hello_string = 'Hello Mother Earth!' |
11 | #endif |
12 | |
13 | INTEGER :: integer_arg = 1234 |
14 | |
15 | #if defined(CALL_HELLO_SUB) |
16 | INCLUDE 'hello_sub.interface' |
17 | #endif |
18 | |
19 | ! Just a comment line |
20 | |
21 | CHARACTER (LEN=*), PARAMETER :: this = 'Hello' |
22 | |
23 | WRITE (*, '(A)') this // ': ' // TRIM (hello_string) |
24 | #if defined(CALL_HELLO_SUB) |
25 | CALL Hello_Sub (integer_arg) |
26 | #endif |
27 | |
28 | END PROGRAM Hello |
Note: See TracBrowser
for help on using the repository browser.