aboutsummaryrefslogtreecommitdiffstats
path: root/test/mem/memswap_same.c
blob: 532f8c9d2e8a0078fc33c8ae0190718dff72c220 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <mem.h>

static int const a = 1;

int main(void){
  int x = a;
  calt_memswap(&x, &x, sizeof x);
  return x == a ? 0 : 1;
}