Commit ce7cdcdd authored by Emmanuel Thomé's avatar Emmanuel Thomé
parent a1b27c6a
#include <stdlib.h>
int main () {
int o, *p;
#include <stdio.h>
#include <stdint.h>
int main (int argc, char * argv[]) {
uint64_t o = argc, y, z;
__sync_fetch_and_add(&o, 1);
/* according to, one should use the
return value for a complete configure test */
p = __sync_sub_and_fetch(&o, 1);
y = __sync_sub_and_fetch(&o, 1);
z = __sync_add_and_fetch(&o, y);
/* make sure we use the return value */
printf ("%lx", p);
printf ("%lx", z);
exit (0);
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