0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-20 15:18:33 +00:00
org-mode/testing/examples/ob-C-test.org
2011-11-08 13:44:23 -07:00

999 B

a collection of examples for ob-C tests

Simple tests

  std::cout << 42;
  return 0;
  std::cout << q;
  return 0;
  std::cout << p+q;
  return 0;
  std::cout << q << ' ' << strlen(q);
  return 0;
  std::cout << N;
  return 0;

Array

  for (int i=1; i<3; i++) {
    std::cout << i << '\n';
  }
  return 0;