sampleProg.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (C) 2020, 2019, 2018, 2017 Girish M
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation; either version 3 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, write to the Free Software
  15. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  16. * MA 02110-1301, USA.
  17. *
  18. */
  19. /*Sample c program used to test cs1713-day4-prog2.o*/
  20. #include "common.h"
  21. int main(void)
  22. {
  23. auto int i=0;
  24. for(i=0; i<100; i++)
  25. {
  26. static int j=9;
  27. switch(j)
  28. {
  29. case 9:
  30. break;
  31. default:
  32. exit(0);
  33. }
  34. }
  35. return 0;
  36. }