[comp.sys.encore] A bug in Umax 4.3 cc's treatment of -D option?

mlevin@jade.tufts.edu (06/21/91)

The following program, when compiled on a Multimax running Umax 4.3,
as follows: "cc -DDEF=BB a.c"

main()
{
  enum {AA, BB, CC} dd;
  dd = DEF;
#if DEF!=CC
  printf("%d\n",DEF);
#endif
}

  produces the output "1" - that is, the printf() call is put into the
code by the pre-processor. However, the same program and compilation
command produces no output on either SunOs or VMS C compilers (I have
been told that this is correct - that it should leave the printf()
out). Any information on this?

Mike Levin