defer_test.cpp 231 B

12345678910111213141516171819
  1. #include <stdio.h>
  2. #include "hscope.h"
  3. int main() {
  4. defer (
  5. printf("1\n");
  6. printf("2\n");
  7. )
  8. defer (
  9. printf("3\n");
  10. printf("4\n");
  11. )
  12. defer(printf("hello\n");)
  13. return 0;
  14. }