[1853] in Athena Bugs
Saber gripe: v2.0.4 (12/20/88 binkley vax unix 2669 0)
daemon@ATHENA.MIT.EDU (raeburn@ATHENA.MIT.EDU)
Sun Mar 5 01:51:53 1989
From: <raeburn@ATHENA.MIT.EDU>
Date: Sun, 5 Mar 89 01:51:38 EST
To: bugs@ATHENA.MIT.EDU
/*
* test of saber 2.0.4
*/
struct frob {
int one, two;
};
static const struct frob foo[] = {
{ 1, 3 },
{ 4, 7 },
};
int main (int argc, char **argv) {
printf ("size of array = %d, size of elt = %d\n",
sizeof (foo), sizeof (foo[0]));
return 0;
}
/*
Saber output:
1 -> run
Linking from '/lib/libc.a' ...... Linking completed.
Executing: a.out
size of array = 16, size of elt = 1
Linking from '/lib/libc.a' ... Linking completed.
Program exiting with return status = 0.
Resetting to top level.
2 ->
Functions properly (i.e., size of elt = 8) when "const" is omitted.
*/