Skip to content

Instantly share code, notes, and snippets.

@rpearl
Created August 8, 2012 05:38
Show Gist options
  • Save rpearl/3292480 to your computer and use it in GitHub Desktop.
Save rpearl/3292480 to your computer and use it in GitHub Desktop.
Compile with gcc on -O2.
#include <stdio.h>
#include <limits.h>
int foo(int x) {
return (x+1) > x;
}
int main(void) {
printf("%d\n", (INT_MAX+1) > INT_MAX);
printf("%d\n", foo(INT_MAX));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment