blob: a5be39fca773e66347660c05b65cc0800c8868b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include <mem.h>
static int const a = 1;
static int const b = 2;
int main(void){
int x = a;
int y = b;
calt_memswap(&x, &y, sizeof x);
return x == b && y == a ? 0 : 1;
}
|