1 2 3 4 5 6 7 8
#include <inttypes.h> int32_t foo(int32_t i) { return __sync_add_and_fetch(&i, 1); } int main() { }