1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-25 19:46:21 +00:00

Remove optck (#286)

This was for checking for a bug in old versions of the SunOS
tools and is no longer relevant.
This commit is contained in:
Bruce Mitchener
2021-01-25 09:14:11 +07:00
committed by GitHub
parent b151790c40
commit 04b4b64b87
4 changed files with 1 additions and 62 deletions

View File

@@ -1,43 +0,0 @@
/* $Id: optck.c,v 1.3 1999/05/31 23:35:40 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
/* optck.c
*
* This example is almost same as one shown in
* SunOS 4.1 Release Manual: 4.2. Known Problems With SunOS Release 4.1 Products.
*
* Compiling this file with -O or -O2 level and executing, if assembler optimizes
* incorrectly, "wrong" message is printed out to stdout.
*
*/
/************************************************************************/
/* */
/* (C) Copyright 1989-95 Venue. All Rights Reserved. */
/* Manufactured in the United States of America. */
/* */
/************************************************************************/
#include "version.h"
int boothowto = 1;
int main(void) {
int unit;
if (boothowto & 1) {
retry:
unit = -1;
while (unit == -1) {
if (unit != -1) {
printf("wrong");
exit(1);
}
unit = 0;
foo(&unit);
}
} else {
unit = 0;
goto retry;
}
}
foo(int *unitp) {}