typedef1.C   [plain text]


// Build don't link:

typedef const struct {
   int x;
} Test;

static void foo(Test);

static void foo(Test t)
{
  t.x = 0; // ERROR - assignment of read-only member
  return;
}