org-mode/testing/examples/ob-C-test.org

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;