Skip to content

Instantly share code, notes, and snippets.

@datafatmunger
Created July 30, 2011 14:44
Show Gist options
  • Save datafatmunger/1115594 to your computer and use it in GitHub Desktop.
Save datafatmunger/1115594 to your computer and use it in GitHub Desktop.
clang why you so noisy?!??!
#include <stdio.h>
int main() {
int i = 0;
if(++i) {
printf("1\n");
}
if(i = 1) {
printf("2\n");
}
i = 0;
if(i += 1) {
printf("3\n");
}
if(i == 1) {
printf("4\n");
}
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment