]> git.draconx.ca Git - cdecl99.git/commitdiff
Fix bogus switch cases in declgen.
authorNick Bowler <nbowler@draconx.ca>
Sun, 18 Mar 2012 20:54:43 +0000 (16:54 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sun, 18 Mar 2012 21:02:27 +0000 (17:02 -0400)
One of the switch statements in declgen has completely bogus case
labels: '0', '1', ... instead of 0, 1, ...

Fix this up and also add a default: assert(0); which would have caught
this earlier.  Improve the test case output when a randomdecl failure
causes the test to fail.

Also add a comment to the one switch statement in this file which
intentionally does not have a default: assert(0).


No differences found