/ m-music-language/src/tests/test_func.m
http://m-music-language.googlecode.com/ · Objective C · 24 lines · 19 code · 4 blank · 1 comment · 0 complexity · a6be9c62c0358f8b174ca161558d069b MD5 · raw file
- /* Testing the function capability in m. */
-
- int const( )
- {
- return 0;
- }
-
- void prnt( int a, int b )
- {
- print(a);
- print(b);
- }
-
- int plus( int a, int b )
- {
- return a + b;
- }
-
- void main()
- {
- print(const());
- prnt( 1, 2 );
- print(plus( 1, 2 ));
- }