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 the program a 6 * negative number, which the front end must reject. 7 * 8 * Expected diagnostic: 9 * negative program number -100000 in program 'BADPROG' 10 * 11 * The tests directory has no automated runner; exercise by hand: 12 * ./xdrgen definitions tests/bad-program-number-negative.x (must fail) 13 */ 14 15 program BADPROG { 16 version BADVERS { 17 void BADPROC_NULL(void) = 0; 18 } = 1; 19 } = -100000; 20