/ 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

  1. /* Testing the function capability in m. */
  2. int const( )
  3. {
  4. return 0;
  5. }
  6. void prnt( int a, int b )
  7. {
  8. print(a);
  9. print(b);
  10. }
  11. int plus( int a, int b )
  12. {
  13. return a + b;
  14. }
  15. void main()
  16. {
  17. print(const());
  18. prnt( 1, 2 );
  19. print(plus( 1, 2 ));
  20. }