Advertisement
Guest User

Untitled

a guest
Jun 13th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. /* ------------------------- DO NOT EDIT! --------------------------------- */
  2. /* WARNING: This file is generated automatically by LINC from the source */
  3. /* file /Users/pjb/src/public/lisp/languages/linc/test-statements.sexpc */
  4. /* ------------------------- DO NOT EDIT! --------------------------------- */
  5.  
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. int main(int argc, char** argv)
  9. {
  10. int temp_i18 = 0;
  11. int i = temp_i18;
  12. while(i < 10){
  13. goto start1;
  14. i += 2;
  15. start1:
  16. ++i;
  17. printf("i = %d\n", i);
  18. if(5 < i)
  19. break;
  20. else
  21. continue;
  22. printf("Never printed!\n");
  23. }
  24. i = 0;
  25. do{
  26. goto start2;
  27. i += 2;
  28. start2:
  29. ++i;
  30. printf("i = %d\n", i);
  31. if(5 < i)
  32. break;
  33. else
  34. continue;
  35. printf("Never printed!\n");
  36. }while(i < 10);
  37. i = 0;
  38. for(i = 0;i < 10;++i){
  39. switch(i){
  40. case 0:{
  41. printf("Zero\n");
  42. break;
  43. }
  44. case (1 + 1):{
  45. printf("Two\n");
  46. break;
  47. }
  48. default:{
  49. break;
  50. }
  51. }
  52. if(0 == i % 3)
  53. i += 2;
  54. else
  55. i += 3;
  56. }
  57. return 0;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement