Files
2015-07-10 22:07:15 +02:00

16 lines
280 B
C

/*
Will `abs(-1)` be inlined, or precalculated?
The compiler coud know that it is deterministic and has no side effects.
GCC 4.8: yes, even at -O0.
*/
#include <stdio.h>
#include <stdlib.h>
int main() {
printf("%d\n", abs(-1));
printf("%d\n", abs(-1));
return 0;
}