Starting loki programming guide

This commit is contained in:
2016-08-07 14:42:10 -07:00
parent fcec176008
commit 95a6777ebd
5 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#include <stdio.h>
int main()
{
int i;
for (i = 0; i < 10; i++); // The bug is this extra semicolon
printf("Counter is now %i\n",i);
return 0;
}
// Should (wrongfully) only print out "Counter is now 10"
// Note that GCC does not report an error. Clang reports the error.