Skip to content

Instantly share code, notes, and snippets.

@jamboree
Created September 20, 2014 07:41
Show Gist options
  • Save jamboree/089b1f3d5a1b2dee05ae to your computer and use it in GitHub Desktop.
Save jamboree/089b1f3d5a1b2dee05ae to your computer and use it in GitHub Desktop.
#include <iostream>
__attribute__((noinline)) bool is_upward_test(char* a)
{
char b[32];
return a < b;
}
bool is_upward()
{
char a[32];
return is_upward_test(a);
}
int main(int argc, char** argv) {
std::cout << is_upward();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment