Commit a8b2400f authored by Brad King's avatar Brad King

BUG#502: Do not let optimizing compilers think the symbol exists. Require the...

BUG#502: Do not let optimizing compilers think the symbol exists.  Require the symbol by making the return value depend on it to force linking.
parent 71b57bc4
......@@ -9,10 +9,8 @@ int main(){
#else
int main(int ac, char*av[]){
#endif
int* p;
p = &CHECK_VARIABLE_EXISTS;
if(ac > 1000){return *av[0];}
return 0;
return CHECK_VARIABLE_EXISTS;
}
#else /* CHECK_VARIABLE_EXISTS */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment