title: c code is inexplicably skipping lines
body: <p>When I compile this small program for some reason the "printf("done")" line is not executing and I cannot figure out why. There was originally an if block before my print statement and that also was not executing. I tried running it through gdb and stepping through it. It found the line but it did not execute it. I am trying to compile it using gcc 4.7.2 and I'm using gedit 3.4.2 as my text editor.</p>
  
  <p>Here is the command I'm using to compile it.</p>
  
  <pre><code>gcc teststuff.c -o test
  </code></pre>
  
  <p>And here is the code</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void testmethod()
  {
  
     int sign = 1;
     printf("hello\n");
     printf("%d\n",sign);
  
  
     printf("done");
  }
  
  main(void)
  {
     testmethod();
     return 0;
  }
  </code></pre>
  
  <p>Anybody have any ideas why it is skipping that part of the code? Thanks!</p>