|
|
1.1 ! root 1: /* The Plum Hall Validation Suite for C ! 2: * Unpublished copyright (c) 1986-1991, Chiron Systems Inc and Plum Hall Inc. ! 3: * VERSION: 4 ! 4: * DATE: 1993-01-01 ! 5: * The "ANSI" mode of this suite corresponds to official ANSI C, X3.159-1989. ! 6: * As per your license agreement, your distribution is not to be moved or copied outside the Designated Site ! 7: * without specific permission from Plum Hall Inc. ! 8: */ ! 9: ! 10: #include "defs.h" ! 11: ! 12: void c3_1(); ! 13: void c3_2(); ! 14: void c3_3(); ! 15: void c3_4(); ! 16: void c3_5(); ! 17: void c3_6(); ! 18: void c3_7(); ! 19: void c3_8(); ! 20: ! 21: int main(argc, argv) ! 22: int argc; ! 23: char **argv; ! 24: { ! 25: extern int Debug; ! 26: ! 27: if (argc > 1) ! 28: Debug = TRUE; ! 29: ! 30: Filename = "lang.c"; ! 31: c3_1(); ! 32: c3_2(); ! 33: c3_3(); ! 34: c3_4(); ! 35: c3_5(); ! 36: c3_6(); ! 37: c3_7(); ! 38: c3_8(); ! 39: return report("LANG"); ! 40: } ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: /* ! 49: * Global variables needed elsewhere in the tests. ! 50: */ ! 51: int e12 = 12; /* should not link with static e12 in c3_1_2_2 */ ! 52: int e15 = 15; /* should link with extern e15 in c3_1_2_2 */ ! 53: ! 54: struct { char i; int j; } s3126 = { 1, 2}; /* compatible with s3126 in c3_1_2_6 */ ! 55: union { char i; int j; } u3126 ! 56: #if ANSI ! 57: = { 3 } ! 58: #endif ! 59: ; /* compatible with u3126 in c3_1_2_6 */ ! 60: enum { E3126A = 4, E3126B } e3126 = { E3126B }; /* compatible with e3126 in c3_1_2_6 */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.