gcc/testsuite/gm2/pim/run/pass/minhello.mod
raw| 1 | MODULE minhello ; |
| 2 | |
| 3 | (* This test is useful to test the linking to ensure that the |
| 4 | application module is called after all modules are initialized |
| 5 | even if the application module only imports from a definition |
| 6 | for "C". *) |
| 7 | |
| 8 | FROM libc IMPORT printf ; |
| 9 | |
| 10 | BEGIN |
| 11 | printf ("hello world\n") |
| 12 | END minhello. |