← Back to davo.co
aboutsummaryrefslogtreecommitdiffstats
path: root/sequence_point.c
blob: 6048cb637881acfa1445d068c00cbef67cb24b4b (plain)
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>

unsigned add(unsigned* x, unsigned const* y) [[unsequenced]] {
  return *x += *y;
}
int main(void) {
  unsigned a = 3;
  unsigned b = 5; 
  printf("a = %u, b = %u\n", add(&a, &b), add(&b, &a));
}