1 /* 2 * NEGATIVE TEST CASE -- xdrgen must REJECT this specification. 3 * 4 * RFC 5531 assigns only unsigned constants to program, version, and 5 * procedure numbers (Section 12.3). This spec gives a procedure a 6 * negative number, which the front end must reject. 7 * 8 * Expected diagnostic: 9 * negative procedure number -5 in version 'BADVERS' 10 * 11 * The tests directory has no automated runner; exercise by hand: 12 * ./xdrgen definitions tests/bad-procedure-number-negative.x (must fail) 13 */ 14 15 program BADPROG { 16 version BADVERS { 17 void BADPROC_NULL(void) = 0; 18 void BADPROC_FOO(void) = -5; 19 } = 1; 20 } = 100000; 21