]> git.draconx.ca Git - cdecl99.git/commit
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)
commitddbdd8cec2a54faef7b3a25d998ba350ec026cfe
treea1e1e12dad228fae10414ebcc5d40ee5ce5dd0f1
parent9c8633f0258d0750fd81387fe826d4522873cd90
Fix bogus switch cases in declgen.

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).
test/declgen.c
tests/crossparse-c-random.sh