bug1.c

Go to the documentation of this file.
00001 /* bug 1 */
00002 
00003 static int foo(void)
00004 {
00005 #ifndef FOO /* changing this to #ifdef makes the bug disappear */
00006   return 0;
00007 #else
00008   return 1;
00009 #endif
00010 }
00011 
00012 /* bug: the line number for this function is -1 off (at this comment) */
00013 static int bar(void)
00014 {
00015   return foo();
00016 }

Generated on Tue Jan 29 13:35:42 2008 for LineNumberBugs by  doxygen 1.5.4