Trailing-Edge
-
PDP-10 Archives
-
SRI_NIC_PERM_FS_1_19910112
-
c/kcc5/tswtch.c
There is 1 other file named tswtch.c in the archive. Click here to see a list.
/* This file tests the compilation of a large switch statement.
** By default it is larger than KCC's limit of 512 cases.
** Compile with -DSMALL in order to get something that is exactly 512 cases,
** which should work.
*/
#ifndef SMALL
#define SMALL 0
#endif
main(argv,argc)
{
switch(argc) {
case 0: foo(0); break;
case 1: foo(1); break;
case 2: foo(2); break;
case 3: foo(3); break;
case 4: foo(4); break;
case 5: foo(5); break;
case 6: foo(6); break;
case 7: foo(7); break;
case 8: foo(8); break;
case 9: foo(9); break;
case 10: foo(10); break;
case 11: foo(11); break;
case 12: foo(12); break;
case 13: foo(13); break;
case 14: foo(14); break;
case 15: foo(15); break;
case 16: foo(16); break;
case 17: foo(17); break;
case 18: foo(18); break;
case 19: foo(19); break;
case 20: foo(20); break;
case 21: foo(21); break;
case 22: foo(22); break;
case 23: foo(23); break;
case 24: foo(24); break;
case 25: foo(25); break;
case 26: foo(26); break;
case 27: foo(27); break;
case 28: foo(28); break;
case 29: foo(29); break;
case 30: foo(30); break;
case 31: foo(31); break;
case 32: foo(32); break;
case 33: foo(33); break;
case 34: foo(34); break;
case 35: foo(35); break;
case 36: foo(36); break;
case 37: foo(37); break;
case 38: foo(38); break;
case 39: foo(39); break;
case 40: foo(40); break;
case 41: foo(41); break;
case 42: foo(42); break;
case 43: foo(43); break;
case 44: foo(44); break;
case 45: foo(45); break;
case 46: foo(46); break;
case 47: foo(47); break;
case 48: foo(48); break;
case 49: foo(49); break;
case 50: foo(50); break;
case 51: foo(51); break;
case 52: foo(52); break;
case 53: foo(53); break;
case 54: foo(54); break;
case 55: foo(55); break;
case 56: foo(56); break;
case 57: foo(57); break;
case 58: foo(58); break;
case 59: foo(59); break;
case 60: foo(60); break;
case 61: foo(61); break;
case 62: foo(62); break;
case 63: foo(63); break;
case 64: foo(64); break;
case 65: foo(65); break;
case 66: foo(66); break;
case 67: foo(67); break;
case 68: foo(68); break;
case 69: foo(69); break;
case 70: foo(70); break;
case 71: foo(71); break;
case 72: foo(72); break;
case 73: foo(73); break;
case 74: foo(74); break;
case 75: foo(75); break;
case 76: foo(76); break;
case 77: foo(77); break;
case 78: foo(78); break;
case 79: foo(79); break;
case 80: foo(80); break;
case 81: foo(81); break;
case 82: foo(82); break;
case 83: foo(83); break;
case 84: foo(84); break;
case 85: foo(85); break;
case 86: foo(86); break;
case 87: foo(87); break;
case 88: foo(88); break;
case 89: foo(89); break;
case 90: foo(90); break;
case 91: foo(91); break;
case 92: foo(92); break;
case 93: foo(93); break;
case 94: foo(94); break;
case 95: foo(95); break;
case 96: foo(96); break;
case 97: foo(97); break;
case 98: foo(98); break;
case 99: foo(99); break;
case 100: foo(100); break;
case 101: foo(101); break;
case 102: foo(102); break;
case 103: foo(103); break;
case 104: foo(104); break;
case 105: foo(105); break;
case 106: foo(106); break;
case 107: foo(107); break;
case 108: foo(108); break;
case 109: foo(109); break;
case 110: foo(110); break;
case 111: foo(111); break;
case 112: foo(112); break;
case 113: foo(113); break;
case 114: foo(114); break;
case 115: foo(115); break;
case 116: foo(116); break;
case 117: foo(117); break;
case 118: foo(118); break;
case 119: foo(119); break;
case 120: foo(120); break;
case 121: foo(121); break;
case 122: foo(122); break;
case 123: foo(123); break;
case 124: foo(124); break;
case 125: foo(125); break;
case 126: foo(126); break;
case 127: foo(127); break;
case 128: foo(128); break;
case 129: foo(129); break;
case 130: foo(130); break;
case 131: foo(131); break;
case 132: foo(132); break;
case 133: foo(133); break;
case 134: foo(134); break;
case 135: foo(135); break;
case 136: foo(136); break;
case 137: foo(137); break;
case 138: foo(138); break;
case 139: foo(139); break;
case 140: foo(140); break;
case 141: foo(141); break;
case 142: foo(142); break;
case 143: foo(143); break;
case 144: foo(144); break;
case 145: foo(145); break;
case 146: foo(146); break;
case 147: foo(147); break;
case 148: foo(148); break;
case 149: foo(149); break;
case 150: foo(150); break;
case 151: foo(151); break;
case 152: foo(152); break;
case 153: foo(153); break;
case 154: foo(154); break;
case 155: foo(155); break;
case 156: foo(156); break;
case 157: foo(157); break;
case 158: foo(158); break;
case 159: foo(159); break;
case 160: foo(160); break;
case 161: foo(161); break;
case 162: foo(162); break;
case 163: foo(163); break;
case 164: foo(164); break;
case 165: foo(165); break;
case 166: foo(166); break;
case 167: foo(167); break;
case 168: foo(168); break;
case 169: foo(169); break;
case 170: foo(170); break;
case 171: foo(171); break;
case 172: foo(172); break;
case 173: foo(173); break;
case 174: foo(174); break;
case 175: foo(175); break;
case 176: foo(176); break;
case 177: foo(177); break;
case 178: foo(178); break;
case 179: foo(179); break;
case 180: foo(180); break;
case 181: foo(181); break;
case 182: foo(182); break;
case 183: foo(183); break;
case 184: foo(184); break;
case 185: foo(185); break;
case 186: foo(186); break;
case 187: foo(187); break;
case 188: foo(188); break;
case 189: foo(189); break;
case 190: foo(190); break;
case 191: foo(191); break;
case 192: foo(192); break;
case 193: foo(193); break;
case 194: foo(194); break;
case 195: foo(195); break;
case 196: foo(196); break;
case 197: foo(197); break;
case 198: foo(198); break;
case 199: foo(199); break;
case 200: foo(200); break;
case 201: foo(201); break;
case 202: foo(202); break;
case 203: foo(203); break;
case 204: foo(204); break;
case 205: foo(205); break;
case 206: foo(206); break;
case 207: foo(207); break;
case 208: foo(208); break;
case 209: foo(209); break;
case 210: foo(210); break;
case 211: foo(211); break;
case 212: foo(212); break;
case 213: foo(213); break;
case 214: foo(214); break;
case 215: foo(215); break;
case 216: foo(216); break;
case 217: foo(217); break;
case 218: foo(218); break;
case 219: foo(219); break;
case 220: foo(220); break;
case 221: foo(221); break;
case 222: foo(222); break;
case 223: foo(223); break;
case 224: foo(224); break;
case 225: foo(225); break;
case 226: foo(226); break;
case 227: foo(227); break;
case 228: foo(228); break;
case 229: foo(229); break;
case 230: foo(230); break;
case 231: foo(231); break;
case 232: foo(232); break;
case 233: foo(233); break;
case 234: foo(234); break;
case 235: foo(235); break;
case 236: foo(236); break;
case 237: foo(237); break;
case 238: foo(238); break;
case 239: foo(239); break;
case 240: foo(240); break;
case 241: foo(241); break;
case 242: foo(242); break;
case 243: foo(243); break;
case 244: foo(244); break;
case 245: foo(245); break;
case 246: foo(246); break;
case 247: foo(247); break;
case 248: foo(248); break;
case 249: foo(249); break;
case 250: foo(250); break;
case 251: foo(251); break;
case 252: foo(252); break;
case 253: foo(253); break;
case 254: foo(254); break;
case 255: foo(255); break;
case 256: foo(256); break;
case 257: foo(257); break;
case 258: foo(258); break;
case 259: foo(259); break;
case 260: foo(260); break;
case 261: foo(261); break;
case 262: foo(262); break;
case 263: foo(263); break;
case 264: foo(264); break;
case 265: foo(265); break;
case 266: foo(266); break;
case 267: foo(267); break;
case 268: foo(268); break;
case 269: foo(269); break;
case 270: foo(270); break;
case 271: foo(271); break;
case 272: foo(272); break;
case 273: foo(273); break;
case 274: foo(274); break;
case 275: foo(275); break;
case 276: foo(276); break;
case 277: foo(277); break;
case 278: foo(278); break;
case 279: foo(279); break;
case 280: foo(280); break;
case 281: foo(281); break;
case 282: foo(282); break;
case 283: foo(283); break;
case 284: foo(284); break;
case 285: foo(285); break;
case 286: foo(286); break;
case 287: foo(287); break;
case 288: foo(288); break;
case 289: foo(289); break;
case 290: foo(290); break;
case 291: foo(291); break;
case 292: foo(292); break;
case 293: foo(293); break;
case 294: foo(294); break;
case 295: foo(295); break;
case 296: foo(296); break;
case 297: foo(297); break;
case 298: foo(298); break;
case 299: foo(299); break;
case 300: foo(300); break;
case 301: foo(301); break;
case 302: foo(302); break;
case 303: foo(303); break;
case 304: foo(304); break;
case 305: foo(305); break;
case 306: foo(306); break;
case 307: foo(307); break;
case 308: foo(308); break;
case 309: foo(309); break;
case 310: foo(310); break;
case 311: foo(311); break;
case 312: foo(312); break;
case 313: foo(313); break;
case 314: foo(314); break;
case 315: foo(315); break;
case 316: foo(316); break;
case 317: foo(317); break;
case 318: foo(318); break;
case 319: foo(319); break;
case 320: foo(320); break;
case 321: foo(321); break;
case 322: foo(322); break;
case 323: foo(323); break;
case 324: foo(324); break;
case 325: foo(325); break;
case 326: foo(326); break;
case 327: foo(327); break;
case 328: foo(328); break;
case 329: foo(329); break;
case 330: foo(330); break;
case 331: foo(331); break;
case 332: foo(332); break;
case 333: foo(333); break;
case 334: foo(334); break;
case 335: foo(335); break;
case 336: foo(336); break;
case 337: foo(337); break;
case 338: foo(338); break;
case 339: foo(339); break;
case 340: foo(340); break;
case 341: foo(341); break;
case 342: foo(342); break;
case 343: foo(343); break;
case 344: foo(344); break;
case 345: foo(345); break;
case 346: foo(346); break;
case 347: foo(347); break;
case 348: foo(348); break;
case 349: foo(349); break;
case 350: foo(350); break;
case 351: foo(351); break;
case 352: foo(352); break;
case 353: foo(353); break;
case 354: foo(354); break;
case 355: foo(355); break;
case 356: foo(356); break;
case 357: foo(357); break;
case 358: foo(358); break;
case 359: foo(359); break;
case 360: foo(360); break;
case 361: foo(361); break;
case 362: foo(362); break;
case 363: foo(363); break;
case 364: foo(364); break;
case 365: foo(365); break;
case 366: foo(366); break;
case 367: foo(367); break;
case 368: foo(368); break;
case 369: foo(369); break;
case 370: foo(370); break;
case 371: foo(371); break;
case 372: foo(372); break;
case 373: foo(373); break;
case 374: foo(374); break;
case 375: foo(375); break;
case 376: foo(376); break;
case 377: foo(377); break;
case 378: foo(378); break;
case 379: foo(379); break;
case 380: foo(380); break;
case 381: foo(381); break;
case 382: foo(382); break;
case 383: foo(383); break;
case 384: foo(384); break;
case 385: foo(385); break;
case 386: foo(386); break;
case 387: foo(387); break;
case 388: foo(388); break;
case 389: foo(389); break;
case 390: foo(390); break;
case 391: foo(391); break;
case 392: foo(392); break;
case 393: foo(393); break;
case 394: foo(394); break;
case 395: foo(395); break;
case 396: foo(396); break;
case 397: foo(397); break;
case 398: foo(398); break;
case 399: foo(399); break;
case 400: foo(400); break;
case 401: foo(401); break;
case 402: foo(402); break;
case 403: foo(403); break;
case 404: foo(404); break;
case 405: foo(405); break;
case 406: foo(406); break;
case 407: foo(407); break;
case 408: foo(408); break;
case 409: foo(409); break;
case 410: foo(410); break;
case 411: foo(411); break;
case 412: foo(412); break;
case 413: foo(413); break;
case 414: foo(414); break;
case 415: foo(415); break;
case 416: foo(416); break;
case 417: foo(417); break;
case 418: foo(418); break;
case 419: foo(419); break;
case 420: foo(420); break;
case 421: foo(421); break;
case 422: foo(422); break;
case 423: foo(423); break;
case 424: foo(424); break;
case 425: foo(425); break;
case 426: foo(426); break;
case 427: foo(427); break;
case 428: foo(428); break;
case 429: foo(429); break;
case 430: foo(430); break;
case 431: foo(431); break;
case 432: foo(432); break;
case 433: foo(433); break;
case 434: foo(434); break;
case 435: foo(435); break;
case 436: foo(436); break;
case 437: foo(437); break;
case 438: foo(438); break;
case 439: foo(439); break;
case 440: foo(440); break;
case 441: foo(441); break;
case 442: foo(442); break;
case 443: foo(443); break;
case 444: foo(444); break;
case 445: foo(445); break;
case 446: foo(446); break;
case 447: foo(447); break;
case 448: foo(448); break;
case 449: foo(449); break;
case 450: foo(450); break;
case 451: foo(451); break;
case 452: foo(452); break;
case 453: foo(453); break;
case 454: foo(454); break;
case 455: foo(455); break;
case 456: foo(456); break;
case 457: foo(457); break;
case 458: foo(458); break;
case 459: foo(459); break;
case 460: foo(460); break;
case 461: foo(461); break;
case 462: foo(462); break;
case 463: foo(463); break;
case 464: foo(464); break;
case 465: foo(465); break;
case 466: foo(466); break;
case 467: foo(467); break;
case 468: foo(468); break;
case 469: foo(469); break;
case 470: foo(470); break;
case 471: foo(471); break;
case 472: foo(472); break;
case 473: foo(473); break;
case 474: foo(474); break;
case 475: foo(475); break;
case 476: foo(476); break;
case 477: foo(477); break;
case 478: foo(478); break;
case 479: foo(479); break;
case 480: foo(480); break;
case 481: foo(481); break;
case 482: foo(482); break;
case 483: foo(483); break;
case 484: foo(484); break;
case 485: foo(485); break;
case 486: foo(486); break;
case 487: foo(487); break;
case 488: foo(488); break;
case 489: foo(489); break;
case 490: foo(490); break;
case 491: foo(491); break;
case 492: foo(492); break;
case 493: foo(493); break;
case 494: foo(494); break;
case 495: foo(495); break;
case 496: foo(496); break;
case 497: foo(497); break;
case 498: foo(498); break;
case 499: foo(499); break;
case 500: foo(500); break;
case 501: foo(501); break;
case 502: foo(502); break;
case 503: foo(503); break;
case 504: foo(504); break;
case 505: foo(505); break;
case 506: foo(506); break;
case 507: foo(507); break;
case 508: foo(508); break;
case 509: foo(509); break;
case 510: foo(510); break;
case 511: foo(511); break;
#if !SMALL
case 512: foo(512); break;
case 513: foo(513); break;
#endif
}
}
foo(i)
{}