#include <stdio.h>
struct S
{
int i;
};
void swap(struct S *a, struct S *b)
{
struct S temp;
temp = *a /* Oops, missing a semicolon here... */
*a = *b;
*b = temp;
}
int main(void)
{
struct S a = { 1 };
struct S b = { 2 };
swap(&a, &b);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpzdHJ1Y3QgUwp7CiAgICBpbnQgaTsKfTsKCnZvaWQgc3dhcChzdHJ1Y3QgUyAqYSwgc3RydWN0IFMgKmIpCnsKICAgIHN0cnVjdCBTIHRlbXA7CiAgICB0ZW1wID0gKmEgICAgLyogT29wcywgbWlzc2luZyBhIHNlbWljb2xvbiBoZXJlLi4uICovCiAgICAqYSA9ICpiOwogICAgKmIgPSB0ZW1wOwp9CgppbnQgbWFpbih2b2lkKQp7CiAgICBzdHJ1Y3QgUyBhID0geyAxIH07CiAgICBzdHJ1Y3QgUyBiID0geyAyIH07CgogICAgc3dhcCgmYSwgJmIpOwp9Cg==