Oberon.Compilation.Test 850 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493
  1. # Oberon language test and validation suite
  2. # options --command="Compiler.Compile TesterInput.txt" --result="Oberon.Compilation.Test.Diff"
  3. # Syntax tests
  4. # =====================================
  5. # plain modules
  6. negative: missing module name
  7. MODULE END.
  8. negative: unmatched module name
  9. MODULE Test; END tseT.
  10. negative: missing semicolon in module definition
  11. MODULE Test END Test.
  12. negative: missing END in module definition
  13. MODULE Test; Test.
  14. negative: missing concluding dot
  15. MODULE Test; END Test
  16. positive: empty module
  17. MODULE Test; END Test.
  18. negative: module named system
  19. MODULE SYSTEM; END SYSTEM.
  20. # identifiers
  21. negative: number as identifier
  22. MODULE Test;
  23. CONST 007 = 0;
  24. END Test.
  25. negative: keyword as identifier
  26. MODULE Test;
  27. CONST THEN = 0;
  28. END Test.
  29. negative: string as identifier
  30. MODULE Test;
  31. CONST "Test" = 0;
  32. END Test.
  33. positive: single character identifier
  34. MODULE Test;
  35. CONST T = 0;
  36. END Test.
  37. positive: long identifiers
  38. MODULE Test;
  39. CONST IncrediblyLongModuleNameLikeSupercalifragilisticexpialidocious = 0;
  40. END Test.
  41. positive: underscore in identifier
  42. MODULE Test;
  43. CONST Test_Module = 0;
  44. END Test.
  45. # comments
  46. negative: comment only
  47. (* MODULE *)
  48. positive: comment in front of module definition
  49. (* comment *)
  50. MODULE Test; END Test.
  51. positive: comment within module definition
  52. MODULE Test;
  53. (* comment *)
  54. END Test.
  55. positive: comment after module definition
  56. MODULE Test;
  57. END Test.
  58. (* comment *)
  59. positive: plain text after module definition
  60. MODULE Test;
  61. END Test.
  62. plain text
  63. negative: invalid closing of comment
  64. MODULE Test; *) END Test.
  65. negative: missing closing of comment
  66. MODULE Test; (* END Test.
  67. positive: comment spanning several lines
  68. MODULE Test;
  69. (*
  70. this comment spans
  71. several text lines
  72. *)
  73. END Test.
  74. positive: comment as whitespace
  75. MODULE(*whitespace*)Test;END(*whitespace*)Test.
  76. # nested comments
  77. positive: nested comment
  78. (* (* nested comment *) *)
  79. MODULE Test; END Test.
  80. negative: invalid closing of nested comment
  81. (* nested comment *) *)
  82. MODULE Test; END Test.
  83. negative: missing closing of nested comment
  84. (* (* nested comment *)
  85. MODULE Test; END Test.
  86. positive: double nested comments
  87. (* (* extremely (* nested comment *) *) *)
  88. MODULE Test; END Test.
  89. positive: multiple nested comments
  90. MODULE Test;
  91. (* (* multiple *) nested (* comments (* over (* four *) levels *) *) *)
  92. END Test.
  93. negative: invalid multiple nested comments
  94. MODULE Test;
  95. (* invalid (* multiple *) nested (* comments (* over *) (* four *) levels *) *) *)
  96. END Test.
  97. # import section
  98. positive: dummy module for import section tests
  99. MODULE Dummy; END Dummy.
  100. negative: empty import list
  101. MODULE Test;
  102. IMPORT;
  103. END Test.
  104. negative: single module import without concluding semicolon
  105. MODULE Test;
  106. IMPORT Dummy
  107. END Test.
  108. positive: single module import
  109. MODULE Test;
  110. IMPORT Dummy;
  111. END Test.
  112. positive: single module import with alias
  113. MODULE Test;
  114. IMPORT Alias := Dummy;
  115. END Test.
  116. negative: double module import missing second module name
  117. MODULE Test;
  118. IMPORT Dummy, ;
  119. END Test.
  120. negative: double module import without separating comma
  121. MODULE Test;
  122. IMPORT A := Dummy B := Dummy;
  123. END Test.
  124. negative: double module import with separating semicolon
  125. MODULE Test;
  126. IMPORT A := Dummy; B := Dummy;
  127. END Test.
  128. negative: double module import without concluding semicolon
  129. MODULE Test;
  130. IMPORT A := Dummy, B := Dummy
  131. END Test.
  132. positive: double module import
  133. MODULE Test;
  134. IMPORT A := Dummy, B := Dummy;
  135. END Test.
  136. positive: multiple module import
  137. MODULE Test;
  138. IMPORT A := Dummy, B := Dummy, C := Dummy, D := Dummy;
  139. END Test.
  140. negative: multiple import lists
  141. MODULE Test;
  142. IMPORT A := Dummy;
  143. IMPORT B := Dummy;
  144. END Test.
  145. # const section
  146. positive: empty const section
  147. MODULE Test;
  148. CONST
  149. END Test.
  150. positive: const section without declarations
  151. MODULE Test;
  152. CONST ;;;;
  153. END Test.
  154. positive: repeated empty const sections
  155. MODULE Test;
  156. CONST CONST CONST
  157. CONST ; CONST ; CONST
  158. END Test.
  159. negative: single constant declaration missing equal sign
  160. MODULE Test;
  161. CONST Constant 5;
  162. END Test.
  163. negative: single constant declaration missing value
  164. MODULE Test;
  165. CONST Constant =
  166. END Test.
  167. positive: single constant declaration
  168. MODULE Test;
  169. CONST Constant = 5
  170. END Test.
  171. negative: double constant declaration without separating semicolon
  172. MODULE Test;
  173. CONST A = 5 B = 10
  174. END Test.
  175. positive: double constant declaration
  176. MODULE Test;
  177. CONST A = 5; B = 10
  178. END Test.
  179. # literals
  180. positive: boolean literal FALSE
  181. MODULE Test;
  182. CONST Boolean = TRUE
  183. END Test.
  184. positive: boolean literal TRUE
  185. MODULE Test;
  186. CONST Boolean = FALSE
  187. END Test.
  188. # legacy behaviour
  189. positive: character literal using '
  190. MODULE Test;
  191. CONST Character = 'a'
  192. END Test.
  193. # legacy behaviour
  194. positive: character literal using "
  195. MODULE Test;
  196. CONST Character = "b"
  197. END Test.
  198. negative: unclosed character literal
  199. MODULE Test;
  200. CONST Character = 't
  201. END Test.
  202. positive: uppercase hexadecimal character literal
  203. MODULE Test;
  204. CONST Character = 0ABX
  205. END Test.
  206. negative: lowercase hexadecimal character literal
  207. MODULE Test;
  208. CONST Character = 0efX
  209. END Test.
  210. negative: hexadecimal character literal beginning with letter
  211. MODULE Test;
  212. CONST Character = CDX
  213. END Test.
  214. negative: hexadecimal character literal missing concluding X
  215. MODULE Test;
  216. CONST Character = 9A
  217. END Test.
  218. negative: hexadecimal character literal with concluding x
  219. MODULE Test;
  220. CONST Character = 0CAx
  221. END Test.
  222. positive: integer literal
  223. MODULE Test;
  224. CONST Integer = 25
  225. END Test.
  226. positive: uppercase hexadecimal integer literal
  227. MODULE Test;
  228. CONST Integer = 1EDH
  229. END Test.
  230. negative: lowercase hexadecimal integer literal
  231. MODULE Test;
  232. CONST Integer = 4faH
  233. END Test.
  234. negative: hexadecimal integer literal beginning with letter
  235. MODULE Test;
  236. CONST Integer = EFH
  237. END Test.
  238. negative: hexadecimal integer literal missing concluding H
  239. MODULE Test;
  240. CONST Integer = 42F
  241. END Test.
  242. negative: hexadecimal integer literal with concluding h
  243. MODULE Test;
  244. CONST Integer = 89h
  245. END Test.
  246. positive: real literal
  247. MODULE Test;
  248. CONST Real = 25.3
  249. END Test.
  250. positive: real literal with concluding dot
  251. MODULE Test;
  252. CONST Real = 7.
  253. END Test.
  254. negative: real literal beginning with dot
  255. MODULE Test;
  256. CONST Real = .4
  257. END Test.
  258. negative: real literal with comma instead of dot
  259. MODULE Test;
  260. CONST Real = 12,1
  261. END Test.
  262. positive: real literal with scale factor
  263. MODULE Test;
  264. CONST Real = 1.2E5
  265. END Test.
  266. positive: real literal with positive scale factor
  267. MODULE Test;
  268. CONST Real = 0.3E+8
  269. END Test.
  270. negative: real literal with positive too large scale factor
  271. MODULE Test;
  272. CONST Real= 0.3E+80;
  273. END Test.
  274. positive: real literal with negative scale factor
  275. MODULE Test;
  276. CONST Real = 0.E-30
  277. END Test.
  278. negative: real literal with too small negative scale factor
  279. MODULE Test;
  280. CONST Real = 0.E-54
  281. END Test.
  282. negative: real literal with scale factor without number
  283. MODULE Test;
  284. CONST Real = 6354.9E+
  285. END Test.
  286. negative: real literal with scale factor without number and sign
  287. MODULE Test;
  288. CONST Real = 9.1E
  289. END Test.
  290. negative: real literal with lowercase scale factor
  291. MODULE Test;
  292. CONST Real = 24.e97
  293. END Test.
  294. negative: real literal with hexadecimal scale factor
  295. MODULE Test;
  296. CONST Real = 1.97E1AB
  297. END Test.
  298. negative: real literal with whitespace sepatared scale factor
  299. MODULE Test;
  300. CONST Real = 12.3 E-4
  301. END Test.
  302. negative: real literal with scale factor with whitespace sepatared number
  303. MODULE Test;
  304. CONST Real = 0.1E 2
  305. END Test.
  306. negative: real literal with scale factor without decimal point
  307. MODULE Test;
  308. CONST Real = 5E+2
  309. END Test.
  310. positive: long real literal with scale factor
  311. MODULE Test;
  312. CONST Real = 0.77D24
  313. END Test.
  314. positive: long real literal with positive scale factor
  315. MODULE Test;
  316. CONST Real = 0.1D+9
  317. END Test.
  318. positive: long real literal with negative scale factor
  319. MODULE Test;
  320. CONST Real = 1.D-14
  321. END Test.
  322. negative: long real literal with lowercase scale factor
  323. MODULE Test;
  324. CONST Real = 24.d97
  325. END Test.
  326. positive: set literal
  327. MODULE Test;
  328. CONST Set = {}
  329. END Test.
  330. negative: unclosed set literal
  331. MODULE Test;
  332. CONST Set = {
  333. END Test.
  334. negative: unopened set literal
  335. MODULE Test;
  336. CONST Set = }
  337. END Test.
  338. # legacy behaviour
  339. #temporarily removed
  340. #negative: string literal using '
  341. #
  342. # MODULE Test;
  343. # CONST String = 'abc'
  344. # END Test.
  345. positive: string literal using "
  346. MODULE Test;
  347. CONST String = "ABC"
  348. END Test.
  349. negative: unclosed string literal
  350. MODULE Test;
  351. CONST Character = "string
  352. END Test.
  353. positive: string literal holding printable ASCII character set
  354. MODULE Test;
  355. CONST String = " !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
  356. BEGIN ASSERT (String = String)
  357. END Test.
  358. # type section
  359. positive: empty type section
  360. MODULE Test;
  361. TYPE
  362. END Test.
  363. positive: type section without declarations
  364. MODULE Test;
  365. TYPE ;;;;
  366. END Test.
  367. positive: repeated empty type sections
  368. MODULE Test;
  369. TYPE TYPE TYPE
  370. TYPE ; TYPE ; TYPE
  371. END Test.
  372. negative: single type declaration missing equal sign
  373. MODULE Test;
  374. TYPE Type RECORD END;
  375. END Test.
  376. negative: single type declaration missing type
  377. MODULE Test;
  378. TYPE Type =
  379. END Test.
  380. positive: single type declaration
  381. MODULE Test;
  382. TYPE Type = OBJECT;
  383. END Test.
  384. negative: double type declaration without separating semicolon
  385. MODULE Test;
  386. TYPE A = RECORD END B = OBJECT;
  387. END Test.
  388. positive: double type declaration
  389. MODULE Test;
  390. TYPE A = OBJECT; B = RECORD END
  391. END Test.
  392. # types
  393. negative: array without of
  394. MODULE Test;
  395. TYPE Array = ARRAY 10 OBJECT;
  396. END Test.
  397. negative: array without base type
  398. MODULE Test;
  399. TYPE Array = ARRAY 15 OF;
  400. END Test.
  401. positive: basic array of objects
  402. MODULE Test;
  403. TYPE Array = ARRAY 5 OF OBJECT;
  404. END Test.
  405. negative: record without end
  406. MODULE Test;
  407. TYPE Record = RECORD;
  408. END Test.
  409. positive: simple record
  410. MODULE Test;
  411. TYPE Record = RECORD END;
  412. END Test.
  413. negative: record with empty base record
  414. MODULE Test;
  415. TYPE Record = RECORD () END;
  416. END Test.
  417. negative: record with explicitly defined base record
  418. MODULE Test;
  419. TYPE Record = RECORD (RECORD END) END;
  420. END Test.
  421. negative: record with variable declaration
  422. MODULE Test;
  423. TYPE Record = RECORD VAR f: OBJECT; END;
  424. END Test.
  425. negative: missing matching object name
  426. MODULE Test;
  427. TYPE Object = OBJECT END;
  428. END Test;
  429. negative: unmatched object name
  430. MODULE Test;
  431. TYPE Object = OBJECT END tcejbO;
  432. END Test;
  433. negative: object without end
  434. MODULE Test;
  435. TYPE Object = OBJECT Object;
  436. END Test.
  437. positive: simple object
  438. MODULE Test;
  439. TYPE Object = OBJECT END Object;
  440. END Test.
  441. negative: object with empty base object
  442. MODULE Test;
  443. TYPE Object = OBJECT () END;
  444. END Test.
  445. negative: record with explicit base object
  446. MODULE Test;
  447. TYPE Record = RECORD (OBJECT) END;
  448. END Test.
  449. negative: record with explicitly defined base object
  450. MODULE Test;
  451. TYPE Record = RECORD (OBJECT END) END;
  452. END Test.
  453. negative: object with field declaration
  454. MODULE Test;
  455. TYPE Object = OBJECT f: OBJECT; END Object;
  456. END Test.
  457. negative: pointer missing pointer keyword
  458. MODULE Test;
  459. TYPE Pointer = TO RECORD END;
  460. END Test.
  461. negative: pointer missing to
  462. MODULE Test;
  463. TYPE Pointer = POINTER RECORD END;
  464. END Test.
  465. negative: pointer missing base type
  466. MODULE Test;
  467. TYPE Pointer = POINTER TO;
  468. END Test.
  469. positive: plain procedure type without parentheses
  470. MODULE Test;
  471. TYPE Procedure = PROCEDURE;
  472. END Test.
  473. positive: plain procedure type with parentheses
  474. MODULE Test;
  475. TYPE Procedure = PROCEDURE ();
  476. END Test.
  477. negative: procedure type missing return type
  478. MODULE Test;
  479. TYPE Procedure = PROCEDURE ():;
  480. END Test.
  481. negative: procedure type with return type missing parentheses
  482. MODULE Test;
  483. TYPE Procedure = PROCEDURE: BOOLEAN;
  484. END Test.
  485. negative: procedure type with return type missing colon
  486. MODULE Test;
  487. TYPE Procedure = PROCEDURE () BOOLEAN;
  488. END Test.
  489. positive: procedure type with empty parameter list
  490. MODULE Test;
  491. TYPE Procedure = PROCEDURE ();
  492. END Test.
  493. negative: procedure type with parameter list missing parameter section
  494. MODULE Test;
  495. TYPE Procedure = PROCEDURE (;);
  496. END Test.
  497. negative: procedure type with parameter missing name
  498. MODULE Test;
  499. TYPE Procedure = PROCEDURE (: SET);
  500. END Test.
  501. negative: procedure type with parameter missing colon
  502. MODULE Test;
  503. TYPE Procedure = PROCEDURE (parameter SET);
  504. END Test.
  505. negative: procedure type with parameter missing type
  506. MODULE Test;
  507. TYPE Procedure = PROCEDURE (parameter:);
  508. END Test.
  509. # var section
  510. positive: empty var section
  511. MODULE Test;
  512. VAR
  513. END Test.
  514. positive: var section without declarations
  515. MODULE Test;
  516. VAR ;;;;
  517. END Test.
  518. positive: repeated empty var sections
  519. MODULE Test;
  520. VAR VAR VAR
  521. VAR ; VAR ; VAR
  522. END Test.
  523. negative: single variable declaration missing colon
  524. MODULE Test;
  525. VAR variable RECORD END;
  526. END Test.
  527. negative: single variable declaration missing type
  528. MODULE Test;
  529. VAR variable: ;
  530. END Test.
  531. positive: single variable declaration
  532. MODULE Test;
  533. VAR variable: RECORD END;
  534. END Test.
  535. negative: double variable declaration without separating semicolon
  536. MODULE Test;
  537. VAR a: RECORD END b: OBJECT;
  538. END Test.
  539. positive: double variable declaration
  540. MODULE Test;
  541. VAR a: ARRAY 10 OF CHAR; b: RECORD END;
  542. END Test.
  543. # procedure section
  544. positive: plain procedure without parentheses
  545. MODULE Test;
  546. PROCEDURE Procedure;
  547. END Procedure;
  548. END Test.
  549. negative: procedure missing name
  550. MODULE Test;
  551. PROCEDURE;
  552. END Procedure;
  553. END Test.
  554. negative: procedure missing separating semicolon
  555. MODULE Test;
  556. PROCEDURE Procedure
  557. END Procedure;
  558. END Test.
  559. negative: procedure missing end
  560. MODULE Test;
  561. PROCEDURE Procedure;
  562. Procedure;
  563. END Test.
  564. negative: procedure missing matching name
  565. MODULE Test;
  566. PROCEDURE Procedure;
  567. END;
  568. END Test.
  569. negative: unmatched procedure name
  570. MODULE Test;
  571. PROCEDURE Procedure;
  572. END erudecorP;
  573. END Test.
  574. positive: procedure missing concluding semicolon
  575. MODULE Test;
  576. PROCEDURE Procedure;
  577. END Procedure
  578. END Test.
  579. positive: plain procedure with parentheses
  580. MODULE Test;
  581. PROCEDURE Procedure ();
  582. END Procedure;
  583. END Test.
  584. negative: procedure missing return type
  585. MODULE Test;
  586. PROCEDURE Procedure ():;
  587. END Procedure;
  588. END Test.
  589. negative: procedure with return type missing parentheses
  590. MODULE Test;
  591. PROCEDURE Procedure: BOOLEAN;
  592. END Procedure;
  593. END Test.
  594. negative: procedure with return type missing colon
  595. MODULE Test;
  596. PROCEDURE Procedure () BOOLEAN;
  597. END Procedure;
  598. END Test.
  599. positive: procedure with empty parameter list
  600. MODULE Test;
  601. PROCEDURE Procedure ();
  602. END Procedure;
  603. END Test.
  604. negative: procedure with parameter list missing parameter section
  605. MODULE Test;
  606. PROCEDURE Procedure (;);
  607. END Procedure;
  608. END Test.
  609. negative: procedure with parameter missing name
  610. MODULE Test;
  611. PROCEDURE Procedure (: SET);
  612. END Procedure;
  613. END Test.
  614. negative: procedure with parameter missing colon
  615. MODULE Test;
  616. PROCEDURE Procedure (parameter SET);
  617. END Procedure;
  618. END Test.
  619. negative: procedure with parameter missing type
  620. MODULE Test;
  621. PROCEDURE Procedure (parameter:);
  622. END Procedure;
  623. END Test.
  624. # intermixed section types
  625. negative: import section before import section
  626. MODULE Test;
  627. IMPORT A := Dummy;
  628. IMPORT B := Dummy;
  629. END Test.
  630. positive: import section before const section
  631. MODULE Test;
  632. IMPORT Import := Dummy;
  633. CONST Constant = 0;
  634. END Test.
  635. positive: import section before type section
  636. MODULE Test;
  637. IMPORT Import := Dummy;
  638. TYPE Type = RECORD END;
  639. END Test.
  640. positive: import section before var section
  641. MODULE Test;
  642. IMPORT Import := Dummy;
  643. VAR variable: RECORD END;
  644. END Test.
  645. positive: import section before procedure section
  646. MODULE Test;
  647. IMPORT Import := Dummy;
  648. PROCEDURE Procedure; END Procedure;
  649. END Test.
  650. negative: const section before import section
  651. MODULE Test;
  652. CONST Constant = 0;
  653. IMPORT Import := Dummy;
  654. END Test.
  655. positive: const section before const section
  656. MODULE Test;
  657. CONST A = 0;
  658. CONST B = 0;
  659. END Test.
  660. positive: const section before type section
  661. MODULE Test;
  662. CONST Constant = 0;
  663. TYPE Type = RECORD END;
  664. END Test.
  665. positive: const section before var section
  666. MODULE Test;
  667. CONST Constant = 0;
  668. VAR variable: RECORD END;
  669. END Test.
  670. positive: const section before procedure section
  671. MODULE Test;
  672. CONST Constant = 0;
  673. PROCEDURE Procedure; END Procedure;
  674. END Test.
  675. negative: type section before import section
  676. MODULE Test;
  677. TYPE Type = RECORD END;
  678. IMPORT Import := Dummy;
  679. END Test.
  680. positive: type section before const section
  681. MODULE Test;
  682. TYPE Type = RECORD END;
  683. CONST Constant = 0;
  684. END Test.
  685. positive: type section before type section
  686. MODULE Test;
  687. TYPE A = RECORD END;
  688. TYPE B = RECORD END;
  689. END Test.
  690. positive: type section before var section
  691. MODULE Test;
  692. TYPE Type = RECORD END;
  693. VAR variable: RECORD END;
  694. END Test.
  695. positive: type section before procedure section
  696. MODULE Test;
  697. TYPE Type = RECORD END;
  698. PROCEDURE Procedure; END Procedure;
  699. END Test.
  700. negative: var section before import section
  701. MODULE Test;
  702. VAR variable: RECORD END;
  703. IMPORT Import := Dummy;
  704. END Test.
  705. positive: var section before const section
  706. MODULE Test;
  707. VAR variable: RECORD END;
  708. CONST Constant = 0;
  709. END Test.
  710. positive: var section before type section
  711. MODULE Test;
  712. VAR variable: RECORD END;
  713. TYPE Type = RECORD END;
  714. END Test.
  715. positive: var section before var section
  716. MODULE Test;
  717. VAR a: RECORD END;
  718. VAR b: RECORD END;
  719. END Test.
  720. positive: var section before procedure section
  721. MODULE Test;
  722. VAR variable: RECORD END;
  723. PROCEDURE Procedure; END Procedure;
  724. END Test.
  725. negative: procedure section before import section
  726. MODULE Test;
  727. PROCEDURE Procedure; END Procedure;
  728. IMPORT Import := Dummy;
  729. END Test.
  730. positive: procedure section before const section
  731. MODULE Test;
  732. PROCEDURE Procedure; END Procedure;
  733. CONST Constant = 0;
  734. END Test.
  735. positive: procedure section before type section
  736. MODULE Test;
  737. PROCEDURE Procedure; END Procedure;
  738. TYPE Type = RECORD END;
  739. END Test.
  740. positive: procedure section before var section
  741. MODULE Test;
  742. PROCEDURE Procedure; END Procedure;
  743. VAR variable: RECORD END;
  744. END Test.
  745. positive: procedure section before procedure section
  746. MODULE Test;
  747. PROCEDURE A; END A;
  748. PROCEDURE B; END B;
  749. END Test.
  750. # bodies
  751. positive: omitted module body
  752. MODULE Test;
  753. END Test.
  754. positive: empty module body
  755. MODULE Test;
  756. BEGIN
  757. END Test.
  758. positive: omitted procedure body
  759. MODULE Test;
  760. PROCEDURE Procedure;
  761. END Procedure;
  762. END Test.
  763. positive: empty procedure body
  764. MODULE Test;
  765. PROCEDURE Procedure;
  766. BEGIN
  767. END Procedure;
  768. END Test.
  769. positive: omitted object body
  770. MODULE Test;
  771. TYPE Object = OBJECT
  772. END Object;
  773. END Test.
  774. positive: empty object body
  775. MODULE Test;
  776. TYPE Object = OBJECT
  777. BEGIN
  778. END Object;
  779. END Test.
  780. # statements
  781. positive: statement with semicolon
  782. MODULE Test;
  783. BEGIN BEGIN END;
  784. END Test.
  785. positive: statement without semicolon
  786. MODULE Test;
  787. BEGIN BEGIN END
  788. END Test.
  789. positive: empty statements at the beginning
  790. MODULE Test;
  791. BEGIN ;;;; BEGIN END
  792. END Test.
  793. positive: empty statements between statements
  794. MODULE Test;
  795. BEGIN BEGIN END ;;;; BEGIN END
  796. END Test.
  797. positive: empty statements at the end
  798. MODULE Test;
  799. BEGIN BEGIN END ;;;;
  800. END Test.
  801. positive: nested empty statements at the beginning
  802. MODULE Test;
  803. BEGIN BEGIN ;;;; BEGIN END END
  804. END Test.
  805. positive: nested empty statements between statements
  806. MODULE Test;
  807. BEGIN BEGIN BEGIN END ;;;; BEGIN END END
  808. END Test.
  809. positive: nested empty statements at the end
  810. MODULE Test;
  811. BEGIN BEGIN BEGIN END ;;;; END
  812. END Test.
  813. negative: two consecutive statements without semicolon
  814. MODULE Test;
  815. BEGIN BEGIN END BEGIN END
  816. END Test.
  817. negative: two nested consecutive statements without semicolon
  818. MODULE Test;
  819. BEGIN BEGIN BEGIN END BEGIN END END
  820. END Test.
  821. negative: three consecutive statements without semicolon
  822. MODULE Test;
  823. BEGIN BEGIN END BEGIN END BEGIN END
  824. END Test.
  825. negative: three nested consecutive statements without semicolon
  826. MODULE Test;
  827. BEGIN BEGIN BEGIN END BEGIN END BEGIN END END
  828. END Test.
  829. negative: unclosed block
  830. MODULE Test;
  831. BEGIN BEGIN
  832. END Test.
  833. negative: unclosed nested block
  834. MODULE Test;
  835. BEGIN BEGIN BEGIN END
  836. END Test.
  837. negative: unopened block
  838. MODULE Test;
  839. BEGIN END
  840. END Test.
  841. negative: unopened nested block
  842. MODULE Test;
  843. BEGIN BEGIN END END
  844. END Test.
  845. positive: empty block modifier
  846. MODULE Test;
  847. BEGIN {}
  848. END Test.
  849. positive: empty nested block modifier
  850. MODULE Test;
  851. BEGIN BEGIN {} END
  852. END Test.
  853. positive: single block modifier
  854. MODULE Test;
  855. BEGIN {EXCLUSIVE}
  856. END Test.
  857. positive: multiple block modifiers
  858. MODULE Test;
  859. TYPE Object = OBJECT
  860. BEGIN {ACTIVE, EXCLUSIVE}
  861. END Object;
  862. END Test.
  863. negative: multiple block modifiers missing separating comma
  864. MODULE Test;
  865. TYPE Object = OBJECT
  866. BEGIN {ACTIVE EXCLUSIVE}
  867. END Object;
  868. END Test.
  869. negative: empty block modifier with separating comma
  870. MODULE Test;
  871. TYPE Object = OBJECT
  872. BEGIN {,}
  873. END Object;
  874. END Test.
  875. negative: exported block modifier
  876. MODULE Test;
  877. BEGIN {EXCLUSIVE*}
  878. END Test.
  879. negative: while statement missing while
  880. MODULE Test;
  881. VAR condition: BOOLEAN;
  882. BEGIN condition DO END
  883. END Test.
  884. negative: while statement missing condition
  885. MODULE Test;
  886. BEGIN WHILE DO END
  887. END Test.
  888. negative: while statement missing do
  889. MODULE Test;
  890. VAR condition: BOOLEAN;
  891. BEGIN WHILE condition END
  892. END Test.
  893. negative: while statement missing end
  894. MODULE Test;
  895. VAR condition: BOOLEAN;
  896. BEGIN WHILE condition DO
  897. END Test.
  898. positive: nested while statement
  899. MODULE Test;
  900. VAR condition: BOOLEAN;
  901. BEGIN WHILE condition DO WHILE condition DO END END
  902. END Test.
  903. negative: repeat statement missing repeat
  904. MODULE Test;
  905. VAR condition: BOOLEAN;
  906. BEGIN UNTIL condition
  907. END Test.
  908. negative: repeat statement missing until
  909. MODULE Test;
  910. VAR condition: BOOLEAN;
  911. BEGIN REPEAT condition
  912. END Test.
  913. negative: repeat statement missing condition
  914. MODULE Test;
  915. BEGIN REPEAT UNTIL
  916. END Test.
  917. positive: nested repeat statement
  918. MODULE Test;
  919. VAR condition: BOOLEAN;
  920. BEGIN REPEAT REPEAT UNTIL condition UNTIL condition
  921. END Test.
  922. negative: loop statement missing loop
  923. MODULE Test;
  924. BEGIN END
  925. END Test.
  926. negative: loop statement missing end
  927. MODULE Test;
  928. BEGIN LOOP
  929. END Test.
  930. positive: nested loop statement
  931. MODULE Test;
  932. BEGIN LOOP LOOP END END
  933. END Test.
  934. negative: await statement missing parentheses
  935. MODULE Test;
  936. VAR condition: BOOLEAN;
  937. BEGIN {EXCLUSIVE} AWAIT condition
  938. END Test;
  939. negative: await statement missing closing parenthesis
  940. MODULE Test;
  941. VAR condition: BOOLEAN;
  942. BEGIN {EXCLUSIVE} AWAIT (condition
  943. END Test;
  944. negative: await statement missing opening parenthesis
  945. MODULE Test;
  946. VAR condition: BOOLEAN;
  947. BEGIN {EXCLUSIVE} AWAIT condition)
  948. END Test;
  949. negative: await statement missing condition with parentheses
  950. MODULE Test;
  951. VAR condition: BOOLEAN;
  952. BEGIN {EXCLUSIVE} AWAIT ()
  953. END Test;
  954. negative: await statement missing condition without parentheses
  955. MODULE Test;
  956. VAR condition: BOOLEAN;
  957. BEGIN {EXCLUSIVE} AWAIT
  958. END Test;
  959. negative: assignment missing left hand side
  960. MODULE Test;
  961. VAR variable: INTEGER;
  962. BEGIN := 0;
  963. END Test;
  964. negative: assignment missing assign
  965. MODULE Test;
  966. VAR variable: INTEGER;
  967. BEGIN variable 0;
  968. END Test;
  969. negative: assignment missing right hand side
  970. MODULE Test;
  971. VAR variable: INTEGER;
  972. BEGIN variable := ;
  973. END Test;
  974. negative: cascaded assignment
  975. MODULE Test;
  976. VAR variable: INTEGER;
  977. BEGIN variable := variable := 5;
  978. END Test;
  979. negative: for statement missing counter
  980. MODULE Test;
  981. BEGIN FOR := 0 TO 10 DO END
  982. END Test.
  983. negative: for statement missing assignment
  984. MODULE Test;
  985. VAR i: INTEGER;
  986. BEGIN FOR i 0 TO 10 DO END
  987. END Test.
  988. negative: for statement missing start counter
  989. MODULE Test;
  990. VAR i: INTEGER;
  991. BEGIN FOR i := TO 10 DO END
  992. END Test.
  993. negative: for statement missing to
  994. MODULE Test;
  995. VAR i: INTEGER;
  996. BEGIN FOR i := 0 10 DO END
  997. END Test.
  998. negative: for statement missing end counter
  999. MODULE Test;
  1000. VAR i: INTEGER;
  1001. BEGIN FOR i := 0 TO DO END
  1002. END Test.
  1003. negative: for statement missing do
  1004. MODULE Test;
  1005. VAR i: INTEGER;
  1006. BEGIN FOR i := 0 TO 10 END
  1007. END Test.
  1008. negative: for statement missing end
  1009. MODULE Test;
  1010. VAR i: INTEGER;
  1011. BEGIN FOR i := 0 TO 10 DO
  1012. END Test.
  1013. positive: for statement without increment
  1014. MODULE Test;
  1015. VAR i: INTEGER;
  1016. BEGIN FOR i := 0 TO 10 DO END
  1017. END Test.
  1018. negative: for statement with increment missing by
  1019. MODULE Test;
  1020. VAR i: INTEGER;
  1021. BEGIN FOR i := 0 TO 10 1 DO END
  1022. END Test.
  1023. negative: for statement with increment missing increment
  1024. MODULE Test;
  1025. VAR i: INTEGER;
  1026. BEGIN FOR i := 0 TO 10 BY DO END
  1027. END Test.
  1028. negative: plain assert statement
  1029. MODULE Test;
  1030. BEGIN ASSERT
  1031. END Test.
  1032. negative: assert statement missing condition
  1033. MODULE Test;
  1034. BEGIN ASSERT ()
  1035. END Test.
  1036. negative: assert statement missing opening parenthesis
  1037. MODULE Test;
  1038. BEGIN ASSERT TRUE)
  1039. END Test.
  1040. negative: assert statement missing closing parenthesis
  1041. MODULE Test;
  1042. BEGIN ASSERT (TRUE
  1043. END Test.
  1044. negative: assert statement missing comma
  1045. MODULE Test;
  1046. BEGIN ASSERT (TRUE 5)
  1047. END Test.
  1048. negative: assert statement missing number
  1049. MODULE Test;
  1050. BEGIN ASSERT (TRUE,)
  1051. END Test.
  1052. negative: if statement missing if
  1053. MODULE Test;
  1054. VAR condition: BOOLEAN;
  1055. BEGIN condition THEN END
  1056. END Test.
  1057. negative: if statement missing condition
  1058. MODULE Test;
  1059. BEGIN IF THEN END
  1060. END Test.
  1061. negative: if statement missing then
  1062. MODULE Test;
  1063. VAR condition: BOOLEAN;
  1064. BEGIN IF condition END
  1065. END Test.
  1066. negative: if statement missing end
  1067. MODULE Test;
  1068. VAR condition: BOOLEAN;
  1069. BEGIN IF condition THEN
  1070. END Test.
  1071. negative: if statement with else missing then
  1072. MODULE Test;
  1073. VAR condition: BOOLEAN;
  1074. BEGIN IF condition ELSE END
  1075. END Test.
  1076. negative: if statement with else missing end
  1077. MODULE Test;
  1078. VAR condition: BOOLEAN;
  1079. BEGIN IF condition THEN ELSE
  1080. END Test.
  1081. positive: nested if statement in then part
  1082. MODULE Test;
  1083. VAR condition: BOOLEAN;
  1084. BEGIN IF condition THEN IF condition THEN END END
  1085. END Test.
  1086. positive: nested if statement in else part
  1087. MODULE Test;
  1088. VAR condition: BOOLEAN;
  1089. BEGIN IF condition THEN ELSE IF condition THEN END END
  1090. END Test.
  1091. negative: else if statement missing elsif
  1092. MODULE Test;
  1093. VAR condition: BOOLEAN;
  1094. BEGIN IF TRUE THEN condition THEN END
  1095. END Test.
  1096. negative: else if statement missing condition
  1097. MODULE Test;
  1098. VAR condition: BOOLEAN;
  1099. BEGIN IF TRUE THEN ELSIF THEN END
  1100. END Test.
  1101. negative: else if statement missing then
  1102. MODULE Test;
  1103. VAR condition: BOOLEAN;
  1104. BEGIN IF TRUE THEN ELSIF condition END
  1105. END Test.
  1106. negative: else if statement missing end
  1107. MODULE Test;
  1108. VAR condition: BOOLEAN;
  1109. BEGIN IF TRUE THEN ELSIF condition THEN
  1110. END Test.
  1111. negative: else if statement with else missing then
  1112. MODULE Test;
  1113. VAR condition: BOOLEAN;
  1114. BEGIN IF TRUE THEN ELSIF condition ELSE END
  1115. END Test.
  1116. negative: else if statement with else missing end
  1117. MODULE Test;
  1118. VAR condition: BOOLEAN;
  1119. BEGIN IF TRUE THEN ELSIF condition THEN ELSE
  1120. END Test.
  1121. positive: nested else if statement in then part
  1122. MODULE Test;
  1123. VAR condition: BOOLEAN;
  1124. BEGIN IF TRUE THEN ELSIF condition THEN IF TRUE THEN ELSIF condition THEN END END
  1125. END Test.
  1126. positive: nested else if statement in else part
  1127. MODULE Test;
  1128. VAR condition: BOOLEAN;
  1129. BEGIN IF TRUE THEN ELSIF condition THEN ELSE IF TRUE THEN ELSIF condition THEN END END
  1130. END Test.
  1131. positive: multiple else if statements
  1132. MODULE Test;
  1133. VAR condition: BOOLEAN;
  1134. BEGIN IF TRUE THEN ELSIF condition THEN ELSIF condition THEN ELSIF condition THEN ELSIF condition THEN END
  1135. END Test.
  1136. positive: multiple else if statements with else
  1137. MODULE Test;
  1138. VAR condition: BOOLEAN;
  1139. BEGIN IF TRUE THEN ELSIF condition THEN ELSIF condition THEN ELSIF condition THEN ELSIF condition THEN ELSE END
  1140. END Test.
  1141. negative: plain halt statement
  1142. MODULE Test;
  1143. BEGIN HALT
  1144. END Test.
  1145. negative: halt statement missing number
  1146. MODULE Test;
  1147. BEGIN HALT ()
  1148. END Test.
  1149. negative: halt statement missing opening parenthesis
  1150. MODULE Test;
  1151. BEGIN HALT 5)
  1152. END Test.
  1153. negative: halt statement missing closing parenthesis
  1154. MODULE Test;
  1155. BEGIN HALT (5
  1156. END Test.
  1157. negative: empty case statement
  1158. MODULE Test;
  1159. BEGIN CASE 0 OF END
  1160. END Test.
  1161. negative: empty case statement with else
  1162. MODULE Test;
  1163. BEGIN CASE 0 OF ELSE END
  1164. END Test.
  1165. negative: empty case statement missing case
  1166. MODULE Test;
  1167. BEGIN 0 OF END
  1168. END Test.
  1169. negative: empty case statement missing value
  1170. MODULE Test;
  1171. BEGIN CASE OF END
  1172. END Test.
  1173. negative: empty case statement missing of
  1174. MODULE Test;
  1175. BEGIN CASE 0 END
  1176. END Test.
  1177. negative: empty case statement missing end
  1178. MODULE Test;
  1179. BEGIN CASE 0 OF
  1180. END Test.
  1181. positive: case statement with simple case
  1182. MODULE Test;
  1183. BEGIN CASE 0 OF 0: END
  1184. END Test.
  1185. positive: case statement with simple case with leading bar
  1186. MODULE Test;
  1187. BEGIN CASE 0 OF | 0: END
  1188. END Test.
  1189. negative: case statement with simple case with leading bars
  1190. MODULE Test;
  1191. BEGIN CASE 0 OF || 0: END
  1192. END Test.
  1193. negative: case statement with simple case with trailing bar
  1194. MODULE Test;
  1195. BEGIN CASE 0 OF 0: | END
  1196. END Test.
  1197. negative: case statement with simple case with trailing bars
  1198. MODULE Test;
  1199. BEGIN CASE 0 OF 0: || END
  1200. END Test.
  1201. positive: case statement with simple case with else
  1202. MODULE Test;
  1203. BEGIN CASE 0 OF 0: ELSE END
  1204. END Test.
  1205. negative: case statement with simple case missing case
  1206. MODULE Test;
  1207. BEGIN 0 OF 0: END
  1208. END Test.
  1209. negative: case statement with simple case missing value
  1210. MODULE Test;
  1211. BEGIN CASE OF 0: END
  1212. END Test.
  1213. negative: case statement with simple case missing of
  1214. MODULE Test;
  1215. BEGIN CASE 0 0: END
  1216. END Test.
  1217. negative: case statement with simple case missing value in case
  1218. MODULE Test;
  1219. BEGIN CASE 0 OF : END
  1220. END Test.
  1221. negative: case statement with simple case missing colon in case
  1222. MODULE Test;
  1223. BEGIN CASE 0 OF 0 END
  1224. END Test.
  1225. negative: case statement with simple case missing end
  1226. MODULE Test;
  1227. BEGIN CASE 0 OF 0:
  1228. END Test.
  1229. positive: case statement with simple case range
  1230. MODULE Test;
  1231. BEGIN CASE 0 OF 0..1: END
  1232. END Test.
  1233. positive: case statement with simple case range with else
  1234. MODULE Test;
  1235. BEGIN CASE 0 OF 0..1: ELSE END
  1236. END Test.
  1237. negative: case statement with simple case range missing first case
  1238. MODULE Test;
  1239. BEGIN 0 OF ..1: END
  1240. END Test.
  1241. negative: case statement with simple case range missing range
  1242. MODULE Test;
  1243. BEGIN 0 OF 0 1: END
  1244. END Test.
  1245. negative: case statement with simple case range missing last case
  1246. MODULE Test;
  1247. BEGIN 0 OF 0..: END
  1248. END Test.
  1249. negative: case statement with simple case range of multiple values
  1250. MODULE Test;
  1251. BEGIN CASE 0 OF 0..1..2: END
  1252. END Test.
  1253. positive: case statement with complex case
  1254. MODULE Test;
  1255. BEGIN CASE 0 OF 0, 1, 2: END
  1256. END Test.
  1257. positive: case statement with complex case with else
  1258. MODULE Test;
  1259. BEGIN CASE 0 OF 0, 1, 2: ELSE END
  1260. END Test.
  1261. negative: case statement with complex case missing first value in case
  1262. MODULE Test;
  1263. BEGIN CASE 0 OF , 1: END
  1264. END Test.
  1265. negative: case statement with complex case missing comma in case
  1266. MODULE Test;
  1267. BEGIN CASE 0 OF 0, : END
  1268. END Test.
  1269. negative: case statement with complex case missing second value in case
  1270. MODULE Test;
  1271. BEGIN CASE 0 OF 0, : END
  1272. END Test.
  1273. positive: case statement with complex case range
  1274. MODULE Test;
  1275. BEGIN CASE 0 OF 0..1, 2..3, 4..5: END
  1276. END Test.
  1277. positive: case statement with complex case range with else
  1278. MODULE Test;
  1279. BEGIN CASE 0 OF 0..1, 2..3, 4..5: ELSE END
  1280. END Test.
  1281. negative: case statement with complex case range missing first case
  1282. MODULE Test;
  1283. BEGIN 0 OF 0..1, ..3: END
  1284. END Test.
  1285. negative: case statement with complex case range missing range
  1286. MODULE Test;
  1287. BEGIN 0 OF 0..1, 2 3: END
  1288. END Test.
  1289. negative: case statement with complex case range missing last case
  1290. MODULE Test;
  1291. BEGIN 0 OF 0..1, 2..: END
  1292. END Test.
  1293. positive: case statement with two cases
  1294. MODULE Test;
  1295. BEGIN CASE 0 OF 0: | 1: END
  1296. END Test.
  1297. positive: case statement with two cases with else
  1298. MODULE Test;
  1299. BEGIN CASE 0 OF 0: | 1: END
  1300. END Test.
  1301. positive: case statement with two cases missing first case
  1302. MODULE Test;
  1303. BEGIN CASE 0 OF | 0: END
  1304. END Test.
  1305. negative: case statement with two cases missing bar
  1306. MODULE Test;
  1307. BEGIN CASE 0 OF 0: 1: END
  1308. END Test.
  1309. negative: case statement with two cases missing second case
  1310. MODULE Test;
  1311. BEGIN CASE 0 OF 0: | END
  1312. END Test.
  1313. positive: case statement with three cases
  1314. MODULE Test;
  1315. BEGIN CASE 0 OF 0: | 1: | 2: END
  1316. END Test.
  1317. positive: case statement with three cases with else
  1318. MODULE Test;
  1319. BEGIN CASE 0 OF 0: | 1: | 2: ELSE END
  1320. END Test.
  1321. negative: with statement missing with
  1322. MODULE Test;
  1323. TYPE Type = OBJECT;
  1324. VAR value: Type;
  1325. BEGIN value : Type DO END
  1326. END Test.
  1327. negative: with statement missing value
  1328. MODULE Test;
  1329. TYPE Type = OBJECT;
  1330. BEGIN WITH : Type DO END
  1331. END Test.
  1332. negative: with statement missing colon
  1333. MODULE Test;
  1334. TYPE Type = OBJECT;
  1335. VAR value: Type;
  1336. BEGIN WITH value Type DO END
  1337. END Test.
  1338. negative: with statement missing type
  1339. MODULE Test;
  1340. VAR value: OBJECT;
  1341. BEGIN WITH value : DO END
  1342. END Test.
  1343. negative: with statement missing do
  1344. MODULE Test;
  1345. TYPE Type = OBJECT;
  1346. VAR value: Type;
  1347. BEGIN WITH value : Type END
  1348. END Test.
  1349. negative: with statement missing end
  1350. MODULE Test;
  1351. TYPE Type = OBJECT;
  1352. VAR value: Type;
  1353. BEGIN WITH value : Type DO
  1354. END Test.
  1355. negative: plain new statement
  1356. MODULE Test;
  1357. VAR object: OBJECT END;
  1358. BEGIN NEW;
  1359. END Test.
  1360. negative: new statement missing new
  1361. MODULE Test;
  1362. VAR object: OBJECT END;
  1363. BEGIN (object);
  1364. END Test.
  1365. negative: new statement missing opening parenthesis
  1366. MODULE Test;
  1367. VAR object: OBJECT END;
  1368. BEGIN NEW object);
  1369. END Test.
  1370. negative: new statement missing reference
  1371. MODULE Test;
  1372. BEGIN NEW ();
  1373. END Test.
  1374. negative: new statement missing closing parenthesis
  1375. MODULE Test;
  1376. VAR object: OBJECT END;
  1377. BEGIN NEW (object;
  1378. END Test.
  1379. negative: plain increment statement
  1380. MODULE Test;
  1381. BEGIN INC
  1382. END Test.
  1383. negative: increment statement missing integer
  1384. MODULE Test;
  1385. BEGIN INC ()
  1386. END Test.
  1387. negative: increment statement missing opening parenthesis
  1388. MODULE Test;
  1389. VAR integer: INTEGER;
  1390. BEGIN INC integer)
  1391. END Test.
  1392. negative: increment statement missing closing parenthesis
  1393. MODULE Test;
  1394. VAR integer: INTEGER;
  1395. BEGIN INC (integer
  1396. END Test.
  1397. negative: increment statement missing comma
  1398. MODULE Test;
  1399. VAR integer: INTEGER;
  1400. BEGIN INC (integer 5)
  1401. END Test.
  1402. negative: increment statement missing increment
  1403. MODULE Test;
  1404. VAR integer: INTEGER;
  1405. BEGIN INC (integer,)
  1406. END Test.
  1407. positive: increment statement missing increment and comma
  1408. MODULE Test;
  1409. VAR integer: INTEGER;
  1410. BEGIN INC (integer)
  1411. END Test.
  1412. negative: plain decrement statement
  1413. MODULE Test;
  1414. BEGIN DEC
  1415. END Test.
  1416. negative: decrement statement missing integer
  1417. MODULE Test;
  1418. BEGIN DEC ()
  1419. END Test.
  1420. negative: decrement statement missing opening parenthesis
  1421. MODULE Test;
  1422. VAR integer: INTEGER;
  1423. BEGIN DEC integer)
  1424. END Test.
  1425. negative: decrement statement missing closing parenthesis
  1426. MODULE Test;
  1427. VAR integer: INTEGER;
  1428. BEGIN DEC (integer
  1429. END Test.
  1430. negative: decrement statement missing comma
  1431. MODULE Test;
  1432. VAR integer: INTEGER;
  1433. BEGIN DEC (integer 5)
  1434. END Test.
  1435. negative: decrement statement missing increment
  1436. MODULE Test;
  1437. VAR integer: INTEGER;
  1438. BEGIN DEC (integer,)
  1439. END Test.
  1440. positive: decrement statement missing increment and comma
  1441. MODULE Test;
  1442. VAR integer: INTEGER;
  1443. BEGIN DEC (integer)
  1444. END Test.
  1445. negative: plain include statement
  1446. MODULE Test;
  1447. BEGIN INCL
  1448. END Test.
  1449. negative: include statement missing set
  1450. MODULE Test;
  1451. BEGIN INCL ()
  1452. END Test.
  1453. negative: include statement missing opening parenthesis
  1454. MODULE Test;
  1455. VAR set: SET;
  1456. BEGIN INCL set)
  1457. END Test.
  1458. negative: include statement missing closing parenthesis
  1459. MODULE Test;
  1460. VAR set: SET;
  1461. BEGIN INCL (set
  1462. END Test.
  1463. negative: include statement missing comma
  1464. MODULE Test;
  1465. VAR set: SET;
  1466. BEGIN INCL (set 5)
  1467. END Test.
  1468. negative: include statement missing element
  1469. MODULE Test;
  1470. VAR set: SET;
  1471. BEGIN INCL (set,)
  1472. END Test.
  1473. negative: include statement missing element and comma
  1474. MODULE Test;
  1475. VAR set: SET;
  1476. BEGIN INCL (set)
  1477. END Test.
  1478. negative: plain exclude statement
  1479. MODULE Test;
  1480. BEGIN EXCL
  1481. END Test.
  1482. negative: exclude statement missing set
  1483. MODULE Test;
  1484. BEGIN EXCL ()
  1485. END Test.
  1486. negative: exclude statement missing opening parenthesis
  1487. MODULE Test;
  1488. VAR set: SET;
  1489. BEGIN EXCL set)
  1490. END Test.
  1491. negative: exclude statement missing closing parenthesis
  1492. MODULE Test;
  1493. VAR set: SET;
  1494. BEGIN EXCL (set
  1495. END Test.
  1496. negative: exclude statement missing comma
  1497. MODULE Test;
  1498. VAR set: SET;
  1499. BEGIN EXCL (set 5)
  1500. END Test.
  1501. negative: exclude statement missing element
  1502. MODULE Test;
  1503. VAR set: SET;
  1504. BEGIN EXCL (set,)
  1505. END Test.
  1506. negative: exclude statement missing element and comma
  1507. MODULE Test;
  1508. VAR set: SET;
  1509. BEGIN EXCL (set)
  1510. END Test.
  1511. negative: plain copy statement
  1512. MODULE Test;
  1513. BEGIN COPY
  1514. END Test.
  1515. negative: copy statement missing source
  1516. MODULE Test;
  1517. BEGIN COPY ()
  1518. END Test.
  1519. negative: copy statement missing opening parenthesis
  1520. MODULE Test;
  1521. VAR source: ARRAY 10 OF CHAR;
  1522. BEGIN COPY source)
  1523. END Test.
  1524. negative: copy statement missing closing parenthesis
  1525. MODULE Test;
  1526. VAR source: ARRAY 10 OF CHAR;
  1527. BEGIN COPY (source
  1528. END Test.
  1529. negative: copy statement missing comma
  1530. MODULE Test;
  1531. VAR source, dest: ARRAY 10 OF CHAR;
  1532. BEGIN COPY (source dest)
  1533. END Test.
  1534. negative: copy statement missing destination
  1535. MODULE Test;
  1536. VAR source: ARRAY 10 OF CHAR;
  1537. BEGIN COPY (source,)
  1538. END Test.
  1539. negative: copy statement missing destination and comma
  1540. MODULE Test;
  1541. VAR source: ARRAY 10 OF CHAR;
  1542. BEGIN COPY (source)
  1543. END Test.
  1544. # predefined identifiers
  1545. negative: redefining abs
  1546. MODULE Test;
  1547. CONST ABS = 0;
  1548. END Test.
  1549. negative: redefining array
  1550. MODULE Test;
  1551. CONST ARRAY = 0;
  1552. END Test.
  1553. negative: redefining ash
  1554. MODULE Test;
  1555. CONST ASH = 0;
  1556. END Test.
  1557. negative: redefining assert
  1558. MODULE Test;
  1559. CONST ASSERT = 0;
  1560. END Test.
  1561. negative: redefining await
  1562. MODULE Test;
  1563. CONST AWAIT = 0;
  1564. END Test.
  1565. negative: redefining begin
  1566. MODULE Test;
  1567. CONST BEGIN = 0;
  1568. END Test.
  1569. negative: redefining boolean
  1570. MODULE Test;
  1571. CONST BOOLEAN = 0;
  1572. END Test.
  1573. negative: redefining by
  1574. MODULE Test;
  1575. CONST BY = 0;
  1576. END Test.
  1577. negative: redefining cap
  1578. MODULE Test;
  1579. CONST CAP = 0;
  1580. END Test.
  1581. negative: redefining case
  1582. MODULE Test;
  1583. CONST CASE = 0;
  1584. END Test.
  1585. negative: redefining char
  1586. MODULE Test;
  1587. CONST CHAR = 0;
  1588. END Test.
  1589. negative: redefining chr
  1590. MODULE Test;
  1591. CONST CHR = 0;
  1592. END Test.
  1593. negative: redefining const
  1594. MODULE Test;
  1595. VAR CONST: SET;
  1596. END Test.
  1597. negative: redefining copy
  1598. MODULE Test;
  1599. CONST COPY = 0;
  1600. END Test.
  1601. negative: redefining dec
  1602. MODULE Test;
  1603. CONST DEC = 0;
  1604. END Test.
  1605. negative: redefining definition
  1606. MODULE Test;
  1607. CONST DEFINITION = 0;
  1608. END Test.
  1609. negative: redefining div
  1610. MODULE Test;
  1611. CONST DIV = 0;
  1612. END Test.
  1613. negative: redefining do
  1614. MODULE Test;
  1615. CONST DO = 0;
  1616. END Test.
  1617. negative: redefining else
  1618. MODULE Test;
  1619. CONST ELSE = 0;
  1620. END Test.
  1621. negative: redefining elseif
  1622. MODULE Test;
  1623. CONST ELSIF = 0;
  1624. END Test.
  1625. negative: redefining end
  1626. MODULE Test;
  1627. CONST END = 0;
  1628. END Test.
  1629. negative: redefining entier
  1630. MODULE Test;
  1631. CONST ENTIER = 0;
  1632. END Test.
  1633. negative: redefining excl
  1634. MODULE Test;
  1635. CONST EXCL = 0;
  1636. END Test.
  1637. negative: redefining exit
  1638. MODULE Test;
  1639. CONST EXIT = 0;
  1640. END Test.
  1641. negative: redefining false
  1642. MODULE Test;
  1643. CONST FALSE = 0;
  1644. END Test.
  1645. negative: redefining finally
  1646. MODULE Test;
  1647. CONST FINALLY = 0;
  1648. END Test.
  1649. negative: redefining for
  1650. MODULE Test;
  1651. CONST FOR = 0;
  1652. END Test.
  1653. negative: redefining halt
  1654. MODULE Test;
  1655. CONST HALT = 0;
  1656. END Test.
  1657. negative: redefining hugeint
  1658. MODULE Test;
  1659. CONST HUGEINT = 0;
  1660. END Test.
  1661. negative: redefining if
  1662. MODULE Test;
  1663. CONST IF = 0;
  1664. END Test.
  1665. negative: redefining import
  1666. MODULE Test;
  1667. CONST IMPORT = 0;
  1668. END Test.
  1669. negative: redefining in
  1670. MODULE Test;
  1671. CONST IN = 0;
  1672. END Test.
  1673. negative: redefining inc
  1674. MODULE Test;
  1675. CONST INC = 0;
  1676. END Test.
  1677. negative: redefining incl
  1678. MODULE Test;
  1679. CONST INCL = 0;
  1680. END Test.
  1681. negative: redefining integer
  1682. MODULE Test;
  1683. CONST INTEGER = 0;
  1684. END Test.
  1685. negative: redefining is
  1686. MODULE Test;
  1687. CONST IS = 0;
  1688. END Test.
  1689. negative: redefining len
  1690. MODULE Test;
  1691. CONST LEN = 0;
  1692. END Test.
  1693. negative: redefining long
  1694. MODULE Test;
  1695. CONST LONG = 0;
  1696. END Test.
  1697. negative: redefining longint
  1698. MODULE Test;
  1699. CONST LONGINT = 0;
  1700. END Test.
  1701. negative: redefining longreal
  1702. MODULE Test;
  1703. CONST LONGREAL = 0;
  1704. END Test.
  1705. negative: redefining loop
  1706. MODULE Test;
  1707. CONST LOOP = 0;
  1708. END Test.
  1709. negative: redefining max
  1710. MODULE Test;
  1711. CONST MAX = 0;
  1712. END Test.
  1713. negative: redefining min
  1714. MODULE Test;
  1715. CONST MIN = 0;
  1716. END Test.
  1717. negative: redefining mod
  1718. MODULE Test;
  1719. CONST MOD = 0;
  1720. END Test.
  1721. negative: redefining module
  1722. MODULE Test;
  1723. CONST MODULE = 0;
  1724. END Test.
  1725. negative: redefining new
  1726. MODULE Test;
  1727. CONST NEW = 0;
  1728. END Test.
  1729. negative: redefining nil
  1730. MODULE Test;
  1731. CONST NIL = 0;
  1732. END Test.
  1733. negative: redefining object
  1734. MODULE Test;
  1735. CONST OBJECT = 0;
  1736. END Test.
  1737. negative: redefining odd
  1738. MODULE Test;
  1739. CONST ODD = 0;
  1740. END Test.
  1741. negative: redefining of
  1742. MODULE Test;
  1743. CONST OF = 0;
  1744. END Test.
  1745. negative: redefining or
  1746. MODULE Test;
  1747. CONST OR = 0;
  1748. END Test.
  1749. negative: redefining ord
  1750. MODULE Test;
  1751. CONST ORD = 0;
  1752. END Test.
  1753. negative: redefining pointer
  1754. MODULE Test;
  1755. CONST POINTER = 0;
  1756. END Test.
  1757. negative: redefining procedure
  1758. MODULE Test;
  1759. CONST PROCEDURE = 0;
  1760. END Test.
  1761. negative: redefining real
  1762. MODULE Test;
  1763. CONST REAL = 0;
  1764. END Test.
  1765. negative: redefining record
  1766. MODULE Test;
  1767. CONST RECORD = 0;
  1768. END Test.
  1769. negative: redefining repeat
  1770. MODULE Test;
  1771. CONST REPEAT = 0;
  1772. END Test.
  1773. negative: redefining return
  1774. MODULE Test;
  1775. CONST RETURN = 0;
  1776. END Test.
  1777. negative: redefining self
  1778. MODULE Test;
  1779. CONST SELF = 0;
  1780. END Test.
  1781. negative: redefining set
  1782. MODULE Test;
  1783. CONST SET = 0;
  1784. END Test.
  1785. negative: redefining short
  1786. MODULE Test;
  1787. CONST SHORT = 0;
  1788. END Test.
  1789. negative: redefining shortint
  1790. MODULE Test;
  1791. CONST SHORTINT = 0;
  1792. END Test.
  1793. negative: redefining then
  1794. MODULE Test;
  1795. CONST THEN = 0;
  1796. END Test.
  1797. negative: redefining to
  1798. MODULE Test;
  1799. CONST TO = 0;
  1800. END Test.
  1801. negative: redefining true
  1802. MODULE Test;
  1803. CONST TRUE = 0;
  1804. END Test.
  1805. negative: redefining type
  1806. MODULE Test;
  1807. CONST TYPE = 0;
  1808. END Test.
  1809. negative: redefining until
  1810. MODULE Test;
  1811. CONST UNTIL = 0;
  1812. END Test.
  1813. negative: redefining var
  1814. MODULE Test;
  1815. CONST VAR = 0;
  1816. END Test.
  1817. negative: redefining while
  1818. MODULE Test;
  1819. CONST WHILE = 0;
  1820. END Test.
  1821. negative: redefining with
  1822. MODULE Test;
  1823. CONST WITH = 0;
  1824. END Test.
  1825. # Semantic tests
  1826. # =====================================
  1827. # imports
  1828. positive: dummy module
  1829. MODULE Dummy; END Dummy.
  1830. positive: single import
  1831. MODULE Test;
  1832. IMPORT Dummy;
  1833. END Test.
  1834. negative: import marked as exported
  1835. MODULE Test;
  1836. IMPORT Dummy*;
  1837. END Test.
  1838. negative: import marked as read-only
  1839. MODULE Test;
  1840. IMPORT Dummy-;
  1841. END Test.
  1842. positive: single import with different alias
  1843. MODULE Test;
  1844. IMPORT Alias := Dummy;
  1845. END Test.
  1846. positive: single import with same alias
  1847. MODULE Test;
  1848. IMPORT Dummy := Dummy;
  1849. END Test.
  1850. negative: duplicated import
  1851. MODULE Test;
  1852. IMPORT Dummy, Dummy;
  1853. END Test.
  1854. positive: duplicated import with different alias
  1855. MODULE Test;
  1856. IMPORT A := Dummy, B := Dummy;
  1857. END Test.
  1858. negative: duplicated import with same alias
  1859. MODULE Test;
  1860. IMPORT A := Dummy, A := Dummy;
  1861. END Test.
  1862. negative: import within procedure
  1863. MODULE Test;
  1864. PROCEDURE Procedure;
  1865. IMPORT Import := Dummy;
  1866. END Procedure;
  1867. END Test.
  1868. negative: import within nested procedure
  1869. MODULE Test;
  1870. PROCEDURE Procedure;
  1871. PROCEDURE Procedure;
  1872. IMPORT Import := Dummy;
  1873. END Procedure;
  1874. END Procedure;
  1875. END Test.
  1876. negative: import within object
  1877. MODULE Test;
  1878. TYPE Object = OBJECT
  1879. IMPORT Import := Dummy;
  1880. END Object;
  1881. END Test.
  1882. negative: import within object in procedure
  1883. MODULE Test;
  1884. PROCEDURE Procedure;
  1885. TYPE Object = OBJECT
  1886. IMPORT Import := Dummy;
  1887. END Object;
  1888. END Object;
  1889. END Test.
  1890. negative: import within procedure in object
  1891. MODULE Test;
  1892. TYPE Object = OBJECT
  1893. PROCEDURE Procedure;
  1894. IMPORT Import := Dummy;
  1895. END Procedure;
  1896. END Object;
  1897. END Test.
  1898. positive: dummy empty module
  1899. MODULE Test; END Test.
  1900. positive: dummy module with import
  1901. MODULE Dummy;
  1902. IMPORT Test;
  1903. END Dummy.
  1904. negative: module importing itself directly
  1905. MODULE Test;
  1906. IMPORT Test;
  1907. END Test.
  1908. negative: module importing itself directly with alias
  1909. MODULE Test;
  1910. IMPORT Import := Test;
  1911. END Test.
  1912. negative: module importing itself indirectly
  1913. MODULE Test;
  1914. IMPORT Dummy;
  1915. END Test.
  1916. negative: module importing itself indirectly with alias
  1917. MODULE Test;
  1918. IMPORT Import := Dummy;
  1919. END Test.
  1920. negative: constant as import
  1921. MODULE Test;
  1922. IMPORT Import := Constant;
  1923. CONST Constant = 0;
  1924. END Test.
  1925. negative: type as import
  1926. MODULE Test;
  1927. IMPORT Import := Type;
  1928. TYPE Type = INTEGER;
  1929. END Test.
  1930. negative: variable as import
  1931. MODULE Test;
  1932. IMPORT Import := variable;
  1933. VAR variable: INTEGER;
  1934. END Test.
  1935. negative: procedure as import
  1936. MODULE Test;
  1937. IMPORT Import := Procedure;
  1938. PROCEDURE Procedure; INTEGER;
  1939. END Test.
  1940. negative: parameter as import
  1941. MODULE Test;
  1942. PROCEDURE Procedure (parameter: INTEGER);
  1943. IMPORT Import := parameter;
  1944. END Procedure;
  1945. END Test.
  1946. # constants
  1947. positive: unmarked constant
  1948. MODULE Test;
  1949. CONST Constant = 54;
  1950. END Test.
  1951. positive: unmarked constant within procedure
  1952. MODULE Test;
  1953. PROCEDURE Procedure;
  1954. CONST Constant = 54;
  1955. END Procedure;
  1956. END Test.
  1957. positive: unmarked constant within nested procedure
  1958. MODULE Test;
  1959. PROCEDURE Procedure;
  1960. PROCEDURE Procedure;
  1961. CONST Constant = 54;
  1962. END Procedure;
  1963. END Procedure;
  1964. END Test.
  1965. positive: unmarked constant within object
  1966. MODULE Test;
  1967. TYPE Object = OBJECT
  1968. CONST Constant = 54;
  1969. END Object;
  1970. END Test.
  1971. positive: unmarked constant within object in procedure
  1972. MODULE Test;
  1973. PROCEDURE Procedure;
  1974. TYPE Object = OBJECT
  1975. CONST Constant = 54;
  1976. END Object;
  1977. END Procedure;
  1978. END Test.
  1979. positive: unmarked constant within procedure in object
  1980. MODULE Test;
  1981. TYPE Object = OBJECT
  1982. PROCEDURE Procedure;
  1983. CONST Constant = 54;
  1984. END Procedure;
  1985. END Object;
  1986. END Test.
  1987. positive: constant marked as exported
  1988. MODULE Test;
  1989. CONST Constant* = 54;
  1990. END Test.
  1991. negative: constant marked as exported within procedure
  1992. MODULE Test;
  1993. PROCEDURE Procedure;
  1994. CONST Constant* = 54;
  1995. END Procedure;
  1996. END Test.
  1997. negative: constant marked as exported within nested procedure
  1998. MODULE Test;
  1999. PROCEDURE Procedure;
  2000. PROCEDURE Procedure;
  2001. CONST Constant* = 54;
  2002. END Procedure;
  2003. END Procedure;
  2004. END Test.
  2005. positive: constant marked as exported within object
  2006. MODULE Test;
  2007. TYPE Object = OBJECT
  2008. CONST Constant* = 54;
  2009. END Object;
  2010. END Test.
  2011. negative: constant marked as exported within object in procedure
  2012. MODULE Test;
  2013. PROCEDURE Procedure;
  2014. TYPE Object = OBJECT
  2015. CONST Constant* = 54;
  2016. END Object;
  2017. END Procedure;
  2018. END Test.
  2019. negative: constant marked as exported within procedure in object
  2020. MODULE Test;
  2021. TYPE Object = OBJECT
  2022. PROCEDURE Procedure;
  2023. CONST Constant* = 54;
  2024. END Procedure;
  2025. END Object;
  2026. END Test.
  2027. negative: constant marked as read-only
  2028. MODULE Test;
  2029. CONST Constant- = TRUE;
  2030. END Test.
  2031. negative: constant marked as read-only within procedure
  2032. MODULE Test;
  2033. PROCEDURE Procedure;
  2034. CONST Constant- = TRUE;
  2035. END Procedure;
  2036. END Test.
  2037. negative: constant marked as read-only within nested procedure
  2038. MODULE Test;
  2039. PROCEDURE Procedure;
  2040. PROCEDURE Procedure;
  2041. CONST Constant- = TRUE;
  2042. END Procedure;
  2043. END Procedure;
  2044. END Test.
  2045. negative: constant marked as read-only within object
  2046. MODULE Test;
  2047. TYPE Object = OBJECT
  2048. CONST Constant- = TRUE;
  2049. END Object;
  2050. END Test.
  2051. negative: constant marked as read-only within object in procedure
  2052. MODULE Test;
  2053. PROCEDURE Procedure;
  2054. TYPE Object = OBJECT
  2055. CONST Constant- = TRUE;
  2056. END Object;
  2057. END Procedure;
  2058. END Test.
  2059. negative: constant marked as read-only within procedure in object
  2060. MODULE Test;
  2061. TYPE Object = OBJECT
  2062. PROCEDURE Procedure;
  2063. CONST Constant- = TRUE;
  2064. END Procedure;
  2065. END Object;
  2066. END Test.
  2067. negative: duplicated constant
  2068. MODULE Test;
  2069. CONST Constant = TRUE;
  2070. CONST Constant = FALSE;
  2071. END Test.
  2072. negative: duplicated constant within procedure
  2073. MODULE Test;
  2074. PROCEDURE Procedure;
  2075. CONST Constant = TRUE;
  2076. CONST Constant = FALSE;
  2077. END Procedure;
  2078. END Test.
  2079. negative: duplicated constant within nested procedure
  2080. MODULE Test;
  2081. PROCEDURE Procedure;
  2082. PROCEDURE Procedure;
  2083. CONST Constant = TRUE;
  2084. CONST Constant = FALSE;
  2085. END Procedure;
  2086. END Procedure;
  2087. END Test.
  2088. negative: duplicated constant within object
  2089. MODULE Test;
  2090. TYPE Object = OBJECT
  2091. CONST Constant = TRUE;
  2092. CONST Constant = FALSE;
  2093. END Object;
  2094. END Test.
  2095. negative: duplicated constant within object in procedure
  2096. MODULE Test;
  2097. TYPE Object = OBJECT
  2098. PROCEDURE Procedure;
  2099. CONST Constant = TRUE;
  2100. CONST Constant = FALSE;
  2101. END Procedure;
  2102. END Object;
  2103. END Test.
  2104. negative: duplicated constant within procedure in object
  2105. MODULE Test;
  2106. PROCEDURE Procedure;
  2107. TYPE Object = OBJECT
  2108. CONST Constant = TRUE;
  2109. CONST Constant = FALSE;
  2110. END Object;
  2111. END Procedure;
  2112. END Test.
  2113. positive: backwards referencing constant
  2114. MODULE Test;
  2115. CONST A = 0; B = A;
  2116. END Test.
  2117. positive: backwards referencing constant within procedure
  2118. MODULE Test;
  2119. PROCEDURE Procedure;
  2120. CONST A = 0; B = A;
  2121. END Procedure;
  2122. END Test.
  2123. positive: backwards referencing constant within nested procedure
  2124. MODULE Test;
  2125. PROCEDURE Procedure;
  2126. PROCEDURE Procedure;
  2127. CONST A = 0; B = A;
  2128. END Procedure;
  2129. END Procedure;
  2130. END Test.
  2131. positive: backwards referencing constant within object
  2132. MODULE Test;
  2133. TYPE Object = OBJECT
  2134. CONST A = 0; B = A;
  2135. END Object;
  2136. END Test.
  2137. positive: backwards referencing constant within object in procedure
  2138. MODULE Test;
  2139. PROCEDURE Procedure;
  2140. TYPE Object = OBJECT
  2141. CONST A = 0; B = A;
  2142. END Object;
  2143. END Procedure;
  2144. END Test.
  2145. positive: backwards referencing constant within procedure in object
  2146. MODULE Test;
  2147. TYPE Object = OBJECT
  2148. PROCEDURE Procedure;
  2149. CONST A = 0; B = A;
  2150. END Procedure;
  2151. END Object;
  2152. END Test.
  2153. positive: forwards referencing constant
  2154. MODULE Test;
  2155. CONST A = B; B = 0;
  2156. END Test.
  2157. positive: forwards referencing constant within procedure
  2158. MODULE Test;
  2159. PROCEDURE Procedure;
  2160. CONST A = B; B = 0;
  2161. END Procedure;
  2162. END Test.
  2163. positive: forwards referencing constant within nested procedure
  2164. MODULE Test;
  2165. PROCEDURE Procedure;
  2166. PROCEDURE Procedure;
  2167. CONST A = B; B = 0;
  2168. END Procedure;
  2169. END Procedure;
  2170. END Test.
  2171. positive: forwards referencing constant within object
  2172. MODULE Test;
  2173. TYPE Object = OBJECT
  2174. CONST A = B; B = 0;
  2175. END Object;
  2176. END Test.
  2177. positive: forwards referencing constant within object in procedure
  2178. MODULE Test;
  2179. PROCEDURE Procedure;
  2180. TYPE Object = OBJECT
  2181. CONST A = B; B = 0;
  2182. END Object;
  2183. END Procedure;
  2184. END Test.
  2185. positive: forwards referencing constant within procedure in object
  2186. MODULE Test;
  2187. TYPE Object = OBJECT
  2188. PROCEDURE Procedure;
  2189. CONST A = B; B = 0;
  2190. END Procedure;
  2191. END Object;
  2192. END Test.
  2193. negative: cyclic referencing constants
  2194. MODULE Test;
  2195. CONST A = B; B = A;
  2196. END Test.
  2197. negative: cyclic referencing constants within procedure
  2198. MODULE Test;
  2199. PROCEDURE Procedure;
  2200. CONST A = B; B = A;
  2201. END Procedure;
  2202. END Test.
  2203. negative: cyclic referencing constants within nested procedure
  2204. MODULE Test;
  2205. PROCEDURE Procedure;
  2206. PROCEDURE Procedure;
  2207. CONST A = B; B = A;
  2208. END Procedure;
  2209. END Procedure;
  2210. END Test.
  2211. negative: cyclic referencing constants within object
  2212. MODULE Test;
  2213. TYPE Object = OBJECT
  2214. CONST A = B; B = A;
  2215. END Object;
  2216. END Test.
  2217. negative: cyclic referencing constants within object in procedure
  2218. MODULE Test;
  2219. PROCEDURE Procedure;
  2220. TYPE Object = OBJECT
  2221. CONST A = B; B = A;
  2222. END Object;
  2223. END Procedure;
  2224. END Test.
  2225. negative: cyclic referencing constants within procedure in object
  2226. MODULE Test;
  2227. TYPE Object = OBJECT
  2228. PROCEDURE Procedure;
  2229. CONST A = B; B = A;
  2230. END Procedure;
  2231. END Object;
  2232. END Test.
  2233. negative: self referencing constant
  2234. MODULE Test;
  2235. CONST Constant = Constant;
  2236. END Test.
  2237. negative: self referencing constant within procedure
  2238. MODULE Test;
  2239. PROCEDURE Procedure;
  2240. CONST Constant = Constant;
  2241. END Procedure;
  2242. END Test.
  2243. negative: self referencing constant within nested procedure
  2244. MODULE Test;
  2245. PROCEDURE Procedure;
  2246. PROCEDURE Procedure;
  2247. CONST Constant = Constant;
  2248. END Procedure;
  2249. END Procedure;
  2250. END Test.
  2251. negative: self referencing constant within object
  2252. MODULE Test;
  2253. TYPE Object = OBJECT
  2254. CONST Constant = Constant;
  2255. END Object;
  2256. END Test.
  2257. negative: self referencing constant within object in procedure
  2258. MODULE Test;
  2259. TYPE Object = OBJECT
  2260. PROCEDURE Procedure;
  2261. CONST Constant = Constant;
  2262. END Procedure;
  2263. END Object;
  2264. END Test.
  2265. negative: self referencing constant within procedure in object
  2266. MODULE Test;
  2267. PROCEDURE Procedure;
  2268. TYPE Object = OBJECT
  2269. CONST Constant = Constant;
  2270. END Object;
  2271. END Procedure;
  2272. END Test.
  2273. positive: dummy module exporting constants
  2274. MODULE Dummy;
  2275. CONST Exported* = 5;
  2276. CONST Private = 5;
  2277. END Dummy.
  2278. positive: importing exported constant
  2279. MODULE Test;
  2280. IMPORT Dummy;
  2281. CONST Constant = Dummy.Exported;
  2282. BEGIN ASSERT (Constant = 5);
  2283. END Test.
  2284. negative: importing private constant
  2285. MODULE Test;
  2286. IMPORT Dummy;
  2287. CONST Constant = Dummy.Private;
  2288. END Test.
  2289. negative: importing invalid constant
  2290. MODULE Test;
  2291. IMPORT Dummy;
  2292. CONST Constant = Dummy.Invalid;
  2293. END Test.
  2294. negative: import as constant
  2295. MODULE Test;
  2296. IMPORT Import := Dummy;
  2297. CONST Constant = Import;
  2298. END Test.
  2299. negative: type as constant
  2300. MODULE Test;
  2301. CONST Constant = Type;
  2302. TYPE Type = INTEGER;
  2303. END Test.
  2304. negative: variable as constant
  2305. MODULE Test;
  2306. CONST Constant = variable;
  2307. VAR variable: INTEGER;
  2308. END Test.
  2309. negative: procedure as constant
  2310. MODULE Test;
  2311. CONST Constant = Procedure;
  2312. PROCEDURE Procedure; INTEGER;
  2313. END Test.
  2314. negative: parameter as constant
  2315. MODULE Test;
  2316. PROCEDURE Procedure (parameter: INTEGER);
  2317. CONST Constant = parameter;
  2318. END Procedure;
  2319. END Test.
  2320. negative: const parameter as constant
  2321. MODULE Test;
  2322. PROCEDURE Procedure (CONST parameter: INTEGER);
  2323. CONST Constant = parameter;
  2324. END Procedure;
  2325. END Test.
  2326. # constant booleans
  2327. negative: arithmetic negation on constant boolean
  2328. MODULE Test;
  2329. CONST Result = -TRUE;
  2330. END Test.
  2331. positive: logical negation on constant boolean
  2332. MODULE Test;
  2333. CONST Result = ~FALSE;
  2334. BEGIN ASSERT (Result = TRUE);
  2335. END Test.
  2336. positive: multiple logical negations on constant boolean
  2337. MODULE Test;
  2338. CONST Result = ~~~~FALSE;
  2339. BEGIN ASSERT (Result = FALSE);
  2340. END Test.
  2341. negative: dereferencing constant boolean
  2342. MODULE Test;
  2343. CONST Result = FALSE^;
  2344. END Test.
  2345. negative: dereferencing constant boolean indirectly
  2346. MODULE Test;
  2347. CONST Constant = FALSE;
  2348. CONST Result = Constant^;
  2349. END Test.
  2350. negative: addition on constant booleans
  2351. MODULE Test;
  2352. CONST Result = TRUE + FALSE;
  2353. END Test.
  2354. negative: subtraction on constant booleans
  2355. MODULE Test;
  2356. CONST Result = FALSE - TRUE
  2357. END Test.
  2358. negative: multiplication on constant booleans
  2359. MODULE Test;
  2360. CONST Result = FALSE * TRUE
  2361. END Test.
  2362. negative: integer division on constant booleans
  2363. MODULE Test;
  2364. CONST Result = TRUE DIV TRUE
  2365. END Test.
  2366. negative: real division on constant booleans
  2367. MODULE Test;
  2368. CONST Result = TRUE / FALSE
  2369. END Test.
  2370. negative: modulo on constant booleans
  2371. MODULE Test;
  2372. CONST Result = FALSE MOD TRUE
  2373. END Test.
  2374. positive: equal relation on constant booleans
  2375. MODULE Test;
  2376. CONST Result = TRUE = FALSE
  2377. BEGIN ASSERT (Result = FALSE);
  2378. END Test.
  2379. positive: unequal relation on constant booleans
  2380. MODULE Test;
  2381. CONST Result = TRUE # TRUE
  2382. BEGIN ASSERT (Result = FALSE);
  2383. END Test.
  2384. negative: less relation on constant booleans
  2385. MODULE Test;
  2386. CONST Result = TRUE < FALSE
  2387. END Test.
  2388. negative: less or equal relation on constant booleans
  2389. MODULE Test;
  2390. CONST Result = FALSE <= FALSE
  2391. END Test.
  2392. negative: greater relation on constant booleans
  2393. MODULE Test;
  2394. CONST Result = FALSE > TRUE
  2395. END Test.
  2396. negative: greater or equal relation on constant booleans
  2397. MODULE Test;
  2398. CONST Result = FALSE >= TRUE
  2399. END Test.
  2400. negative: set membership on constant booleans
  2401. MODULE Test;
  2402. CONST Result = TRUE IN FALSE
  2403. END Test.
  2404. negative: type test on constant booleans
  2405. MODULE Test;
  2406. CONST Result = TRUE IS FALSE
  2407. END Test.
  2408. negative: type test on constant boolean
  2409. MODULE Test;
  2410. CONST Result = TRUE IS BOOLEAN
  2411. END Test.
  2412. negative: type test on constant boolean type
  2413. MODULE Test;
  2414. TYPE Type = BOOLEAN;
  2415. CONST Result = TRUE IS Type
  2416. END Test.
  2417. negative: type guard on constant booleans
  2418. MODULE Test;
  2419. CONST Result = TRUE(FALSE)
  2420. END Test.
  2421. negative: indirect type guard on constant booleans
  2422. MODULE Test;
  2423. CONST Constant = TRUE
  2424. CONST Result = Constant(Constant)
  2425. END Test.
  2426. negative: type guard on constant boolean
  2427. MODULE Test;
  2428. CONST Result = TRUE(BOOLEAN)
  2429. END Test.
  2430. negative: indirect type guard on constant boolean
  2431. MODULE Test;
  2432. CONST Constant = TRUE
  2433. CONST Result = Constant(BOOLEAN)
  2434. END Test.
  2435. negative: type guard on constant boolean type
  2436. MODULE Test;
  2437. TYPE Type = BOOLEAN;
  2438. CONST Result = TRUE(Type)
  2439. END Test.
  2440. negative: indirect type guard on constant boolean type
  2441. MODULE Test;
  2442. CONST Constant = TRUE
  2443. TYPE Type = BOOLEAN;
  2444. CONST Result = Constant(Type)
  2445. END Test.
  2446. positive: logical and on constant booleans
  2447. MODULE Test;
  2448. CONST Result = TRUE & FALSE
  2449. BEGIN ASSERT (Result = FALSE);
  2450. END Test.
  2451. positive: logical or on constant booleans
  2452. MODULE Test;
  2453. CONST Result = FALSE OR TRUE
  2454. BEGIN ASSERT (Result = TRUE);
  2455. END Test.
  2456. negative: ordinal value of constant boolean
  2457. MODULE Test;
  2458. CONST Result = ORD (TRUE)
  2459. END Test.
  2460. negative: character value of constant boolean
  2461. MODULE Test;
  2462. CONST Result = CHR (FALSE)
  2463. END Test.
  2464. negative: absolute value of constant boolean
  2465. MODULE Test;
  2466. CONST Result = ABS (FALSE)
  2467. END Test.
  2468. negative: odd test on constant boolean
  2469. MODULE Test;
  2470. CONST Result = ODD (FALSE)
  2471. END Test.
  2472. negative: capital letter of constant boolean
  2473. MODULE Test;
  2474. CONST Result = CAP (TRUE)
  2475. END Test.
  2476. negative: minimal value of boolean
  2477. MODULE Test;
  2478. CONST Result = MIN (BOOLEAN)
  2479. END Test.
  2480. negative: maximal value of boolean
  2481. MODULE Test;
  2482. CONST Result = MAX (BOOLEAN)
  2483. END Test.
  2484. negative: arithmetic shift of constant booleans
  2485. MODULE Test;
  2486. CONST Result = ASH (TRUE, FALSE)
  2487. END Test.
  2488. negative: short on constant boolean
  2489. MODULE Test;
  2490. CONST Result = SHORT (FALSE)
  2491. END Test.
  2492. negative: long on constant boolean
  2493. MODULE Test;
  2494. CONST Result = LONG (FALSE)
  2495. END Test.
  2496. negative: entier on constant boolean
  2497. MODULE Test;
  2498. CONST Result = ENTIER (FALSE)
  2499. END Test.
  2500. negative: unary length of constant boolean
  2501. MODULE Test;
  2502. CONST Result = LEN (FALSE)
  2503. END Test.
  2504. negative: binary length of constant boolean
  2505. MODULE Test;
  2506. CONST Result = LEN (FALSE, 0)
  2507. END Test.
  2508. negative: indexing constant boolean
  2509. MODULE Test;
  2510. CONST Result = TRUE[0]
  2511. END Test.
  2512. negative: indexing constant boolean indirectly
  2513. MODULE Test;
  2514. CONST Constant = TRUE;
  2515. CONST Result = Constant[0]
  2516. END Test.
  2517. negative: constant boolean as index
  2518. MODULE Test;
  2519. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  2520. BEGIN result := array[TRUE]
  2521. END Test.
  2522. negative: member selection on constant boolean
  2523. MODULE Test;
  2524. CONST Result = TRUE.member
  2525. END Test.
  2526. negative: indirect member selection on constant boolean
  2527. MODULE Test;
  2528. CONST Constant = TRUE;
  2529. CONST Result = Constant.member
  2530. END Test.
  2531. negative: calling constant boolean
  2532. MODULE Test;
  2533. BEGIN TRUE ()
  2534. END Test.
  2535. negative: calling constant boolean indirectly
  2536. MODULE Test;
  2537. CONST Constant = TRUE;
  2538. BEGIN Constant
  2539. END Test.
  2540. negative: calling constant boolean indirectly with parentheses
  2541. MODULE Test;
  2542. CONST Constant = TRUE;
  2543. BEGIN Constant ()
  2544. END Test.
  2545. positive: calling procedure with parameter and constant boolean argument
  2546. MODULE Test;
  2547. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  2548. BEGIN Procedure (TRUE);
  2549. END Test.
  2550. negative: calling procedure with variable parameter and constant boolean argument
  2551. MODULE Test;
  2552. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  2553. BEGIN Procedure (TRUE);
  2554. END Test.
  2555. positive: calling procedure with constant parameter and constant boolean argument
  2556. MODULE Test;
  2557. PROCEDURE Procedure (CONST value: BOOLEAN); END Procedure;
  2558. BEGIN Procedure (TRUE);
  2559. END Test.
  2560. # constant characters
  2561. negative: constant character exceeding valid range
  2562. MODULE Test;
  2563. CONST Result = 1234X;
  2564. END Test.
  2565. positive: ordering of constant character ordinals
  2566. MODULE Test;
  2567. BEGIN ASSERT (0X < 0FFX)
  2568. END Test.
  2569. negative: arithmetic negation on constant character
  2570. MODULE Test;
  2571. CONST Result = -'a';
  2572. END Test.
  2573. negative: logical negation on constant character
  2574. MODULE Test;
  2575. CONST Result = ~5X;
  2576. END Test.
  2577. negative: dereferencing constant character
  2578. MODULE Test;
  2579. CONST Result = 't'^;
  2580. END Test.
  2581. negative: dereferencing constant character indirectly
  2582. MODULE Test;
  2583. CONST Constant = 't';
  2584. CONST Result = Constant^;
  2585. END Test.
  2586. negative: addition on constant characters
  2587. MODULE Test;
  2588. CONST Result = 45X + 'r';
  2589. END Test.
  2590. negative: subtraction on constant characters
  2591. MODULE Test;
  2592. CONST Result = '3' - 'a'
  2593. END Test.
  2594. negative: multiplication on constant characters
  2595. MODULE Test;
  2596. CONST Result = '9' * 4FX
  2597. END Test.
  2598. negative: integer division on constant characters
  2599. MODULE Test;
  2600. CONST Result = '@' DIV 'g'
  2601. END Test.
  2602. negative: real division on constant characters
  2603. MODULE Test;
  2604. CONST Result = 'a' / 'b'
  2605. END Test.
  2606. negative: modulo on constant characters
  2607. MODULE Test;
  2608. CONST Result = 8X MOD 2X
  2609. END Test.
  2610. positive: equal relation on constant characters
  2611. MODULE Test;
  2612. CONST Result = 'r' = 'l'
  2613. BEGIN ASSERT (Result = FALSE);
  2614. END Test.
  2615. positive: unequal relation on constant characters
  2616. MODULE Test;
  2617. CONST Result = 4AX # 'z'
  2618. BEGIN ASSERT (Result = TRUE);
  2619. END Test.
  2620. positive: less relation on constant characters
  2621. MODULE Test;
  2622. CONST Result = 's' < 64X
  2623. BEGIN ASSERT (Result = FALSE);
  2624. END Test.
  2625. positive: less or equal relation on constant characters
  2626. MODULE Test;
  2627. CONST Result = 'e' <= 9X
  2628. BEGIN ASSERT (Result = FALSE);
  2629. END Test.
  2630. positive: greater relation on constant characters
  2631. MODULE Test;
  2632. CONST Result = 'r' > 'a'
  2633. BEGIN ASSERT (Result = TRUE);
  2634. END Test.
  2635. positive: greater or equal relation on constant characters
  2636. MODULE Test;
  2637. CONST Result = 'h' >= 0DX
  2638. BEGIN ASSERT (Result = TRUE);
  2639. END Test.
  2640. negative: set membership on constant characters
  2641. MODULE Test;
  2642. CONST Result = 1DX IN 'z'
  2643. END Test.
  2644. negative: type test on constant characters
  2645. MODULE Test;
  2646. CONST Result = '0' IS 0X
  2647. END Test.
  2648. negative: type test on constant character
  2649. MODULE Test;
  2650. CONST Result = '0' IS CHAR
  2651. END Test.
  2652. negative: type test on constant character type
  2653. MODULE Test;
  2654. TYPE Type = CHAR;
  2655. CONST Result = '0' IS Type
  2656. END Test.
  2657. negative: type guard on constant characters
  2658. MODULE Test;
  2659. CONST Result = '0'(0X)
  2660. END Test.
  2661. negative: indirect type guard on constant characters
  2662. MODULE Test;
  2663. CONST Constant = '0'
  2664. CONST Result = Constant(Constant)
  2665. END Test.
  2666. negative: type guard on constant character
  2667. MODULE Test;
  2668. CONST Result = '0'(CHAR)
  2669. END Test.
  2670. negative: indirect type guard on constant character
  2671. MODULE Test;
  2672. CONST Constant = '0'
  2673. CONST Result = Constant(CHAR)
  2674. END Test.
  2675. negative: type guard on constant character type
  2676. MODULE Test;
  2677. TYPE Type = CHAR;
  2678. CONST Result = '0'(Type)
  2679. END Test.
  2680. negative: indirect guard test on constant character type
  2681. MODULE Test;
  2682. CONST Constant = '0'
  2683. TYPE Type = CHAR;
  2684. CONST Result = Constant(Type)
  2685. END Test.
  2686. negative: logical and on constant characters
  2687. MODULE Test;
  2688. CONST Result = 'A' & 't'
  2689. END Test.
  2690. negative: logical or on constant characters
  2691. MODULE Test;
  2692. CONST Result = 0X OR 1X
  2693. END Test.
  2694. positive: ordinal value of constant character
  2695. MODULE Test;
  2696. CONST Result = ORD (10X)
  2697. BEGIN ASSERT (Result = 10H)
  2698. END Test.
  2699. negative: character value of constant character
  2700. MODULE Test;
  2701. CONST Result = CHR (23X)
  2702. END Test.
  2703. negative: absolute value of constant character
  2704. MODULE Test;
  2705. CONST Result = ABS (0X)
  2706. END Test.
  2707. negative: odd test on constant character
  2708. MODULE Test;
  2709. CONST Result = ODD ('2')
  2710. END Test.
  2711. positive: capital letter of constant character
  2712. MODULE Test;
  2713. CONST Result = CAP ('a')
  2714. BEGIN ASSERT (Result = 'A')
  2715. END Test.
  2716. positive: minimal value of character
  2717. MODULE Test;
  2718. CONST Result = MIN (CHAR)
  2719. BEGIN ASSERT (Result = 0X);
  2720. END Test.
  2721. positive: maximal value of character
  2722. MODULE Test;
  2723. CONST Result = MAX (CHAR)
  2724. BEGIN ASSERT (Result = 0FFX);
  2725. END Test.
  2726. negative: arithmetic shift of constant characters
  2727. MODULE Test;
  2728. CONST Result = ASH ('5', '9')
  2729. END Test.
  2730. negative: short on constant character
  2731. MODULE Test;
  2732. CONST Result = SHORT ('t')
  2733. END Test.
  2734. negative: long on constant character
  2735. MODULE Test;
  2736. CONST Result = LONG ('t')
  2737. END Test.
  2738. negative: entier on constant character
  2739. MODULE Test;
  2740. CONST Result = ENTIER ('t')
  2741. END Test.
  2742. negative: unary length of constant character
  2743. MODULE Test;
  2744. CONST Result = LEN (0X)
  2745. END Test.
  2746. negative: binary length of constant character
  2747. MODULE Test;
  2748. CONST Result = LEN (0X, 0)
  2749. END Test.
  2750. negative: indexing constant character
  2751. MODULE Test;
  2752. CONST Result = 'a'[0]
  2753. END Test.
  2754. negative: indexing constant character indirectly
  2755. MODULE Test;
  2756. CONST Constant = 'a';
  2757. CONST Result = Constant[0]
  2758. END Test.
  2759. negative: constant character as index
  2760. MODULE Test;
  2761. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  2762. BEGIN result := array['a']
  2763. END Test.
  2764. negative: member selection on constant character
  2765. MODULE Test;
  2766. CONST Result = '3'.member
  2767. END Test.
  2768. negative: indirect member selection on constant character
  2769. MODULE Test;
  2770. CONST Constant = '3';
  2771. CONST Result = Constant.member
  2772. END Test.
  2773. negative: calling constant character
  2774. MODULE Test;
  2775. BEGIN 'o' ()
  2776. END Test.
  2777. negative: calling constant character indirectly
  2778. MODULE Test;
  2779. CONST Constant = 'o';
  2780. BEGIN Constant
  2781. END Test.
  2782. negative: calling constant character indirectly with parentheses
  2783. MODULE Test;
  2784. CONST Constant = 'o';
  2785. BEGIN Constant ()
  2786. END Test.
  2787. positive: calling procedure with parameter and constant character argument
  2788. MODULE Test;
  2789. PROCEDURE Procedure (value: CHAR); END Procedure;
  2790. BEGIN Procedure ('a');
  2791. END Test.
  2792. negative: calling procedure with variable parameter and constant character argument
  2793. MODULE Test;
  2794. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  2795. BEGIN Procedure (54X);
  2796. END Test.
  2797. positive: calling procedure with constant parameter and constant character argument
  2798. MODULE Test;
  2799. PROCEDURE Procedure (CONST value: CHAR); END Procedure;
  2800. BEGIN Procedure (0AX);
  2801. END Test.
  2802. # constant integers
  2803. negative: constant integer exceeding valid range
  2804. MODULE Test;
  2805. CONST Result = 123456789012345678901234567890;
  2806. END Test.
  2807. positive: arithmetic negation on constant integer
  2808. MODULE Test;
  2809. CONST Result = -5;
  2810. BEGIN ASSERT (Result = -5);
  2811. END Test.
  2812. positive: multiple arithmetic negations on constant integer
  2813. MODULE Test;
  2814. CONST Result = -(-(-9));
  2815. BEGIN ASSERT (Result = -9);
  2816. END Test.
  2817. negative: logical negation on constant integer
  2818. MODULE Test;
  2819. CONST Result = ~788;
  2820. END Test.
  2821. negative: dereferencing constant integer
  2822. MODULE Test;
  2823. CONST Result = 7^;
  2824. END Test.
  2825. negative: dereferencing constant integer indirectly
  2826. MODULE Test;
  2827. CONST Constant = 7;
  2828. CONST Result = Constant^;
  2829. END Test.
  2830. positive: addition on constant integers
  2831. MODULE Test;
  2832. CONST Result = 1 + 057H;
  2833. BEGIN ASSERT (Result = 88);
  2834. END Test.
  2835. positive: subtraction on constant integers
  2836. MODULE Test;
  2837. CONST Result = 0 - 1
  2838. BEGIN ASSERT (Result = -1);
  2839. END Test.
  2840. positive: multiplication on constant integers
  2841. MODULE Test;
  2842. CONST Result = 1AH * 10
  2843. BEGIN ASSERT (Result = 260);
  2844. END Test.
  2845. positive: integer division on constant integers
  2846. MODULE Test;
  2847. CONST Divisor = -2147483648; Dividend = 131072; Result = Divisor DIV Dividend;
  2848. BEGIN ASSERT (Result = -16384);
  2849. END Test.
  2850. negative: integer division on constant integers by zero
  2851. MODULE Test;
  2852. CONST Result = 10 DIV 0
  2853. END Test.
  2854. positive: real division on constant integers
  2855. MODULE Test;
  2856. CONST Result = 680 / 16
  2857. BEGIN ASSERT (Result = 42.5);
  2858. END Test.
  2859. negative: real division on constant integers by zero
  2860. MODULE Test;
  2861. CONST Result = 1ACH / 0
  2862. END Test.
  2863. positive: modulo on constant integers
  2864. MODULE Test;
  2865. CONST Divisor = -2147483648; Dividend = 131072; Result = Divisor MOD Dividend;
  2866. BEGIN ASSERT (Result = 0);
  2867. END Test.
  2868. negative: modulo on constant integers by zero
  2869. MODULE Test;
  2870. CONST Result = 15H MOD 0
  2871. END Test.
  2872. positive: equal relation on constant integers
  2873. MODULE Test;
  2874. CONST Result = 54 = 8
  2875. BEGIN ASSERT (Result = FALSE);
  2876. END Test.
  2877. positive: unequal relation on constant integers
  2878. MODULE Test;
  2879. CONST Result = 0 # 9
  2880. BEGIN ASSERT (Result = TRUE);
  2881. END Test.
  2882. positive: less relation on constant integers
  2883. MODULE Test;
  2884. CONST Result = 5 < 687H
  2885. BEGIN ASSERT (Result = TRUE);
  2886. END Test.
  2887. positive: less or equal relation on constant integers
  2888. MODULE Test;
  2889. CONST Result = 0 <= 1321
  2890. BEGIN ASSERT (Result = TRUE);
  2891. END Test.
  2892. positive: greater relation on constant integers
  2893. MODULE Test;
  2894. CONST Result = 0EFH > 54
  2895. BEGIN ASSERT (Result = TRUE);
  2896. END Test.
  2897. positive: greater or equal relation on constant integers
  2898. MODULE Test;
  2899. CONST Result = 131 >= 9
  2900. BEGIN ASSERT (Result = TRUE);
  2901. END Test.
  2902. negative: set membership on constant integers
  2903. MODULE Test;
  2904. CONST Result = 5 IN 9
  2905. END Test.
  2906. negative: type test on constant integers
  2907. MODULE Test;
  2908. CONST Result = 4 IS 0
  2909. END Test.
  2910. negative: type test on constant integer
  2911. MODULE Test;
  2912. CONST Result = 4 IS INTEGER
  2913. END Test.
  2914. negative: type test on constant integer type
  2915. MODULE Test;
  2916. TYPE Type = INTEGER;
  2917. CONST Result = 4 IS Type
  2918. END Test.
  2919. negative: type guard on constant integers
  2920. MODULE Test;
  2921. CONST Result = 5(0)
  2922. END Test.
  2923. negative: indirect type guard on constant integers
  2924. MODULE Test;
  2925. CONST Constant = 5
  2926. CONST Result = Constant(Constant)
  2927. END Test.
  2928. negative: type guard on constant integer
  2929. MODULE Test;
  2930. CONST Result = 5(INTEGER)
  2931. END Test.
  2932. negative: indirect type guard on constant integer
  2933. MODULE Test;
  2934. CONST Constant = 5
  2935. CONST Result = Constant(INTEGER)
  2936. END Test.
  2937. negative: type guard on constant integer type
  2938. MODULE Test;
  2939. TYPE Type = INTEGER;
  2940. CONST Result = 5(Type)
  2941. END Test.
  2942. negative: indirect guard test on constant integer type
  2943. MODULE Test;
  2944. CONST Constant = 5
  2945. TYPE Type = INTEGER;
  2946. CONST Result = Constant(Type)
  2947. END Test.
  2948. negative: logical and on constant integers
  2949. MODULE Test;
  2950. CONST Result = 123 & 3AH
  2951. END Test.
  2952. negative: logical or on constant integers
  2953. MODULE Test;
  2954. CONST Result = 0 OR 685
  2955. END Test.
  2956. negative: ordinal value of constant integer
  2957. MODULE Test;
  2958. CONST Result = ORD (99)
  2959. END Test.
  2960. positive: character value of constant integer
  2961. MODULE Test;
  2962. CONST Result = CHR (65H)
  2963. BEGIN ASSERT (Result = 65X)
  2964. END Test.
  2965. positive: absolute value of constant integer
  2966. MODULE Test;
  2967. CONST Result = ABS (-5)
  2968. BEGIN ASSERT (Result >= 0)
  2969. END Test.
  2970. positive: odd test on constant integer
  2971. MODULE Test;
  2972. CONST Result = ODD (5)
  2973. BEGIN ASSERT (Result)
  2974. END Test.
  2975. negative: capital letter of constant integer
  2976. MODULE Test;
  2977. CONST Result = CAP (6)
  2978. END Test.
  2979. positive: minimal value of integer
  2980. MODULE Test;
  2981. CONST A = MIN (SHORTINT); B = MIN (INTEGER); C = MIN (LONGINT); D = MIN (HUGEINT)
  2982. END Test.
  2983. positive: maximal value of integer
  2984. MODULE Test;
  2985. CONST A = MAX (SHORTINT); B = MAX (INTEGER); C = MAX (LONGINT); D = MAX (HUGEINT)
  2986. END Test.
  2987. positive: arithmetic left shift of constant integers
  2988. MODULE Test;
  2989. CONST Result = ASH (13, 6)
  2990. BEGIN ASSERT (Result = 13 * (2 * 2 * 2 * 2 * 2 * 2));
  2991. END Test.
  2992. positive: arithmetic right shift of constant integers
  2993. MODULE Test;
  2994. CONST Result = ASH (2379, -6)
  2995. BEGIN ASSERT (Result = 2379 DIV (2 * 2 * 2 * 2 * 2 * 2));
  2996. END Test.
  2997. positive: short on constant integer
  2998. MODULE Test;
  2999. CONST Result = SHORT (3215)
  3000. END Test.
  3001. negative: short on constant short integer
  3002. MODULE Test;
  3003. CONST Result = SHORT (5)
  3004. END Test.
  3005. positive: long on constant integer
  3006. MODULE Test;
  3007. CONST Result = LONG (5)
  3008. END Test.
  3009. negative: long on constant huge integer
  3010. MODULE Test;
  3011. CONST Result = LONG (32154878786668)
  3012. END Test.
  3013. negative: entier on constant integer
  3014. MODULE Test;
  3015. CONST Result = ENTIER (654)
  3016. END Test.
  3017. negative: unary length of constant integer
  3018. MODULE Test;
  3019. CONST Result = LEN (6548)
  3020. END Test.
  3021. negative: binary length of constant integer
  3022. MODULE Test;
  3023. CONST Result = LEN (6548, 0)
  3024. END Test.
  3025. negative: indexing constant integer
  3026. MODULE Test;
  3027. CONST Result = 5[0]
  3028. END Test.
  3029. negative: indexing constant integer indirectly
  3030. MODULE Test;
  3031. CONST Constant = 5;
  3032. CONST Result = Constant[0]
  3033. END Test.
  3034. positive: constant integer as index
  3035. MODULE Test;
  3036. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  3037. BEGIN result := array[5]
  3038. END Test.
  3039. positive: zero as index
  3040. MODULE Test;
  3041. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  3042. BEGIN result := array[0]
  3043. END Test.
  3044. negative: negative constant integer as index
  3045. MODULE Test;
  3046. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  3047. BEGIN result := array[-10]
  3048. END Test.
  3049. negative: array size as index
  3050. MODULE Test;
  3051. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  3052. BEGIN result := array[10]
  3053. END Test.
  3054. negative: constant integer as index exceeding valid range
  3055. MODULE Test;
  3056. VAR array: ARRAY 5, 10 OF CHAR; result: CHAR;
  3057. BEGIN result := array[2, 20]
  3058. END Test.
  3059. positive: zero as index in two-dimensional array
  3060. MODULE Test;
  3061. VAR array: ARRAY 5, 10 OF CHAR; result: CHAR;
  3062. BEGIN result := array[2, 0]
  3063. END Test.
  3064. negative: negative constant integer as index in two-dimensional array
  3065. MODULE Test;
  3066. VAR array: ARRAY 5, 10 OF CHAR; result: CHAR;
  3067. BEGIN result := array[2, -10]
  3068. END Test.
  3069. negative: array size as index in two-dimensional array
  3070. MODULE Test;
  3071. VAR array: ARRAY 5, 10 OF CHAR; result: CHAR;
  3072. BEGIN result := array[2, 10]
  3073. END Test.
  3074. negative: constant integer as index exceeding valid range in two-dimensional array
  3075. MODULE Test;
  3076. VAR array: ARRAY 5, 10 OF CHAR; result: CHAR;
  3077. BEGIN result := array[2, 20]
  3078. END Test.
  3079. negative: member selection on constant integer
  3080. MODULE Test;
  3081. CONST Result = 654.member
  3082. END Test.
  3083. negative: indirect member selection on constant integer
  3084. MODULE Test;
  3085. CONST Constant = 654;
  3086. CONST Result = Constant.member
  3087. END Test.
  3088. negative: calling constant integer
  3089. MODULE Test;
  3090. BEGIN 007 ()
  3091. END Test.
  3092. negative: calling constant integer indirectly
  3093. MODULE Test;
  3094. CONST Constant = 007;
  3095. BEGIN Constant
  3096. END Test.
  3097. negative: calling constant integer indirectly with parentheses
  3098. MODULE Test;
  3099. CONST Constant = 007;
  3100. BEGIN Constant ()
  3101. END Test.
  3102. positive: calling procedure with parameter and constant integer argument
  3103. MODULE Test;
  3104. PROCEDURE Procedure (value: INTEGER); END Procedure;
  3105. BEGIN Procedure (0);
  3106. END Test.
  3107. negative: calling procedure with variable parameter and constant integer argument
  3108. MODULE Test;
  3109. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  3110. BEGIN Procedure (1);
  3111. END Test.
  3112. positive: calling procedure with constant parameter and constant integer argument
  3113. MODULE Test;
  3114. PROCEDURE Procedure (CONST value: INTEGER); END Procedure;
  3115. BEGIN Procedure (2);
  3116. END Test.
  3117. # constant reals
  3118. positive: constant real in valid real range
  3119. MODULE Test;
  3120. CONST Result = 1.E10;
  3121. END Test.
  3122. positive: constant long real in valid long real range
  3123. MODULE Test;
  3124. CONST Result = 1.D10;
  3125. END Test.
  3126. negative: constant real exceeding valid real range
  3127. MODULE Test;
  3128. CONST Result = 1.E100;
  3129. END Test.
  3130. positive: constant long real exceeding valid real range
  3131. MODULE Test;
  3132. CONST Result = 1.D100;
  3133. END Test.
  3134. negative: constant real exceeding valid long range
  3135. MODULE Test;
  3136. CONST Result = 1.E500;
  3137. END Test.
  3138. negative: constant long real exceeding valid long real range
  3139. MODULE Test;
  3140. CONST Result = 1.D500;
  3141. END Test.
  3142. positive: arithmetic negation on constant real
  3143. MODULE Test;
  3144. CONST Result = -1.0;
  3145. BEGIN ASSERT (Result = -1);
  3146. END Test.
  3147. positive: multiple arithmetic negations on constant real
  3148. MODULE Test;
  3149. CONST Result = -(-(-1.0));
  3150. BEGIN ASSERT (Result = -1);
  3151. END Test.
  3152. negative: logical negation on constant real
  3153. MODULE Test;
  3154. CONST Result = ~1.D4;
  3155. END Test.
  3156. negative: dereferencing constant real
  3157. MODULE Test;
  3158. CONST Result = 2.7^;
  3159. END Test.
  3160. negative: dereferencing constant real indirectly
  3161. MODULE Test;
  3162. CONST Constant = 2.7;
  3163. CONST Result = Constant^;
  3164. END Test.
  3165. positive: addition on constant reals
  3166. MODULE Test;
  3167. CONST Result = 1.75 + 87.25;
  3168. BEGIN ASSERT (Result = 89);
  3169. END Test.
  3170. positive: subtraction on constant reals
  3171. MODULE Test;
  3172. CONST Result = 25.E-2 - 0.75
  3173. BEGIN ASSERT (Result = -0.5);
  3174. END Test.
  3175. positive: multiplication on constant reals
  3176. MODULE Test;
  3177. CONST Result = 0.5 * 1.5
  3178. BEGIN ASSERT (Result = 0.75);
  3179. END Test.
  3180. negative: integer division on constant reals
  3181. MODULE Test;
  3182. CONST Result = 3.E9 DIV 1.
  3183. END Test.
  3184. positive: real division on constant reals
  3185. MODULE Test;
  3186. CONST Result = 0.75 / 0.5
  3187. BEGIN ASSERT (Result = 1.5);
  3188. END Test.
  3189. negative: real division on constant reals by zero
  3190. MODULE Test;
  3191. CONST Result = 0.5 / 0.0
  3192. END Test.
  3193. negative: modulo on constant reals
  3194. MODULE Test;
  3195. CONST Result = 8.9 MOD 7.1
  3196. END Test.
  3197. positive: equal relation on constant reals
  3198. MODULE Test;
  3199. CONST Result = 1.0 = 5.E32
  3200. BEGIN ASSERT (Result = FALSE);
  3201. END Test.
  3202. positive: unequal relation on constant reals
  3203. MODULE Test;
  3204. CONST Result = 0.001 # 9.
  3205. BEGIN ASSERT (Result = TRUE);
  3206. END Test.
  3207. positive: less relation on constant reals
  3208. MODULE Test;
  3209. CONST Result = 1.0 < 97.4
  3210. BEGIN ASSERT (Result = TRUE);
  3211. END Test.
  3212. positive: less or equal relation on constant reals
  3213. MODULE Test;
  3214. CONST Result = 464.1 <= 9.E+7
  3215. BEGIN ASSERT (Result = TRUE);
  3216. END Test.
  3217. positive: greater relation on constant reals
  3218. MODULE Test;
  3219. CONST Result = 0.1 > 1.54
  3220. BEGIN ASSERT (Result = FALSE);
  3221. END Test.
  3222. positive: greater or equal relation on constant reals
  3223. MODULE Test;
  3224. CONST Result = 9.E9 >= 0.0
  3225. BEGIN ASSERT (Result = TRUE);
  3226. END Test.
  3227. negative: set membership on constant reals
  3228. MODULE Test;
  3229. CONST Result = 9.1 IN 1.0
  3230. END Test.
  3231. negative: type test on constant reals
  3232. MODULE Test;
  3233. CONST Result = 4.E9 IS 1.
  3234. END Test.
  3235. negative: type test on constant real
  3236. MODULE Test;
  3237. CONST Result = 4.E9 IS Real
  3238. END Test.
  3239. negative: type test on constant real type
  3240. MODULE Test;
  3241. TYPE Type = REAL;
  3242. CONST Result = 4.E9 IS Type
  3243. END Test.
  3244. negative: type guard on constant reals
  3245. MODULE Test;
  3246. CONST Result = 5.0(0.0)
  3247. END Test.
  3248. negative: indirect type guard on constant reals
  3249. MODULE Test;
  3250. CONST Constant = 5.0
  3251. CONST Result = Constant(Constant)
  3252. END Test.
  3253. negative: type guard on constant real
  3254. MODULE Test;
  3255. CONST Result = 5.0(REAL)
  3256. END Test.
  3257. negative: indirect type guard on constant real
  3258. MODULE Test;
  3259. CONST Constant = 5.0
  3260. CONST Result = Constant(REAL)
  3261. END Test.
  3262. negative: type guard on constant real type
  3263. MODULE Test;
  3264. TYPE Type = REAL;
  3265. CONST Result = 5.0(Type)
  3266. END Test.
  3267. negative: indirect type guard on constant real type
  3268. MODULE Test;
  3269. CONST Constant = 5.0
  3270. TYPE Type = REAL;
  3271. CONST Result = Constant(Type)
  3272. END Test.
  3273. negative: logical and on constant reals
  3274. MODULE Test;
  3275. CONST Result = 9.D54 & 1.974D+9
  3276. END Test.
  3277. negative: logical or on constant reals
  3278. MODULE Test;
  3279. CONST Result = 0.4 OR 0.
  3280. END Test.
  3281. negative: ordinal value of constant real
  3282. MODULE Test;
  3283. CONST Result = ORD (84.4)
  3284. END Test.
  3285. negative: character value of constant real
  3286. MODULE Test;
  3287. CONST Result = CHR (67.4)
  3288. END Test.
  3289. positive: absolute value of constant real
  3290. MODULE Test;
  3291. CONST Result = ABS (-67.4)
  3292. BEGIN ASSERT (Result >= 0);
  3293. END Test.
  3294. negative: odd test on constant real
  3295. MODULE Test;
  3296. CONST Result = ODD (2.5)
  3297. END Test.
  3298. negative: capital letter of constant real
  3299. MODULE Test;
  3300. CONST Result = CAP (-0.5)
  3301. END Test.
  3302. positive: minimal value of real
  3303. MODULE Test;
  3304. CONST A = MIN (REAL); B = MIN (LONGREAL)
  3305. END Test.
  3306. positive: maximal value of real
  3307. MODULE Test;
  3308. CONST A = MAX (REAL); B = MAX (LONGREAL)
  3309. END Test.
  3310. negative: arithmetic shift of constant reals
  3311. MODULE Test;
  3312. CONST Result = ASH (64.5, 3.4)
  3313. END Test.
  3314. negative: short on constant real
  3315. MODULE Test;
  3316. CONST Result = SHORT (5.4)
  3317. END Test.
  3318. positive: short on constant long real
  3319. MODULE Test;
  3320. CONST Result = SHORT (5.0D300)
  3321. END Test.
  3322. positive: long on constant real
  3323. MODULE Test;
  3324. CONST Result = LONG (5.4)
  3325. END Test.
  3326. negative: long on constant long real
  3327. MODULE Test;
  3328. CONST Result = LONG (5.0D300)
  3329. END Test.
  3330. positive: entier on constant real
  3331. MODULE Test;
  3332. CONST Result = ENTIER (5.4)
  3333. END Test.
  3334. positive: entier on constant long real
  3335. MODULE Test;
  3336. CONST Result = ENTIER (5.0D300)
  3337. END Test.
  3338. negative: unary length of constant real
  3339. MODULE Test;
  3340. CONST Result = LEN (0.123)
  3341. END Test.
  3342. negative: binary length of constant real
  3343. MODULE Test;
  3344. CONST Result = LEN (0.123, 0)
  3345. END Test.
  3346. negative: indexing constant real
  3347. MODULE Test;
  3348. CONST Result = 9.7[0]
  3349. END Test.
  3350. negative: indexing constant real indirectly
  3351. MODULE Test;
  3352. CONST Constant = 9.7;
  3353. CONST Result = Constant[0]
  3354. END Test.
  3355. negative: constant real as index
  3356. MODULE Test;
  3357. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  3358. BEGIN result := array[9.7]
  3359. END Test.
  3360. negative: member selection on constant real
  3361. MODULE Test;
  3362. CONST Result = 654.654.member
  3363. END Test.
  3364. negative: indirect member selection on constant real
  3365. MODULE Test;
  3366. CONST Constant = 654.654;
  3367. CONST Result = Constant.member
  3368. END Test.
  3369. negative: calling constant real
  3370. MODULE Test;
  3371. BEGIN 1.23 ()
  3372. END Test.
  3373. negative: calling constant real indirectly
  3374. MODULE Test;
  3375. CONST Constant = 1.23;
  3376. BEGIN Constant
  3377. END Test.
  3378. negative: calling constant real indirectly with parentheses
  3379. MODULE Test;
  3380. CONST Constant = 1.23;
  3381. BEGIN Constant ()
  3382. END Test.
  3383. positive: calling procedure with parameter and constant real argument
  3384. MODULE Test;
  3385. PROCEDURE Procedure (value: REAL); END Procedure;
  3386. BEGIN Procedure (0.0);
  3387. END Test.
  3388. negative: calling procedure with variable parameter and constant real argument
  3389. MODULE Test;
  3390. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  3391. BEGIN Procedure (1.1);
  3392. END Test.
  3393. positive: calling procedure with constant parameter and constant real argument
  3394. MODULE Test;
  3395. PROCEDURE Procedure (CONST value: REAL); END Procedure;
  3396. BEGIN Procedure (2.2);
  3397. END Test.
  3398. # constant set
  3399. positive: empty constant set
  3400. MODULE Test;
  3401. CONST Result = {};
  3402. END Test.
  3403. negative: constant boolean as set element
  3404. MODULE Test;
  3405. CONST Result = {FALSE};
  3406. END Test.
  3407. negative: constant character as set element
  3408. MODULE Test;
  3409. CONST Result = {'a'};
  3410. END Test.
  3411. positive: constant integer constant as set element
  3412. MODULE Test;
  3413. CONST Result = {10};
  3414. BEGIN ASSERT (Result = {10});
  3415. END Test.
  3416. negative: constant real as set element
  3417. MODULE Test;
  3418. CONST Result = {45.4};
  3419. END Test.
  3420. negative: constant set as set element
  3421. MODULE Test;
  3422. CONST Result = {{}};
  3423. END Test.
  3424. negative: constant string as set element
  3425. MODULE Test;
  3426. CONST Result = {"string"};
  3427. END Test.
  3428. negative: constant set element exceeding valid range
  3429. MODULE Test;
  3430. CONST Result = {100};
  3431. END Test.
  3432. negative: negative constant set element
  3433. MODULE Test;
  3434. CONST Result = {-1};
  3435. END Test.
  3436. positive: several equal constant set elements
  3437. MODULE Test;
  3438. CONST Result = {0, 0, 0};
  3439. BEGIN ASSERT (Result = {0});
  3440. END Test.
  3441. positive: several different constant set elements
  3442. MODULE Test;
  3443. CONST Result = {0, 1, 2};
  3444. BEGIN ASSERT (Result = {0..2});
  3445. END Test.
  3446. positive: constant set element range
  3447. MODULE Test;
  3448. CONST Result = {5..6};
  3449. BEGIN ASSERT (Result = {5, 6});
  3450. END Test.
  3451. positive: constant set element range with single element
  3452. MODULE Test;
  3453. CONST Result = {6..6};
  3454. BEGIN ASSERT (Result = {6});
  3455. END Test.
  3456. positive: empty constant set element range
  3457. MODULE Test;
  3458. CONST Result = {3..2};
  3459. BEGIN ASSERT (Result = {});
  3460. END Test.
  3461. negative: empty constant set element range with negative start element
  3462. MODULE Test;
  3463. CONST Result = {-1..2};
  3464. END Test.
  3465. negative: empty constant set element range with negative end element
  3466. MODULE Test;
  3467. CONST Result = {3..-4};
  3468. END Test.
  3469. positive: relations on constant sets
  3470. MODULE Test;
  3471. BEGIN
  3472. ASSERT ({1..3,5} <= {1..3,5});
  3473. ASSERT (~({1..3,5,6} < {1..3,5,8}));
  3474. ASSERT (~({1..3,5,6} <= {1..3,5,8}));
  3475. ASSERT (~({1..3,5,6} > {1..3,5,8}));
  3476. ASSERT (~({1..3,5,6} >= {1..3,5,8}));
  3477. ASSERT ({1..3,5} < {1..3,5,7});
  3478. ASSERT ({1..3,5} > {1..3});
  3479. ASSERT ({1..3,5,7} >= {1..3,5,7});
  3480. ASSERT ({1..3,5} = {1..3,5});
  3481. ASSERT ({1..3,5,8} # {1..3,5,7});
  3482. END Test.
  3483. positive: complement on constant set
  3484. MODULE Test;
  3485. CONST Result = -{4, 9};
  3486. BEGIN ASSERT (Result = -{4, 9});
  3487. END Test.
  3488. positive: multiple complements on constant set
  3489. MODULE Test;
  3490. CONST Result = -(-(-{5}));
  3491. BEGIN ASSERT (Result = -{5});
  3492. END Test.
  3493. negative: logical negation on constant set
  3494. MODULE Test;
  3495. CONST Result = ~{};
  3496. END Test.
  3497. negative: dereferencing constant set
  3498. MODULE Test;
  3499. CONST Result = {2..5}^;
  3500. END Test.
  3501. negative: dereferencing constant set indirectly
  3502. MODULE Test;
  3503. CONST Constant = {2..5};
  3504. CONST Result = Constant^;
  3505. END Test.
  3506. positive: union on constant sets
  3507. MODULE Test;
  3508. CONST Result = {4, 6} + {9};
  3509. BEGIN ASSERT (Result = {4, 6, 9});
  3510. END Test.
  3511. positive: difference on constant sets
  3512. MODULE Test;
  3513. CONST Result = {7, 2} - {2..1}
  3514. BEGIN ASSERT (Result = {2, 7});
  3515. END Test.
  3516. positive: intersection on constant sets
  3517. MODULE Test;
  3518. CONST Result = {7..9} * {6..7}
  3519. BEGIN ASSERT (Result = {7});
  3520. END Test.
  3521. negative: integer division on constant sets
  3522. MODULE Test;
  3523. CONST Result = {8} DIV {}
  3524. END Test.
  3525. positive: symmetric difference on constant sets
  3526. MODULE Test;
  3527. CONST Result = {4..9} / {5,4,3,2,1}
  3528. BEGIN ASSERT (Result = {1..3, 6..9});
  3529. END Test.
  3530. negative: modulo on constant sets
  3531. MODULE Test;
  3532. CONST Result = {7} MOD {0}
  3533. END Test.
  3534. positive: equal relation on constant sets
  3535. MODULE Test;
  3536. CONST Result = {4} = {}
  3537. BEGIN ASSERT (Result = FALSE);
  3538. END Test.
  3539. positive: unequal relation on constant sets
  3540. MODULE Test;
  3541. CONST Result = {9, 5} # {0..5}
  3542. BEGIN ASSERT (Result = TRUE);
  3543. END Test.
  3544. positive: less relation on constant sets
  3545. MODULE Test;
  3546. CONST Result = {9} < {7}
  3547. BEGIN ASSERT (Result = FALSE);
  3548. END Test.
  3549. positive: less or equal relation on constant sets
  3550. MODULE Test;
  3551. CONST Result = {8} <= {8}
  3552. BEGIN ASSERT (Result = TRUE);
  3553. END Test.
  3554. positive: greater relation on constant sets
  3555. MODULE Test;
  3556. CONST Result = {0..5} > {0..2}
  3557. BEGIN ASSERT (Result = TRUE);
  3558. END Test.
  3559. positive: greater or equal relation on constant sets
  3560. MODULE Test;
  3561. CONST Result = {4} >= {4..4}
  3562. BEGIN ASSERT (Result = TRUE);
  3563. END Test.
  3564. negative: set membership on constant sets
  3565. MODULE Test;
  3566. CONST Result = {9} IN {1}
  3567. END Test.
  3568. positive: set membership on integer and constant set
  3569. MODULE Test;
  3570. CONST Result = 3 IN {2}
  3571. BEGIN ASSERT (Result = FALSE);
  3572. END Test.
  3573. negative: type test on constant sets
  3574. MODULE Test;
  3575. CONST Result = {7} IS {}
  3576. END Test.
  3577. negative: type test on constant set
  3578. MODULE Test;
  3579. CONST Result = {7} IS Set
  3580. END Test.
  3581. negative: type test on constant set type
  3582. MODULE Test;
  3583. TYPE Type = Set;
  3584. CONST Result = {7} IS Type
  3585. END Test.
  3586. negative: type guard on constant sets
  3587. MODULE Test;
  3588. CONST Result = {}({4})
  3589. END Test.
  3590. negative: indirect type guard on constant sets
  3591. MODULE Test;
  3592. CONST Constant = {}
  3593. CONST Result = Constant(Constant)
  3594. END Test.
  3595. negative: type guard on constant set
  3596. MODULE Test;
  3597. CONST Result = {}(SET)
  3598. END Test.
  3599. negative: indirect type guard on constant set
  3600. MODULE Test;
  3601. CONST Constant = {}
  3602. CONST Result = Constant(SET)
  3603. END Test.
  3604. negative: type guard on constant set type
  3605. MODULE Test;
  3606. TYPE Type = SET;
  3607. CONST Result = {}(Type)
  3608. END Test.
  3609. negative: indirect type guard on constant set type
  3610. MODULE Test;
  3611. CONST Constant = {}
  3612. TYPE Type = SET;
  3613. CONST Result = Constant(Type)
  3614. END Test.
  3615. negative: logical and on constant sets
  3616. MODULE Test;
  3617. CONST Result = {0..7} & {7}
  3618. END Test.
  3619. negative: logical or on constant sets
  3620. MODULE Test;
  3621. CONST Result = {8} OR {}
  3622. END Test.
  3623. negative: ordinal value of constant set
  3624. MODULE Test;
  3625. CONST Result = ORD ({5})
  3626. END Test.
  3627. negative: character value of constant set
  3628. MODULE Test;
  3629. CONST Result = CHR ({1..4})
  3630. END Test.
  3631. negative: absolute value of constant set
  3632. MODULE Test;
  3633. CONST Result = ABS ({1..4})
  3634. END Test.
  3635. negative: odd test on constant set
  3636. MODULE Test;
  3637. CONST Result = ODD ({})
  3638. END Test.
  3639. negative: capital letter of constant set
  3640. MODULE Test;
  3641. CONST Result = CAP ({2..9})
  3642. END Test.
  3643. positive: minimal value of set
  3644. MODULE Test;
  3645. CONST Result = MIN (SET)
  3646. BEGIN ASSERT (Result = 0);
  3647. END Test.
  3648. positive: maximal value of set
  3649. MODULE Test;
  3650. CONST Result = MAX (SET)
  3651. BEGIN ASSERT (Result = SIZEOF (SET) * 8 - 1)
  3652. END Test.
  3653. negative: arithmetic shift of constant set
  3654. MODULE Test;
  3655. CONST Result = ASH ({6}, {})
  3656. END Test.
  3657. negative: short on constant set
  3658. MODULE Test;
  3659. CONST Result = SHORT ({4, 2})
  3660. END Test.
  3661. negative: long on constant set
  3662. MODULE Test;
  3663. CONST Result = LONG ({4, 2})
  3664. END Test.
  3665. negative: entier on constant set
  3666. MODULE Test;
  3667. CONST Result = ENTIER ({4, 2})
  3668. END Test.
  3669. negative: unary length of constant set
  3670. MODULE Test;
  3671. CONST Result = LEN ({0,3})
  3672. END Test.
  3673. negative: binary length of constant set
  3674. MODULE Test;
  3675. CONST Result = LEN ({0,3}, 0)
  3676. END Test.
  3677. negative: indexing constant set
  3678. MODULE Test;
  3679. CONST Result = {1}[0]
  3680. END Test.
  3681. negative: indexing constant set indirectly
  3682. MODULE Test;
  3683. CONST Constant = {1};
  3684. CONST Result = Constant[0]
  3685. END Test.
  3686. negative: constant set as index
  3687. MODULE Test;
  3688. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  3689. BEGIN result := array[{1}]
  3690. END Test.
  3691. negative: member selection on constant set
  3692. MODULE Test;
  3693. CONST Result = {2}.member
  3694. END Test.
  3695. negative: indirect member selection on constant set
  3696. MODULE Test;
  3697. CONST Constant = {2};
  3698. CONST Result = Constant.member
  3699. END Test.
  3700. negative: calling constant set
  3701. MODULE Test;
  3702. BEGIN {} ()
  3703. END Test.
  3704. negative: calling constant set indirectly
  3705. MODULE Test;
  3706. CONST Constant = {};
  3707. BEGIN Constant
  3708. END Test.
  3709. negative: calling constant set indirectly with parentheses
  3710. MODULE Test;
  3711. CONST Constant = {};
  3712. BEGIN Constant ()
  3713. END Test.
  3714. positive: calling procedure with parameter and constant set argument
  3715. MODULE Test;
  3716. PROCEDURE Procedure (value: SET); END Procedure;
  3717. BEGIN Procedure ({0});
  3718. END Test.
  3719. negative: calling procedure with variable parameter and constant set argument
  3720. MODULE Test;
  3721. PROCEDURE Procedure (VAR value: SET); END Procedure;
  3722. BEGIN Procedure ({4..6});
  3723. END Test.
  3724. positive: calling procedure with constant parameter and constant set argument
  3725. MODULE Test;
  3726. PROCEDURE Procedure (CONST value: SET); END Procedure;
  3727. BEGIN Procedure ({1,2});
  3728. END Test.
  3729. # constant strings
  3730. positive: empty constant string
  3731. MODULE Test;
  3732. CONST Result = "";
  3733. END Test.
  3734. negative: arithmetic negation on constant string
  3735. MODULE Test;
  3736. CONST Result = -"123";
  3737. END Test.
  3738. negative: logical negation on constant string
  3739. MODULE Test;
  3740. CONST Result = ~"invalid";
  3741. END Test.
  3742. negative: dereferencing constant string
  3743. MODULE Test;
  3744. CONST Result = "string"^;
  3745. END Test.
  3746. negative: dereferencing constant string indirectly
  3747. MODULE Test;
  3748. CONST Constant = "string";
  3749. CONST Result = Constant^;
  3750. END Test.
  3751. negative: addition on constant strings
  3752. MODULE Test;
  3753. CONST Result = "hello" + "world";
  3754. END Test.
  3755. negative: subtraction on constant strings
  3756. MODULE Test;
  3757. CONST Result = "nice" - "try"
  3758. END Test.
  3759. negative: multiplication on constant strings
  3760. MODULE Test;
  3761. CONST Result = "multiplication" * "disallowed"
  3762. END Test.
  3763. negative: integer division on constant strings
  3764. MODULE Test;
  3765. CONST Result = "abc" DIV "ABC"
  3766. END Test.
  3767. negative: real division on constant strings
  3768. MODULE Test;
  3769. CONST Result = "007" / "008"
  3770. END Test.
  3771. negative: modulo on constant strings
  3772. MODULE Test;
  3773. CONST Result = "one" MOD "two"
  3774. END Test.
  3775. positive: equal relation on constant strings
  3776. MODULE Test;
  3777. CONST Result = "string" = "gnirts"
  3778. BEGIN ASSERT (Result = FALSE);
  3779. END Test.
  3780. positive: unequal relation on constant strings
  3781. MODULE Test;
  3782. CONST Result = "qwerty" # "ytrewq"
  3783. BEGIN ASSERT (Result = TRUE);
  3784. END Test.
  3785. positive: less relation on constant strings
  3786. MODULE Test;
  3787. CONST Result = "av" < "bv"
  3788. BEGIN ASSERT (Result = TRUE);
  3789. END Test.
  3790. positive: less or equal relation on constant strings
  3791. MODULE Test;
  3792. CONST Result = "word1" <= "word2"
  3793. BEGIN ASSERT (Result = TRUE);
  3794. END Test.
  3795. positive: greater relation on constant strings
  3796. MODULE Test;
  3797. CONST Result = "lower" > "UPPER"
  3798. BEGIN ASSERT (Result = TRUE);
  3799. END Test.
  3800. positive: greater or equal relation on constant strings
  3801. MODULE Test;
  3802. CONST Result = "number" >= "text"
  3803. BEGIN ASSERT (Result = FALSE);
  3804. END Test.
  3805. negative: set membership on constant strings
  3806. MODULE Test;
  3807. CONST Result = "name" IN "ninety"
  3808. END Test.
  3809. negative: type test on constant strings
  3810. MODULE Test;
  3811. CONST Result = "not" IS "supported"
  3812. END Test.
  3813. negative: type test on constant string
  3814. MODULE Test;
  3815. CONST Result = "not" IS ARRAY OF CHAR
  3816. END Test.
  3817. negative: type test on string type
  3818. MODULE Test;
  3819. TYPE Type = ARRAY OF CHAR;
  3820. CONST Result = "not" IS Type
  3821. END Test.
  3822. negative: type guard on constant strings
  3823. MODULE Test;
  3824. CONST Result = "type"("guard")
  3825. END Test.
  3826. negative: indirect type guard on constant strings
  3827. MODULE Test;
  3828. CONST Constant = "type"
  3829. CONST Result = Constant(Constant)
  3830. END Test.
  3831. negative: type guard on constant string
  3832. MODULE Test;
  3833. CONST Result = "type"(ARRAY OF CHAR)
  3834. END Test.
  3835. negative: indirect type guard on constant string
  3836. MODULE Test;
  3837. CONST Constant = "type"
  3838. CONST Result = Constant(ARRAY OF CHAR)
  3839. END Test.
  3840. negative: type guard on string type
  3841. MODULE Test;
  3842. TYPE Type = ARRAY OF CHAR;
  3843. CONST Result = "type"(Type)
  3844. END Test.
  3845. negative: indirect type guard on string type
  3846. MODULE Test;
  3847. CONST Constant = "type"
  3848. TYPE Type = ARRAY OF CHAR;
  3849. CONST Result = Constant(Type)
  3850. END Test.
  3851. negative: logical and on constant strings
  3852. MODULE Test;
  3853. CONST Result = "oh" & "dear"
  3854. END Test.
  3855. negative: logical or on constant strings
  3856. MODULE Test;
  3857. CONST Result = "last" OR "one"
  3858. END Test.
  3859. negative: ordinal value of constant string
  3860. MODULE Test;
  3861. CONST Result = ORD ("ORD")
  3862. END Test.
  3863. negative: character value of constant string
  3864. MODULE Test;
  3865. CONST Result = CHR ("CHR")
  3866. END Test.
  3867. negative: absolute value of constant string
  3868. MODULE Test;
  3869. CONST Result = ABS ("ABS")
  3870. END Test.
  3871. negative: odd test on constant string
  3872. MODULE Test;
  3873. CONST Result = ODD ("ODD")
  3874. END Test.
  3875. negative: capital letter of constant string
  3876. MODULE Test;
  3877. CONST Result = CAP ("lowercase")
  3878. END Test.
  3879. negative: arithmetic shift of constant string
  3880. MODULE Test;
  3881. CONST Result = ASH ("shift", "me")
  3882. END Test.
  3883. negative: short on constant string
  3884. MODULE Test;
  3885. CONST Result = SHORT ("integer")
  3886. END Test.
  3887. negative: long on constant string
  3888. MODULE Test;
  3889. CONST Result = LONG ("integer")
  3890. END Test.
  3891. negative: entier on constant string
  3892. MODULE Test;
  3893. CONST Result = ENTIER ("real")
  3894. END Test.
  3895. negative: unary length of constant string
  3896. MODULE Test;
  3897. CONST Result = LEN ("abc")
  3898. END Test.
  3899. negative: binary length of constant string
  3900. MODULE Test;
  3901. CONST Result = LEN ("abc", 0)
  3902. END Test.
  3903. negative: indexing constant string
  3904. MODULE Test;
  3905. CONST Result = "string"[0]
  3906. END Test.
  3907. negative: indexing constant string indirectly
  3908. MODULE Test;
  3909. CONST Constant = "string";
  3910. CONST Result = Constant[0]
  3911. END Test.
  3912. negative: constant string as index
  3913. MODULE Test;
  3914. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  3915. BEGIN result := array["string"]
  3916. END Test.
  3917. negative: member selection on constant string
  3918. MODULE Test;
  3919. CONST Result = "record".member
  3920. END Test.
  3921. negative: indirect member selection on constant string
  3922. MODULE Test;
  3923. CONST Constant = "record";
  3924. CONST Result = Constant.member
  3925. END Test.
  3926. negative: calling constant string
  3927. MODULE Test;
  3928. BEGIN "asdf" ()
  3929. END Test.
  3930. negative: calling constant string indirectly
  3931. MODULE Test;
  3932. CONST Constant = "asdf";
  3933. BEGIN Constant
  3934. END Test.
  3935. negative: calling constant string indirectly with parentheses
  3936. MODULE Test;
  3937. CONST Constant = "asdf";
  3938. BEGIN Constant ()
  3939. END Test.
  3940. positive: calling procedure with parameter and constant string argument
  3941. MODULE Test;
  3942. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  3943. BEGIN Procedure ("argument");
  3944. END Test.
  3945. negative: calling procedure with variable parameter and constant string argument
  3946. MODULE Test;
  3947. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  3948. BEGIN Procedure ("argument");
  3949. END Test.
  3950. positive: calling procedure with constant parameter and constant string argument
  3951. MODULE Test;
  3952. PROCEDURE Procedure (CONST value: ARRAY OF CHAR); END Procedure;
  3953. BEGIN Procedure ("argument");
  3954. END Test.
  3955. # constant nil pointers
  3956. negative: arithmetic negation on nil pointer
  3957. MODULE Test;
  3958. CONST Result = -NIL;
  3959. END Test.
  3960. negative: logical negation on nil pointer
  3961. MODULE Test;
  3962. CONST Result = ~NIL;
  3963. END Test.
  3964. negative: multiple logical negations on nil pointer
  3965. MODULE Test;
  3966. CONST Result = ~~~~NIL;
  3967. END Test.
  3968. negative: dereferencing nil pointer
  3969. MODULE Test;
  3970. CONST Result = NIL^;
  3971. END Test.
  3972. negative: dereferencing constant nil pointer indirectly
  3973. MODULE Test;
  3974. CONST Constant = NIL;
  3975. CONST Result = Constant^;
  3976. END Test.
  3977. negative: addition on nil pointer
  3978. MODULE Test;
  3979. CONST Result = NIL + NIL;
  3980. END Test.
  3981. negative: subtraction on nil pointer
  3982. MODULE Test;
  3983. CONST Result = NIL - NIL
  3984. END Test.
  3985. negative: multiplication on nil pointer
  3986. MODULE Test;
  3987. CONST Result = NIL * NIL
  3988. END Test.
  3989. negative: integer division on nil pointer
  3990. MODULE Test;
  3991. CONST Result = NIL DIV NIL
  3992. END Test.
  3993. negative: real division on nil pointer
  3994. MODULE Test;
  3995. CONST Result = NIL / NIL
  3996. END Test.
  3997. negative: modulo on nil pointer
  3998. MODULE Test;
  3999. CONST Result = NIL MOD NIL
  4000. END Test.
  4001. positive: equal relation on nil pointer
  4002. MODULE Test;
  4003. CONST Result = NIL = NIL
  4004. BEGIN ASSERT (Result = TRUE);
  4005. END Test.
  4006. positive: unequal relation on nil pointer
  4007. MODULE Test;
  4008. CONST Result = NIL # NIL
  4009. BEGIN ASSERT (Result = FALSE);
  4010. END Test.
  4011. negative: less relation on nil pointer
  4012. MODULE Test;
  4013. CONST Result = NIL < NIL
  4014. END Test.
  4015. negative: less or equal relation on nil pointer
  4016. MODULE Test;
  4017. CONST Result = NIL <= NIL
  4018. END Test.
  4019. negative: greater relation on nil pointer
  4020. MODULE Test;
  4021. CONST Result = NIL > NIL
  4022. END Test.
  4023. negative: greater or equal relation on nil pointer
  4024. MODULE Test;
  4025. CONST Result = NIL >= NIL
  4026. END Test.
  4027. negative: set membership on nil pointer
  4028. MODULE Test;
  4029. CONST Result = NIL IN NIL
  4030. END Test.
  4031. negative: type test on nil pointers
  4032. MODULE Test;
  4033. CONST Result = NIL IS NIL
  4034. END Test.
  4035. negative: type test on nil pointer
  4036. MODULE Test;
  4037. CONST Result = NIL IS OBJECT
  4038. END Test.
  4039. negative: type test on nil pointer type
  4040. MODULE Test;
  4041. TYPE Type = OBJECT;
  4042. CONST Result = NIL IS Type
  4043. END Test.
  4044. negative: type guard on nil pointers
  4045. MODULE Test;
  4046. CONST Result = NIL(NIL)
  4047. END Test.
  4048. negative: indirect type guard on nil pointers
  4049. MODULE Test;
  4050. CONST Constant = NIL
  4051. CONST Result = Constant(Constant)
  4052. END Test.
  4053. negative: type guard on nil pointer
  4054. MODULE Test;
  4055. CONST Result = NIL(OBJECT)
  4056. END Test.
  4057. negative: indirect type guard on nil pointer
  4058. MODULE Test;
  4059. CONST Constant = NIL
  4060. CONST Result = Constant(NIL)
  4061. END Test.
  4062. negative: type guard on nil pointer type
  4063. MODULE Test;
  4064. TYPE Type = OBJECT;
  4065. CONST Result = NIL(Type)
  4066. END Test.
  4067. negative: indirect type guard on nil pointer type
  4068. MODULE Test;
  4069. CONST Constant = NIL
  4070. TYPE Type = OBJECT;
  4071. CONST Result = Constant(Type)
  4072. END Test.
  4073. negative: logical and on nil pointer
  4074. MODULE Test;
  4075. CONST Result = NIL & NIL
  4076. END Test.
  4077. negative: logical or on nil pointer
  4078. MODULE Test;
  4079. CONST Result = NIL OR NIL
  4080. END Test.
  4081. negative: ordinal value of nil pointer
  4082. MODULE Test;
  4083. CONST Result = ORD (NIL)
  4084. END Test.
  4085. negative: character value of nil pointer
  4086. MODULE Test;
  4087. CONST Result = CHR (NIL)
  4088. END Test.
  4089. negative: absolute value of nil pointer
  4090. MODULE Test;
  4091. CONST Result = ABS (NIL)
  4092. END Test.
  4093. negative: odd test on nil pointer
  4094. MODULE Test;
  4095. CONST Result = ODD (NIL)
  4096. END Test.
  4097. negative: capital letter of nil pointer
  4098. MODULE Test;
  4099. CONST Result = CAP (NIL)
  4100. END Test.
  4101. negative: arithmetic shift of nil pointer
  4102. MODULE Test;
  4103. CONST Result = ASH (NIL, NIL)
  4104. END Test.
  4105. negative: short on nil pointer
  4106. MODULE Test;
  4107. CONST Result = SHORT (NIL)
  4108. END Test.
  4109. negative: long on nil pointer
  4110. MODULE Test;
  4111. CONST Result = LONG (NIL)
  4112. END Test.
  4113. negative: entier on nil pointer
  4114. MODULE Test;
  4115. CONST Result = ENTIER (NIL)
  4116. END Test.
  4117. negative: unary length of nil pointer
  4118. MODULE Test;
  4119. CONST Result = LEN (NIL)
  4120. END Test.
  4121. negative: binary length of nil pointer
  4122. MODULE Test;
  4123. CONST Result = LEN (NIL, 0)
  4124. END Test.
  4125. negative: indexing nil pointer
  4126. MODULE Test;
  4127. CONST Result = NIL[0]
  4128. END Test.
  4129. negative: indexing nil pointer indirectly
  4130. MODULE Test;
  4131. CONST Constant = NIL;
  4132. CONST Result = Constant[0]
  4133. END Test.
  4134. negative: nil pointer as index
  4135. MODULE Test;
  4136. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  4137. BEGIN result := array[NIL]
  4138. END Test.
  4139. negative: member selection on nil pointer
  4140. MODULE Test;
  4141. CONST Result = NIL.member
  4142. END Test.
  4143. negative: indirect member selection on nil pointer
  4144. MODULE Test;
  4145. CONST Constant = NIL;
  4146. CONST Result = Constant.member
  4147. END Test.
  4148. negative: calling nil pointer
  4149. MODULE Test;
  4150. BEGIN NIL ()
  4151. END Test.
  4152. negative: calling nil pointer indirectly
  4153. MODULE Test;
  4154. CONST Constant = NIL;
  4155. BEGIN Constant
  4156. END Test.
  4157. negative: calling nil pointer indirectly with parentheses
  4158. MODULE Test;
  4159. CONST Constant = NIL;
  4160. BEGIN Constant ()
  4161. END Test.
  4162. positive: calling procedure with parameter and nil pointer argument
  4163. MODULE Test;
  4164. PROCEDURE Procedure (value: OBJECT); END Procedure;
  4165. BEGIN Procedure (NIL);
  4166. END Test.
  4167. negative: calling procedure with variable parameter and nil pointer argument
  4168. MODULE Test;
  4169. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  4170. BEGIN Procedure (NIL);
  4171. END Test.
  4172. positive: calling procedure with constant parameter and nil pointer argument
  4173. MODULE Test;
  4174. PROCEDURE Procedure (CONST value: OBJECT); END Procedure;
  4175. BEGIN Procedure (NIL);
  4176. END Test.
  4177. # implicit constant conversions
  4178. positive: implicit constant short to integer conversion
  4179. MODULE Test;
  4180. CONST Result = 10H + 1000H
  4181. END Test.
  4182. positive: implicit constant short to long integer conversion
  4183. MODULE Test;
  4184. CONST Result = 10H * 100000H
  4185. END Test.
  4186. positive: implicit constant short to huge integer conversion
  4187. MODULE Test;
  4188. CONST Result = 10H DIV 100000000H
  4189. END Test.
  4190. positive: implicit constant integer to long integer conversion
  4191. MODULE Test;
  4192. CONST Result = 1000H - 100000H
  4193. END Test.
  4194. positive: implicit constant integer to huge integer conversion
  4195. MODULE Test;
  4196. CONST Result = 1000H * 100000000H
  4197. END Test.
  4198. positive: implicit constant long to huge integer conversion
  4199. MODULE Test;
  4200. CONST Result = 100000H + 100000000H
  4201. END Test.
  4202. positive: implicit constant integer to real conversion
  4203. MODULE Test;
  4204. CONST Result = 4 + 5.0
  4205. END Test.
  4206. positive: implicit constant integer to long real conversion
  4207. MODULE Test;
  4208. CONST Result = 4.5D127 / 54
  4209. END Test.
  4210. positive: implicit constant real to long real conversion
  4211. MODULE Test;
  4212. CONST Result = 1.2 * 1.7D247
  4213. END Test.
  4214. negative: implicit conversion between constant boolean and character
  4215. MODULE Test;
  4216. CONST Result = TRUE = 's'
  4217. END Test.
  4218. negative: implicit conversion between constant boolean and integer
  4219. MODULE Test;
  4220. CONST Result = TRUE # 5
  4221. END Test.
  4222. negative: implicit conversion between constant boolean and real
  4223. MODULE Test;
  4224. CONST Result = FALSE = 1.0E4
  4225. END Test.
  4226. negative: implicit conversion between constant boolean and set
  4227. MODULE Test;
  4228. CONST Result = TRUE = {3}
  4229. END Test.
  4230. negative: implicit conversion between constant boolean and string
  4231. MODULE Test;
  4232. CONST Result = TRUE = "adsf"
  4233. END Test.
  4234. negative: implicit conversion between constant boolean and nil pointer
  4235. MODULE Test;
  4236. CONST Result = FALSE = NIL
  4237. END Test.
  4238. negative: implicit conversion between constant character and integer
  4239. MODULE Test;
  4240. CONST Result = 's' # 2
  4241. END Test.
  4242. negative: implicit conversion between constant character and real
  4243. MODULE Test;
  4244. CONST Result = 't' # 1.0
  4245. END Test.
  4246. negative: implicit conversion between constant character and set
  4247. MODULE Test;
  4248. CONST Result = 0X = {}
  4249. END Test.
  4250. negative: implicit conversion between constant character and string
  4251. MODULE Test;
  4252. CONST Result = 0X # "string"
  4253. END Test.
  4254. negative: implicit conversion between constant character and nil pointer
  4255. MODULE Test;
  4256. CONST Result = 45X # NIL
  4257. END Test.
  4258. positive: implicit conversion between constant integer and real
  4259. MODULE Test;
  4260. CONST Result = 54 # 2.0
  4261. END Test.
  4262. negative: implicit conversion between constant integer and set
  4263. MODULE Test;
  4264. CONST Result = 0 = {5}
  4265. END Test.
  4266. negative: implicit conversion between constant integer and string
  4267. MODULE Test;
  4268. CONST Result = 9 # "text"
  4269. END Test.
  4270. negative: implicit conversion between constant integer and nil pointer
  4271. MODULE Test;
  4272. CONST Result = 5 # NIL
  4273. END Test.
  4274. negative: implicit conversion between constant real and set
  4275. MODULE Test;
  4276. CONST Result = 54.1 = {0..4}
  4277. END Test.
  4278. negative: implicit conversion between constant real and string
  4279. MODULE Test;
  4280. CONST Result = 0.0 = "zero"
  4281. END Test.
  4282. negative: implicit conversion between constant real and nil pointer
  4283. MODULE Test;
  4284. CONST Result = 5.5 = NIL
  4285. END Test.
  4286. negative: implicit conversion between constant set and string
  4287. MODULE Test;
  4288. CONST Result = {9} # "value"
  4289. END Test.
  4290. negative: implicit conversion between constant set and nil pointer
  4291. MODULE Test;
  4292. CONST Result = {} # NIL
  4293. END Test.
  4294. negative: implicit conversion between constant string and nil pointer
  4295. MODULE Test;
  4296. CONST Result = "NIL" # NIL
  4297. END Test.
  4298. # explicit constant conversions
  4299. positive: explicit constant short integer to integer conversion
  4300. MODULE Test;
  4301. CONST Result = LONG (12H)
  4302. BEGIN ASSERT (Result = 12H)
  4303. END Test.
  4304. positive: explicit constant short to long integer conversion
  4305. MODULE Test;
  4306. CONST Result = LONG (LONG (12H))
  4307. BEGIN ASSERT (Result = 12H)
  4308. END Test.
  4309. positive: explicit constant short to huge integer conversion
  4310. MODULE Test;
  4311. CONST Result = LONG (LONG (LONG (12H)))
  4312. BEGIN ASSERT (Result = 12H)
  4313. END Test.
  4314. positive: explicit constant integer to short integer conversion
  4315. MODULE Test;
  4316. CONST Result = SHORT (1234H)
  4317. BEGIN ASSERT (Result = 34H)
  4318. END Test.
  4319. positive: explicit constant integer to long integer conversion
  4320. MODULE Test;
  4321. CONST Result = LONG (1234H)
  4322. BEGIN ASSERT (Result = 1234H)
  4323. END Test.
  4324. positive: explicit constant integer to huge integer conversion
  4325. MODULE Test;
  4326. CONST Result = LONG (LONG (1234H))
  4327. BEGIN ASSERT (Result = 1234H)
  4328. END Test.
  4329. positive: explicit constant long to short integer conversion
  4330. MODULE Test;
  4331. CONST Result = SHORT (SHORT (123456H))
  4332. BEGIN ASSERT (Result = 56H)
  4333. END Test.
  4334. positive: explicit constant long integer to integer conversion
  4335. MODULE Test;
  4336. CONST Result = SHORT (123456H)
  4337. BEGIN ASSERT (Result = 3456H)
  4338. END Test.
  4339. positive: explicit constant long to huge integer conversion
  4340. MODULE Test;
  4341. CONST Result = LONG (123456H)
  4342. BEGIN ASSERT (Result = 123456H)
  4343. END Test.
  4344. positive: explicit constant huge to short integer conversion
  4345. MODULE Test;
  4346. CONST Result = SHORT (SHORT (SHORT (123456777H)))
  4347. BEGIN ASSERT (Result = 77H)
  4348. END Test.
  4349. positive: explicit constant huge integer to integer conversion
  4350. MODULE Test;
  4351. CONST Result = SHORT (SHORT (123456789H))
  4352. BEGIN ASSERT (Result = 6789H)
  4353. END Test.
  4354. positive: explicit constant huge to long integer conversion
  4355. MODULE Test;
  4356. CONST Result = SHORT (123456789H)
  4357. BEGIN ASSERT (Result = 23456789H)
  4358. END Test.
  4359. positive: explicit positive constant real to integer conversion
  4360. MODULE Test;
  4361. CONST Result = ENTIER (5.9)
  4362. BEGIN ASSERT (Result = 5)
  4363. END Test.
  4364. positive: explicit negative constant real to integer conversion
  4365. MODULE Test;
  4366. CONST Result = ENTIER (-5.1E0)
  4367. BEGIN ASSERT (Result = -6)
  4368. END Test.
  4369. positive: explicit positive constant long real to integer conversion
  4370. MODULE Test;
  4371. CONST Result = ENTIER (5.9D0)
  4372. BEGIN ASSERT (Result = 5)
  4373. END Test.
  4374. positive: explicit negative constant long real to integer conversion
  4375. MODULE Test;
  4376. CONST Result = ENTIER (-5.1D0)
  4377. BEGIN ASSERT (Result = -6)
  4378. END Test.
  4379. # types
  4380. positive: unmarked type
  4381. MODULE Test;
  4382. TYPE Type = RECORD END;
  4383. END Test.
  4384. positive: unmarked type within procedure
  4385. MODULE Test;
  4386. PROCEDURE Procedure;
  4387. TYPE Type = RECORD END;
  4388. END Procedure;
  4389. END Test.
  4390. positive: unmarked type within nested procedure
  4391. MODULE Test;
  4392. PROCEDURE Procedure;
  4393. PROCEDURE Procedure;
  4394. TYPE Type = RECORD END;
  4395. END Procedure;
  4396. END Procedure;
  4397. END Test.
  4398. positive: unmarked type within object
  4399. MODULE Test;
  4400. TYPE Object = OBJECT
  4401. TYPE Type = RECORD END;
  4402. END Object;
  4403. END Test.
  4404. positive: unmarked type within object in procedure
  4405. MODULE Test;
  4406. PROCEDURE Procedure;
  4407. TYPE Object = OBJECT
  4408. TYPE Type = RECORD END;
  4409. END Object;
  4410. END Procedure;
  4411. END Test.
  4412. positive: unmarked type within procedure in object
  4413. MODULE Test;
  4414. TYPE Object = OBJECT
  4415. PROCEDURE Procedure;
  4416. TYPE Type = RECORD END;
  4417. END Procedure;
  4418. END Object;
  4419. END Test.
  4420. positive: type marked as exported
  4421. MODULE Test;
  4422. TYPE Type* = RECORD END;
  4423. END Test.
  4424. negative: type marked as exported within procedure
  4425. MODULE Test;
  4426. PROCEDURE Procedure;
  4427. TYPE Type* = RECORD END;
  4428. END Procedure;
  4429. END Test.
  4430. negative: type marked as exported within nested procedure
  4431. MODULE Test;
  4432. PROCEDURE Procedure;
  4433. PROCEDURE Procedure;
  4434. TYPE Type* = RECORD END;
  4435. END Procedure;
  4436. END Procedure;
  4437. END Test.
  4438. positive: type marked as exported within object
  4439. MODULE Test;
  4440. TYPE Object = OBJECT
  4441. TYPE Type* = RECORD END;
  4442. END Object;
  4443. END Test.
  4444. negative: type marked as exported within object in procedure
  4445. MODULE Test;
  4446. PROCEDURE Procedure;
  4447. TYPE Object = OBJECT
  4448. TYPE Type* = RECORD END;
  4449. END Object;
  4450. END Procedure;
  4451. END Test.
  4452. negative: type marked as exported within procedure in object
  4453. MODULE Test;
  4454. TYPE Object = OBJECT
  4455. PROCEDURE Procedure;
  4456. TYPE Type* = RECORD END;
  4457. END Procedure;
  4458. END Object;
  4459. END Test.
  4460. negative: type marked as read-only
  4461. MODULE Test;
  4462. TYPE Type- = OBJECT;
  4463. END Test.
  4464. negative: type marked as read-only within procedure
  4465. MODULE Test;
  4466. PROCEDURE Procedure;
  4467. TYPE Type- = OBJECT;
  4468. END Procedure;
  4469. END Test.
  4470. negative: type marked as read-only within nested procedure
  4471. MODULE Test;
  4472. PROCEDURE Procedure;
  4473. PROCEDURE Procedure;
  4474. TYPE Type- = OBJECT;
  4475. END Procedure;
  4476. END Procedure;
  4477. END Test.
  4478. negative: type marked as read-only within object
  4479. MODULE Test;
  4480. TYPE Object = OBJECT
  4481. TYPE Type- = OBJECT;
  4482. END Object;
  4483. END Test.
  4484. negative: type marked as read-only within object in procedure
  4485. MODULE Test;
  4486. PROCEDURE Procedure;
  4487. TYPE Object = OBJECT
  4488. TYPE Type- = OBJECT;
  4489. END Object;
  4490. END Procedure;
  4491. END Test.
  4492. negative: type marked as read-only within procedure in object
  4493. MODULE Test;
  4494. TYPE Object = OBJECT
  4495. PROCEDURE Procedure;
  4496. TYPE Type- = OBJECT;
  4497. END Procedure;
  4498. END Object;
  4499. END Test.
  4500. negative: duplicated type
  4501. MODULE Test;
  4502. TYPE Type = RECORD END;
  4503. TYPE Type = OBJECT END Type;
  4504. END Test.
  4505. negative: duplicated type within procedure
  4506. MODULE Test;
  4507. PROCEDURE Procedure;
  4508. TYPE Type = RECORD END;
  4509. TYPE Type = OBJECT END Type;
  4510. END Procedure;
  4511. END Test.
  4512. negative: duplicated type within nested procedure
  4513. MODULE Test;
  4514. PROCEDURE Procedure;
  4515. PROCEDURE Procedure;
  4516. TYPE Type = RECORD END;
  4517. TYPE Type = OBJECT END Type;
  4518. END Procedure;
  4519. END Procedure;
  4520. END Test.
  4521. negative: duplicated type within object
  4522. MODULE Test;
  4523. TYPE Object = OBJECT
  4524. TYPE Type = RECORD END;
  4525. TYPE Type = OBJECT END Type;
  4526. END Object;
  4527. END Test.
  4528. negative: duplicated type within object in procedure
  4529. MODULE Test;
  4530. PROCEDURE Procedure;
  4531. TYPE Object = OBJECT
  4532. TYPE Type = RECORD END;
  4533. TYPE Type = OBJECT END Type;
  4534. END Object;
  4535. END Procedure;
  4536. END Test.
  4537. negative: duplicated type within procedure in object
  4538. MODULE Test;
  4539. TYPE Object = OBJECT
  4540. PROCEDURE Procedure;
  4541. TYPE Type = RECORD END;
  4542. TYPE Type = OBJECT END Type;
  4543. END Procedure;
  4544. END Object;
  4545. END Test.
  4546. positive: backwards referencing type
  4547. MODULE Test;
  4548. TYPE A = RECORD END; B = A;
  4549. END Test.
  4550. positive: backwards referencing type within procedure
  4551. MODULE Test;
  4552. PROCEDURE Procedure;
  4553. TYPE A = RECORD END; B = A;
  4554. END Procedure;
  4555. END Test.
  4556. positive: backwards referencing type within nested procedure
  4557. MODULE Test;
  4558. PROCEDURE Procedure;
  4559. PROCEDURE Procedure;
  4560. TYPE A = RECORD END; B = A;
  4561. END Procedure;
  4562. END Procedure;
  4563. END Test.
  4564. positive: backwards referencing type within object
  4565. MODULE Test;
  4566. TYPE Object = OBJECT
  4567. TYPE A = RECORD END; B = A;
  4568. END Object;
  4569. END Test.
  4570. positive: backwards referencing type within object in procedure
  4571. MODULE Test;
  4572. PROCEDURE Procedure;
  4573. TYPE Object = OBJECT
  4574. TYPE A = RECORD END; B = A;
  4575. END Object;
  4576. END Procedure;
  4577. END Test.
  4578. positive: backwards referencing type within procedure in object
  4579. MODULE Test;
  4580. TYPE Object = OBJECT
  4581. PROCEDURE Procedure;
  4582. TYPE A = RECORD END; B = A;
  4583. END Procedure;
  4584. END Object;
  4585. END Test.
  4586. positive: forwards referencing type
  4587. MODULE Test;
  4588. TYPE A = B; B = RECORD END;
  4589. END Test.
  4590. positive: forwards referencing type within procedure
  4591. MODULE Test;
  4592. PROCEDURE Procedure;
  4593. TYPE A = B; B = RECORD END;
  4594. END Procedure;
  4595. END Test.
  4596. positive: forwards referencing type within nested procedure
  4597. MODULE Test;
  4598. PROCEDURE Procedure;
  4599. PROCEDURE Procedure;
  4600. TYPE A = B; B = RECORD END;
  4601. END Procedure;
  4602. END Procedure;
  4603. END Test.
  4604. positive: forwards referencing type within object
  4605. MODULE Test;
  4606. TYPE Object = OBJECT
  4607. TYPE A = B; B = RECORD END;
  4608. END Object;
  4609. END Test.
  4610. positive: forwards referencing type within object in procedure
  4611. MODULE Test;
  4612. PROCEDURE Procedure;
  4613. TYPE Object = OBJECT
  4614. TYPE A = B; B = RECORD END;
  4615. END Object;
  4616. END Procedure;
  4617. END Test.
  4618. positive: forwards referencing type within procedure in object
  4619. MODULE Test;
  4620. TYPE Object = OBJECT
  4621. PROCEDURE Procedure;
  4622. TYPE A = B; B = RECORD END;
  4623. END Procedure;
  4624. END Object;
  4625. END Test.
  4626. negative: cyclic referencing types
  4627. MODULE Test;
  4628. TYPE A = B; B = A;
  4629. END Test.
  4630. negative: cyclic referencing types within procedure
  4631. MODULE Test;
  4632. PROCEDURE Procedure;
  4633. TYPE A = B; B = A;
  4634. END Procedure;
  4635. END Test.
  4636. negative: cyclic referencing types within nested procedure
  4637. MODULE Test;
  4638. PROCEDURE Procedure;
  4639. PROCEDURE Procedure;
  4640. TYPE A = B; B = A;
  4641. END Procedure;
  4642. END Procedure;
  4643. END Test.
  4644. negative: cyclic referencing types within object
  4645. MODULE Test;
  4646. TYPE Object = OBJECT
  4647. TYPE A = B; B = A;
  4648. END Object;
  4649. END Test.
  4650. negative: cyclic referencing types within object in procedure
  4651. MODULE Test;
  4652. PROCEDURE Procedure;
  4653. TYPE Object = OBJECT
  4654. TYPE A = B; B = A;
  4655. END Object;
  4656. END Procedure;
  4657. END Test.
  4658. negative: cyclic referencing types within procedure in object
  4659. MODULE Test;
  4660. TYPE Object = OBJECT
  4661. PROCEDURE Procedure;
  4662. TYPE A = B; B = A;
  4663. END Procedure;
  4664. END Object;
  4665. END Test.
  4666. negative: self referencing type
  4667. MODULE Test;
  4668. TYPE Type = Type;
  4669. END Test.
  4670. negative: self referencing type within procedure
  4671. MODULE Test;
  4672. PROCEDURE Procedure;
  4673. TYPE Type = Type;
  4674. END Procedure;
  4675. END Test.
  4676. negative: self referencing type within nested procedure
  4677. MODULE Test;
  4678. PROCEDURE Procedure;
  4679. PROCEDURE Procedure;
  4680. TYPE Type = Type;
  4681. END Procedure;
  4682. END Procedure;
  4683. END Test.
  4684. negative: self referencing type within object
  4685. MODULE Test;
  4686. TYPE Object = OBJECT
  4687. TYPE Type = Type;
  4688. END Object;
  4689. END Test.
  4690. negative: self referencing type within object in procedure
  4691. MODULE Test;
  4692. PROCEDURE Procedure;
  4693. TYPE Object = OBJECT
  4694. TYPE Type = Type;
  4695. END Object;
  4696. END Procedure;
  4697. END Test.
  4698. negative: self referencing type within procedure in object
  4699. MODULE Test;
  4700. TYPE Object = OBJECT
  4701. PROCEDURE Procedure;
  4702. TYPE Type = Type;
  4703. END Procedure;
  4704. END Object;
  4705. END Test.
  4706. positive: dummy module exporting types
  4707. MODULE Dummy;
  4708. TYPE Exported* = RECORD END;
  4709. TYPE Private = RECORD END;
  4710. END Dummy.
  4711. positive: importing exported type
  4712. MODULE Test;
  4713. IMPORT Dummy;
  4714. TYPE Type = Dummy.Exported;
  4715. END Test.
  4716. negative: importing private type
  4717. MODULE Test;
  4718. IMPORT Dummy;
  4719. TYPE Type = Dummy.Private;
  4720. END Test.
  4721. negative: importing invalid type
  4722. MODULE Test;
  4723. IMPORT Dummy;
  4724. TYPE Type = Dummy.Invalid;
  4725. END Test.
  4726. negative: import as type
  4727. MODULE Test;
  4728. IMPORT Import := Dummy;
  4729. TYPE Type = Import;
  4730. END Test.
  4731. negative: constant as type
  4732. MODULE Test;
  4733. CONST Constant = 0;
  4734. TYPE Type = Constant;
  4735. END Test.
  4736. negative: variable as type
  4737. MODULE Test;
  4738. TYPE Type = variable;
  4739. VAR variable: INTEGER;
  4740. END Test.
  4741. negative: procedure as type
  4742. MODULE Test;
  4743. TYPE Type = Procedure;
  4744. PROCEDURE Procedure; END Procedure;
  4745. END Test.
  4746. negative: parameter as type
  4747. MODULE Test;
  4748. PROCEDURE Procedure (parameter: INTEGER);
  4749. TYPE Type = parameter;
  4750. END Procedure;
  4751. END Test.
  4752. # basic types
  4753. positive: predefined basic character type
  4754. MODULE Test;
  4755. TYPE BasicType = CHAR;
  4756. END Test.
  4757. positive: predefined basic boolean type
  4758. MODULE Test;
  4759. TYPE BasicType = BOOLEAN;
  4760. END Test.
  4761. positive: predefined basic short integer type
  4762. MODULE Test;
  4763. TYPE BasicType = SHORTINT;
  4764. END Test.
  4765. positive: predefined basic integer type
  4766. MODULE Test;
  4767. TYPE BasicType = INTEGER;
  4768. END Test.
  4769. positive: predefined basic long integer type
  4770. MODULE Test;
  4771. TYPE BasicType = LONGINT;
  4772. END Test.
  4773. positive: predefined basic huge integer type
  4774. MODULE Test;
  4775. TYPE BasicType = HUGEINT;
  4776. END Test.
  4777. positive: predefined basic real type
  4778. MODULE Test;
  4779. TYPE BasicType = REAL;
  4780. END Test.
  4781. positive: predefined basic long real type
  4782. MODULE Test;
  4783. TYPE BasicType = LONGREAL;
  4784. END Test.
  4785. positive: predefined basic set type
  4786. MODULE Test;
  4787. TYPE BasicType = SET;
  4788. END Test.
  4789. # arrays
  4790. positive: open array type definition
  4791. MODULE Test;
  4792. TYPE Array = ARRAY OF RECORD END;
  4793. END Test.
  4794. positive: two-dimensional open array type definition
  4795. MODULE Test;
  4796. TYPE Array = ARRAY OF ARRAY OF RECORD END;
  4797. END Test.
  4798. negative: fixed size array with open array element type
  4799. MODULE Test;
  4800. TYPE Array = ARRAY 10 OF ARRAY OF RECORD END;
  4801. END Test.
  4802. negative: array with negative size
  4803. MODULE Test;
  4804. TYPE Array = ARRAY -1 OF RECORD END;
  4805. END Test.
  4806. negative: multidimensional array with negative size
  4807. MODULE Test;
  4808. TYPE Array = ARRAY 5, 3, -1 OF RECORD END;
  4809. END Test.
  4810. positive: array with size zero
  4811. MODULE Test;
  4812. TYPE Array = ARRAY 0 OF RECORD END;
  4813. END Test.
  4814. positive: multidimensional array with size zero
  4815. MODULE Test;
  4816. TYPE Array = ARRAY 2, 7, 0 OF RECORD END;
  4817. END Test.
  4818. positive: array with positive size
  4819. MODULE Test;
  4820. TYPE Array = ARRAY 5 OF RECORD END;
  4821. END Test.
  4822. positive: multidimensional array with positive size
  4823. MODULE Test;
  4824. TYPE Array = ARRAY 2, 4, 6 OF RECORD END;
  4825. END Test.
  4826. negative: array with size of type real
  4827. MODULE Test;
  4828. TYPE Array = ARRAY 5.4 OF RECORD END;
  4829. END Test.
  4830. negative: array with constant base type
  4831. MODULE Test;
  4832. CONST Base = 5;
  4833. TYPE Array = ARRAY 5 OF Base;
  4834. END Test.
  4835. negative: fixed size array of open array
  4836. MODULE Test;
  4837. TYPE Array = ARRAY 10 OF ARRAY OF RECORD END;
  4838. END Test.
  4839. positive: open array of fixed size array
  4840. MODULE Test;
  4841. TYPE Array = ARRAY OF ARRAY 10 OF RECORD END;
  4842. END Test.
  4843. negative: self referencing array type
  4844. MODULE Test;
  4845. TYPE Array = ARRAY 10 OF Array;
  4846. END Test.
  4847. negative: indirectly self referencing array type
  4848. MODULE Test;
  4849. TYPE A = ARRAY 10 OF B;
  4850. TYPE B = ARRAY 10 OF A;
  4851. END Test.
  4852. positive: self referencing array type with pointer
  4853. MODULE Test;
  4854. TYPE A = ARRAY 10 OF POINTER TO A;
  4855. END Test.
  4856. positive: indirectly self referencing array type with pointer
  4857. MODULE Test;
  4858. TYPE A = ARRAY 10 OF B;
  4859. TYPE B = ARRAY 10 OF POINTER TO A;
  4860. END Test.
  4861. positive: array of basic character type
  4862. MODULE Test;
  4863. TYPE Array = ARRAY 10 OF CHAR;
  4864. END Test.
  4865. positive: array of basic boolean type
  4866. MODULE Test;
  4867. TYPE Array = ARRAY 10 OF BOOLEAN;
  4868. END Test.
  4869. positive: array of basic short integer type
  4870. MODULE Test;
  4871. TYPE Array = ARRAY 10 OF SHORTINT;
  4872. END Test.
  4873. positive: array of basic integer type
  4874. MODULE Test;
  4875. TYPE Array = ARRAY 10 OF INTEGER;
  4876. END Test.
  4877. positive: array of basic long integer type
  4878. MODULE Test;
  4879. TYPE Array = ARRAY 10 OF LONGINT;
  4880. END Test.
  4881. positive: array of basic huge integer type
  4882. MODULE Test;
  4883. TYPE Array = ARRAY 10 OF HUGEINT;
  4884. END Test.
  4885. positive: array of basic real type
  4886. MODULE Test;
  4887. TYPE Array = ARRAY 10 OF REAL;
  4888. END Test.
  4889. positive: array of basic long real type
  4890. MODULE Test;
  4891. TYPE Array = ARRAY 10 OF LONGREAL;
  4892. END Test.
  4893. positive: array of basic set type
  4894. MODULE Test;
  4895. TYPE Array = ARRAY 10 OF SET;
  4896. END Test.
  4897. negative: array of basic nil pointer type
  4898. MODULE Test;
  4899. TYPE Array = ARRAY 10 OF NIL;
  4900. END Test.
  4901. positive: array of records
  4902. MODULE Test;
  4903. TYPE Array = ARRAY 10 OF RECORD END;
  4904. END Test.
  4905. positive: array of objects
  4906. MODULE Test;
  4907. TYPE Array = ARRAY 10 OF OBJECT;
  4908. END Test.
  4909. positive: array of pointers
  4910. MODULE Test;
  4911. TYPE Array = ARRAY 10 OF POINTER TO RECORD END;
  4912. END Test.
  4913. positive: array of procedures
  4914. MODULE Test;
  4915. TYPE Array = ARRAY 10 OF PROCEDURE;
  4916. END Test.
  4917. # records
  4918. negative: record extending itself
  4919. MODULE Test;
  4920. TYPE Record = RECORD (Record) END;
  4921. END Test.
  4922. negative: record extending itself indirectly
  4923. MODULE Test;
  4924. TYPE A = RECORD (B) END; B = RECORD (A) END;
  4925. END Test.
  4926. negative: record extending a constant
  4927. MODULE Test;
  4928. CONST Constant = 5;
  4929. TYPE Record = RECORD (Constant) END;
  4930. END Test.
  4931. negative: record extending a variable
  4932. MODULE Test;
  4933. TYPE Record = RECORD (variable) END;
  4934. VAR variable: Record;
  4935. END Test.
  4936. negative: record extending a basic type
  4937. MODULE Test;
  4938. TYPE Record = RECORD (LONGINT) END;
  4939. END Test.
  4940. negative: record extending an array
  4941. MODULE Test;
  4942. TYPE Array = ARRAY 10 OF OBJECT; Record = RECORD (Array) END;
  4943. END Test.
  4944. positive: record extending a record
  4945. MODULE Test;
  4946. TYPE A = RECORD END; B = RECORD (A) END;
  4947. END Test.
  4948. positive: record extending a record from outer scope
  4949. MODULE Test;
  4950. TYPE Outer = RECORD END;
  4951. PROCEDURE Procedure;
  4952. TYPE Inner = RECORD (Outer) END;
  4953. END Procedure;
  4954. END Test.
  4955. negative: record extending a record from inner scope
  4956. MODULE Test;
  4957. TYPE Outer = RECORD (Inner) END;
  4958. PROCEDURE Procedure;
  4959. TYPE Inner = RECORD END;
  4960. END Procedure;
  4961. END Test.
  4962. negative: record extending an object
  4963. MODULE Test;
  4964. TYPE Object = OBJECT; Record = RECORD (Object) END;
  4965. END Test.
  4966. negative: record extending a pointer
  4967. MODULE Test;
  4968. TYPE Pointer = POINTER TO RECORD END; Record = RECORD (Pointer) END;
  4969. END Test.
  4970. negative: record extending a procedure
  4971. MODULE Test;
  4972. TYPE Procedure = PROCEDURE; Record = RECORD (Procedure) END;
  4973. END Test.
  4974. negative: record containing itself
  4975. MODULE Test;
  4976. TYPE Record = RECORD r: Record END;
  4977. END Test.
  4978. positive: record containing pointer to itself
  4979. MODULE Test;
  4980. TYPE Record = RECORD r: POINTER TO Record END;
  4981. END Test.
  4982. negative: record containing itself indirectly
  4983. MODULE Test;
  4984. TYPE A = RECORD b: B END;
  4985. TYPE B = RECORD a: A END;
  4986. END Test.
  4987. positive: record containing pointer to itself indirectly
  4988. MODULE Test;
  4989. TYPE A = RECORD b: POINTER TO B END;
  4990. TYPE B = RECORD a: A END;
  4991. END Test.
  4992. positive: record containing pointer in declaration to itself indirectly
  4993. MODULE Test;
  4994. TYPE A = RECORD b: B END;
  4995. TYPE B = POINTER TO RECORD a: A END;
  4996. END Test.
  4997. positive: record containing backward referenced type
  4998. MODULE Test;
  4999. TYPE A = RECORD END;
  5000. TYPE B = RECORD a: A END;
  5001. END Test.
  5002. positive: record containing forward referenced type
  5003. MODULE Test;
  5004. TYPE A = RECORD b: B END;
  5005. TYPE B = OBJECT;
  5006. END Test.
  5007. positive: record containing anonymous records
  5008. MODULE Test;
  5009. TYPE Record = RECORD r: RECORD r: RECORD r: RECORD END END END END;
  5010. END Test.
  5011. positive: deeply nested records
  5012. MODULE Test;
  5013. TYPE A = RECORD b: B END;
  5014. TYPE F = RECORD END;
  5015. TYPE B = RECORD c: C END;
  5016. TYPE E = RECORD f: F END;
  5017. TYPE D = RECORD e: E END;
  5018. TYPE C = RECORD d: D END;
  5019. END Test.
  5020. negative: record containing itself deeply indirectly
  5021. MODULE Test;
  5022. TYPE A = RECORD b: B END;
  5023. TYPE F = RECORD a: A END;
  5024. TYPE B = RECORD c: C END;
  5025. TYPE E = RECORD f: F END;
  5026. TYPE D = RECORD e: E END;
  5027. TYPE C = RECORD d: D END;
  5028. END Test.
  5029. negative: nested record containing itself indirectly
  5030. MODULE Test;
  5031. TYPE A = RECORD b: B END;
  5032. TYPE B = RECORD c: C END;
  5033. TYPE C = RECORD d: D END;
  5034. TYPE D = RECORD b: B END;
  5035. END Test.
  5036. positive: record containing pointer to record
  5037. MODULE Test;
  5038. TYPE Record = RECORD p: POINTER TO RECORD END END;
  5039. END Test.
  5040. positive: record containing pointer to record containing the first record
  5041. MODULE Test;
  5042. TYPE Record = RECORD p: POINTER TO RECORD r: Record END END;
  5043. END Test.
  5044. positive: record containing record containing pointer to record containing the first record
  5045. MODULE Test;
  5046. TYPE A = RECORD b: B END;
  5047. TYPE B = RECORD p: POINTER TO RECORD a: A END END;
  5048. END Test.
  5049. positive: pointer to record containing record containing record containing the pointer
  5050. MODULE Test;
  5051. TYPE A = POINTER TO RECORD b: B END;
  5052. TYPE B = RECORD r: RECORD a: A END END;
  5053. END Test.
  5054. positive: record containing basic types
  5055. MODULE Test;
  5056. TYPE Record = RECORD i: INTEGER; s: SET; b: BOOLEAN END;
  5057. END Test.
  5058. positive: record containing an array
  5059. MODULE Test;
  5060. TYPE Record = RECORD a: ARRAY 10 OF OBJECT; END;
  5061. END Test.
  5062. negative: record containing an open array
  5063. MODULE Test;
  5064. TYPE Record = RECORD a: ARRAY OF RECORD END END;
  5065. END Test.
  5066. positive: record containing an object
  5067. MODULE Test;
  5068. TYPE Record = RECORD o: OBJECT; END;
  5069. END Test.
  5070. positive: record containing a procedure
  5071. MODULE Test;
  5072. TYPE Record = RECORD p: PROCEDURE END;
  5073. END Test.
  5074. negative: record with variable with same name as its type
  5075. MODULE Test;
  5076. TYPE Type = RECORD END;
  5077. TYPE Record = RECORD Type: Type END;
  5078. END Test.
  5079. # objects
  5080. negative: object extending itself
  5081. MODULE Test;
  5082. TYPE Object = OBJECT (Object) END Object;
  5083. END Test.
  5084. negative: object extending itself indirectly
  5085. MODULE Test;
  5086. TYPE A = OBJECT (B) END A; B = OBJECT (A) END B;
  5087. END Test.
  5088. negative: object extending a constant
  5089. MODULE Test;
  5090. CONST Constant = 5;
  5091. TYPE Object = OBJECT (Constant) END Object;
  5092. END Test.
  5093. negative: object extending a variable
  5094. MODULE Test;
  5095. TYPE Object = OBJECT (variable) END Object;
  5096. VAR variable: Object;
  5097. END Test.
  5098. negative: object extending a basic type
  5099. MODULE Test;
  5100. TYPE Object = OBJECT (LONGINT) END Object;
  5101. END Test.
  5102. negative: object extending an array
  5103. MODULE Test;
  5104. TYPE Array = ARRAY 10 OF OBJECT; Object = OBJECT (Array) END Object;
  5105. END Test.
  5106. negative: object extending a record
  5107. MODULE Test;
  5108. TYPE Record = RECORD END; Object = OBJECT (Record) END Object;
  5109. END Test.
  5110. positive: object extending an object
  5111. MODULE Test;
  5112. TYPE A = OBJECT; B = OBJECT (A) END B;
  5113. END Test.
  5114. negative: object extending the base object
  5115. MODULE Test;
  5116. TYPE Object = OBJECT (OBJECT) END Object;
  5117. END Test.
  5118. positive: object extending a pointer to record
  5119. MODULE Test;
  5120. TYPE Pointer = POINTER TO RECORD END; Object = OBJECT (Pointer) END Object;
  5121. END Test.
  5122. negative: object extending a procedure
  5123. MODULE Test;
  5124. TYPE Procedure = PROCEDURE; Object = OBJECT (Procedure) END Object;
  5125. END Test.
  5126. positive: object containing itself
  5127. MODULE Test;
  5128. TYPE Object = OBJECT VAR o: Object END Object;
  5129. END Test.
  5130. positive: object containing itself indirectly
  5131. MODULE Test;
  5132. TYPE A = OBJECT VAR b: B END A;
  5133. TYPE B = OBJECT VAR a: A END B;
  5134. END Test.
  5135. positive: object containing backward referenced type
  5136. MODULE Test;
  5137. TYPE A = OBJECT;
  5138. TYPE B = OBJECT VAR a: A END B;
  5139. END Test.
  5140. positive: object containing forward referenced type
  5141. MODULE Test;
  5142. TYPE A = OBJECT VAR b: B END A;
  5143. TYPE B = OBJECT;
  5144. END Test.
  5145. positive: object containing anonymous records
  5146. MODULE Test;
  5147. TYPE Object = OBJECT VAR r: RECORD r: RECORD r: RECORD END END END END Object;
  5148. END Test.
  5149. positive: deeply nested objects
  5150. MODULE Test;
  5151. TYPE A = OBJECT VAR b: B END A;
  5152. TYPE F = OBJECT;
  5153. TYPE B = OBJECT VAR c: C END B;
  5154. TYPE E = OBJECT VAR f: F END E;
  5155. TYPE D = OBJECT VAR e: E END D;
  5156. TYPE C = OBJECT VAR d: D END C;
  5157. END Test.
  5158. positive: object containing itself deeply indirectly
  5159. MODULE Test;
  5160. TYPE A = OBJECT VAR b: B END A;
  5161. TYPE F = OBJECT VAR a: A END F;
  5162. TYPE B = OBJECT VAR c: C END B;
  5163. TYPE E = OBJECT VAR f: F END E;
  5164. TYPE D = OBJECT VAR e: E END D;
  5165. TYPE C = OBJECT VAR d: D END C;
  5166. END Test.
  5167. positive: nested object containing itself indirectly
  5168. MODULE Test;
  5169. TYPE A = OBJECT VAR b: B END A;
  5170. TYPE B = OBJECT VAR c: C END B;
  5171. TYPE C = OBJECT VAR d: D END C;
  5172. TYPE D = OBJECT VAR b: B END D;
  5173. END Test.
  5174. positive: object containing basic types
  5175. MODULE Test;
  5176. TYPE Object = OBJECT VAR i: INTEGER; s: SET; b: BOOLEAN END Object;
  5177. END Test.
  5178. positive: object containing an array
  5179. MODULE Test;
  5180. TYPE Object = OBJECT VAR a: ARRAY 10 OF OBJECT; END Object;
  5181. END Test.
  5182. negative: object containing an open array
  5183. MODULE Test;
  5184. TYPE Object = OBJECT VAR a: ARRAY OF OBJECT; END Object;
  5185. END Test.
  5186. positive: object containing an object
  5187. MODULE Test;
  5188. TYPE Object = OBJECT VAR o: OBJECT; END Object;
  5189. END Test.
  5190. positive: object containing a procedure
  5191. MODULE Test;
  5192. TYPE Object = OBJECT VAR p: PROCEDURE END Object;
  5193. END Test.
  5194. positive: object referenced in procedure variable
  5195. MODULE Test;
  5196. TYPE Object = OBJECT PROCEDURE Object; END Object; END Object;
  5197. VAR procedure : PROCEDURE (object: Object);
  5198. END Test.
  5199. positive: local object accessing local constant
  5200. MODULE Test;
  5201. PROCEDURE P;
  5202. CONST Constant = TRUE;
  5203. VAR o: OBJECT VAR v: BOOLEAN BEGIN v := Constant END;
  5204. END P;
  5205. END Test.
  5206. positive: local object accessing local type
  5207. MODULE Test;
  5208. PROCEDURE P;
  5209. TYPE Type = BOOLEAN;
  5210. VAR o: OBJECT VAR v: Type END;
  5211. END P;
  5212. END Test.
  5213. negative: local object accessing local variable
  5214. MODULE Test;
  5215. PROCEDURE P;
  5216. VAR o: OBJECT BEGIN v := TRUE END; v: BOOLEAN;
  5217. END P;
  5218. END Test.
  5219. negative: local object accessing local procedure
  5220. MODULE Test;
  5221. PROCEDURE P;
  5222. VAR o: OBJECT BEGIN Procedure END;
  5223. PROCEDURE Procedure; END Procedure;
  5224. END P;
  5225. END Test.
  5226. negative: local object accessing local parameter
  5227. MODULE Test;
  5228. PROCEDURE P (p: BOOLEAN);
  5229. VAR o: OBJECT BEGIN p := TRUE END;
  5230. END P;
  5231. END Test.
  5232. positive: local object accessing global constant
  5233. MODULE Test;
  5234. CONST Constant = TRUE;
  5235. PROCEDURE P;
  5236. VAR o: OBJECT VAR v: BOOLEAN BEGIN v := Constant END;
  5237. END P;
  5238. END Test.
  5239. positive: local object accessing global type
  5240. MODULE Test;
  5241. TYPE Type = BOOLEAN;
  5242. PROCEDURE P;
  5243. VAR o: OBJECT VAR v: Type END;
  5244. END P;
  5245. END Test.
  5246. positive: local object accessing global variable
  5247. MODULE Test;
  5248. VAR v: BOOLEAN;
  5249. PROCEDURE P;
  5250. VAR o: OBJECT BEGIN v := TRUE END;
  5251. END P;
  5252. END Test.
  5253. positive: local object accessing global procedure
  5254. MODULE Test;
  5255. PROCEDURE P;
  5256. VAR o: OBJECT BEGIN Procedure END;
  5257. END P;
  5258. PROCEDURE Procedure; END Procedure;
  5259. END Test.
  5260. # pointers
  5261. negative: pointer to basic character type
  5262. MODULE Test;
  5263. TYPE Pointer = POINTER TO CHAR;
  5264. END Test.
  5265. negative: pointer to basic boolean type
  5266. MODULE Test;
  5267. TYPE Pointer = POINTER TO BOOLEAN;
  5268. END Test.
  5269. negative: pointer to basic short integer type
  5270. MODULE Test;
  5271. TYPE Pointer = POINTER TO SHORTINT;
  5272. END Test.
  5273. negative: pointer to basic integer type
  5274. MODULE Test;
  5275. TYPE Pointer = POINTER TO INTEGER;
  5276. END Test.
  5277. negative: pointer to basic long integer type
  5278. MODULE Test;
  5279. TYPE Pointer = POINTER TO LONGINT;
  5280. END Test.
  5281. negative: pointer to basic huge integer type
  5282. MODULE Test;
  5283. TYPE Pointer = POINTER TO HUGEINT;
  5284. END Test.
  5285. negative: pointer to basic real type
  5286. MODULE Test;
  5287. TYPE Pointer = POINTER TO REAL;
  5288. END Test.
  5289. negative: pointer to basic long real type
  5290. MODULE Test;
  5291. TYPE Pointer = POINTER TO LONGREAL;
  5292. END Test.
  5293. negative: pointer to basic set type
  5294. MODULE Test;
  5295. TYPE Pointer = POINTER TO SET;
  5296. END Test.
  5297. positive: pointer to record
  5298. MODULE Test;
  5299. TYPE Pointer = POINTER TO RECORD END;
  5300. END Test.
  5301. positive: pointer to record from outer scope
  5302. MODULE Test;
  5303. TYPE Record = RECORD END;
  5304. PROCEDURE Procedure;
  5305. TYPE Pointer = POINTER TO Record;
  5306. END Procedure;
  5307. END Test.
  5308. positive: pointer to record from with variable of nested type
  5309. MODULE Test;
  5310. PROCEDURE Procedure;
  5311. TYPE Pointer = POINTER TO RECORD pointer: Pointer END;
  5312. END Procedure;
  5313. END Test.
  5314. negative: pointer to record inside object
  5315. MODULE Test;
  5316. TYPE Pointer = POINTER TO Record;
  5317. TYPE Object = OBJECT
  5318. TYPE Record = RECORD END;
  5319. END Object;
  5320. END Test.
  5321. negative: pointer to record inside procedure
  5322. MODULE Test;
  5323. TYPE Pointer = POINTER TO Record;
  5324. PROCEDURE Procedure;
  5325. TYPE Record = RECORD END;
  5326. END Procedure;
  5327. END Test.
  5328. positive: pointer to array
  5329. MODULE Test;
  5330. TYPE Pointer = POINTER TO ARRAY 10 OF RECORD END;
  5331. END Test.
  5332. positive: pointer to open array
  5333. MODULE Test;
  5334. TYPE Pointer = POINTER TO ARRAY OF RECORD END;
  5335. END Test.
  5336. positive: pointer to array of same pointer
  5337. MODULE Test;
  5338. TYPE Pointer = POINTER TO ARRAY 10 OF Pointer;
  5339. END Test.
  5340. positive: pointers to array of same pointer
  5341. MODULE Test;
  5342. TYPE A = POINTER TO ARRAY 10 OF B;
  5343. TYPE B = POINTER TO ARRAY 10 OF C;
  5344. TYPE C = POINTER TO ARRAY 10 OF D;
  5345. TYPE D = POINTER TO ARRAY 10 OF A;
  5346. END Test.
  5347. positive: pointer to open array of same pointer
  5348. MODULE Test;
  5349. TYPE Pointer = POINTER TO ARRAY OF Pointer;
  5350. END Test.
  5351. positive: pointers to open array of same pointer
  5352. MODULE Test;
  5353. TYPE A = POINTER TO ARRAY OF B;
  5354. TYPE B = POINTER TO ARRAY OF C;
  5355. TYPE C = POINTER TO ARRAY OF D;
  5356. TYPE D = POINTER TO ARRAY OF A;
  5357. END Test.
  5358. negative: pointer to pointer
  5359. MODULE Test;
  5360. TYPE Pointer = POINTER TO POINTER TO RECORD END;
  5361. END Test.
  5362. negative: pointer to object
  5363. MODULE Test;
  5364. TYPE Pointer = POINTER TO OBJECT;
  5365. END Test.
  5366. negative: pointer to procedure
  5367. MODULE Test;
  5368. TYPE Pointer = POINTER TO PROCEDURE;
  5369. END Test.
  5370. # procedure types
  5371. positive: plain procedure type
  5372. MODULE Test;
  5373. TYPE Procedure = PROCEDURE;
  5374. END Test.
  5375. positive: procedure type returning basic character type
  5376. MODULE Test;
  5377. TYPE Procedure = PROCEDURE (): CHAR;
  5378. END Test.
  5379. positive: procedure type returning basic boolean type
  5380. MODULE Test;
  5381. TYPE Procedure = PROCEDURE (): BOOLEAN;
  5382. END Test.
  5383. positive: procedure type returning basic short integer type
  5384. MODULE Test;
  5385. TYPE Procedure = PROCEDURE (): SHORTINT;
  5386. END Test.
  5387. positive: procedure type returning basic integer type
  5388. MODULE Test;
  5389. TYPE Procedure = PROCEDURE (): INTEGER;
  5390. END Test.
  5391. positive: procedure type returning basic long integer type
  5392. MODULE Test;
  5393. TYPE Procedure = PROCEDURE (): LONGINT;
  5394. END Test.
  5395. positive: procedure type returning basic huge integer type
  5396. MODULE Test;
  5397. TYPE Procedure = PROCEDURE (): HUGEINT;
  5398. END Test.
  5399. positive: procedure type returning basic real type
  5400. MODULE Test;
  5401. TYPE Procedure = PROCEDURE (): REAL;
  5402. END Test.
  5403. positive: procedure type returning basic long real type
  5404. MODULE Test;
  5405. TYPE Procedure = PROCEDURE (): LONGREAL;
  5406. END Test.
  5407. positive: procedure type returning basic set type
  5408. MODULE Test;
  5409. TYPE Procedure = PROCEDURE (): SET;
  5410. END Test.
  5411. positive: procedure type returning record type
  5412. MODULE Test;
  5413. TYPE Record = RECORD END;
  5414. TYPE Procedure = PROCEDURE (): Record;
  5415. END Test.
  5416. positive: procedure type returning anonymous record type
  5417. MODULE Test;
  5418. TYPE Procedure = PROCEDURE (): RECORD END;
  5419. END Test.
  5420. positive: procedure type returning array type
  5421. MODULE Test;
  5422. TYPE Array = ARRAY 10 OF RECORD END;
  5423. TYPE Procedure = PROCEDURE (): Array;
  5424. END Test.
  5425. positive: procedure type returning anonymous array type
  5426. MODULE Test;
  5427. TYPE Procedure = PROCEDURE (): ARRAY 10 OF RECORD END;
  5428. END Test.
  5429. negative: procedure type returning open array type
  5430. MODULE Test;
  5431. TYPE Array = ARRAY OF RECORD END;
  5432. TYPE Procedure = PROCEDURE (): Array;
  5433. END Test.
  5434. negative: procedure type returning anonymous open array type
  5435. MODULE Test;
  5436. TYPE Procedure = PROCEDURE (): ARRAY OF RECORD END;
  5437. END Test.
  5438. positive: procedure type returning object type
  5439. MODULE Test;
  5440. TYPE Object = OBJECT;
  5441. TYPE Procedure = PROCEDURE (): Object;
  5442. END Test.
  5443. positive: procedure type returning anonymous object type
  5444. MODULE Test;
  5445. TYPE Procedure = PROCEDURE (): OBJECT;
  5446. END Test.
  5447. positive: procedure type returning pointer type
  5448. MODULE Test;
  5449. TYPE Pointer = POINTER TO RECORD END;
  5450. TYPE Procedure = PROCEDURE (): Pointer;
  5451. END Test.
  5452. positive: procedure type returning anonymous pointer type
  5453. MODULE Test;
  5454. TYPE Procedure = PROCEDURE (): POINTER TO RECORD END;
  5455. END Test.
  5456. positive: procedure type returning procedure type
  5457. MODULE Test;
  5458. TYPE Proc = PROCEDURE;
  5459. TYPE Procedure = PROCEDURE (): Proc;
  5460. END Test.
  5461. positive: procedure type returning anonymous procedure type
  5462. MODULE Test;
  5463. TYPE Procedure = PROCEDURE (): PROCEDURE;
  5464. END Test.
  5465. positive: procedure type returning anonymous procedure returning anonymous procedure
  5466. MODULE Test;
  5467. TYPE Procedure = PROCEDURE (): PROCEDURE (): PROCEDURE;
  5468. END Test.
  5469. positive: procedure type returning itself
  5470. MODULE Test;
  5471. TYPE Procedure = PROCEDURE (): Procedure;
  5472. END Test.
  5473. positive: procedure types returning themselves
  5474. MODULE Test;
  5475. TYPE A = PROCEDURE (): B;
  5476. TYPE B = PROCEDURE (): C;
  5477. TYPE C = PROCEDURE (): D;
  5478. TYPE D = PROCEDURE (): A;
  5479. END Test.
  5480. positive: procedure type with parameter of same type
  5481. MODULE Test;
  5482. TYPE Procedure = PROCEDURE (procedure: Procedure);
  5483. END Test.
  5484. positive: procedure types with parameters of same type
  5485. MODULE Test;
  5486. TYPE A = PROCEDURE (b: B);
  5487. TYPE B = PROCEDURE (c: C);
  5488. TYPE C = PROCEDURE (d: D);
  5489. TYPE D = PROCEDURE (a: A);
  5490. END Test.
  5491. negative: procedure type with multiple variable parameter
  5492. MODULE Test;
  5493. TYPE Procedure = PROCEDURE (VAR VAR parameter: SET);
  5494. END Test.
  5495. negative: procedure type with multiple constant parameter
  5496. MODULE Test;
  5497. TYPE Procedure = PROCEDURE (CONST CONST parameter: SET);
  5498. END Test.
  5499. negative: procedure type with variable and constant parameter
  5500. MODULE Test;
  5501. TYPE Procedure = PROCEDURE (VAR CONST parameter: SET);
  5502. END Test.
  5503. negative: procedure type with constant and variable parameter
  5504. MODULE Test;
  5505. TYPE Procedure = PROCEDURE (VAR CONST parameter: SET);
  5506. END Test.
  5507. negative: procedure type with parameter marked as exported
  5508. MODULE Test;
  5509. TYPE Procedure = PROCEDURE (parameter*: CHAR);
  5510. END Test.
  5511. negative: procedure type with parameter marked as read-only
  5512. MODULE Test;
  5513. TYPE Procedure = PROCEDURE (parameter-: CHAR);
  5514. END Test.
  5515. positive: procedure type with a parameter of basic character type
  5516. MODULE Test;
  5517. TYPE Procedure = PROCEDURE (parameter: CHAR);
  5518. END Test.
  5519. positive: procedure type with parameters of basic character type
  5520. MODULE Test;
  5521. TYPE Procedure = PROCEDURE (a, b, c: CHAR);
  5522. END Test.
  5523. positive: procedure type with a parameter of variable character type
  5524. MODULE Test;
  5525. TYPE Procedure = PROCEDURE (VAR parameter: CHAR);
  5526. END Test.
  5527. positive: procedure type with parameters of variable character type
  5528. MODULE Test;
  5529. TYPE Procedure = PROCEDURE (VAR a, b, c: CHAR);
  5530. END Test.
  5531. positive: procedure type with a parameter of constant character type
  5532. MODULE Test;
  5533. TYPE Procedure = PROCEDURE (CONST parameter: CHAR);
  5534. END Test.
  5535. positive: procedure type with parameters of constant character type
  5536. MODULE Test;
  5537. TYPE Procedure = PROCEDURE (CONST a, b, c: CHAR);
  5538. END Test.
  5539. positive: procedure type with intermixed parameters of character type
  5540. MODULE Test;
  5541. TYPE Procedure = PROCEDURE (a: CHAR; VAR b: CHAR; CONST c: CHAR);
  5542. END Test.
  5543. positive: procedure type with a parameter of basic boolean type
  5544. MODULE Test;
  5545. TYPE Procedure = PROCEDURE (parameter: BOOLEAN);
  5546. END Test.
  5547. positive: procedure type with parameters of basic boolean type
  5548. MODULE Test;
  5549. TYPE Procedure = PROCEDURE (a, b, c: BOOLEAN);
  5550. END Test.
  5551. positive: procedure type with a parameter of variable boolean type
  5552. MODULE Test;
  5553. TYPE Procedure = PROCEDURE (VAR parameter: BOOLEAN);
  5554. END Test.
  5555. positive: procedure type with parameters of variable boolean type
  5556. MODULE Test;
  5557. TYPE Procedure = PROCEDURE (VAR a, b, c: BOOLEAN);
  5558. END Test.
  5559. positive: procedure type with a parameter of constant boolean type
  5560. MODULE Test;
  5561. TYPE Procedure = PROCEDURE (CONST parameter: BOOLEAN);
  5562. END Test.
  5563. positive: procedure type with parameters of constant boolean type
  5564. MODULE Test;
  5565. TYPE Procedure = PROCEDURE (CONST a, b, c: BOOLEAN);
  5566. END Test.
  5567. positive: procedure type with intermixed parameters of boolean type
  5568. MODULE Test;
  5569. TYPE Procedure = PROCEDURE (a: BOOLEAN; VAR b: BOOLEAN; CONST c: BOOLEAN);
  5570. END Test.
  5571. positive: procedure type with a parameter of basic short integer type
  5572. MODULE Test;
  5573. TYPE Procedure = PROCEDURE (parameter: SHORTINT);
  5574. END Test.
  5575. positive: procedure type with parameters of basic short integer type
  5576. MODULE Test;
  5577. TYPE Procedure = PROCEDURE (a, b, c: SHORTINT);
  5578. END Test.
  5579. positive: procedure type with a parameter of variable short integer type
  5580. MODULE Test;
  5581. TYPE Procedure = PROCEDURE (VAR parameter: SHORTINT);
  5582. END Test.
  5583. positive: procedure type with parameters of variable short integer type
  5584. MODULE Test;
  5585. TYPE Procedure = PROCEDURE (VAR a, b, c: SHORTINT);
  5586. END Test.
  5587. positive: procedure type with a parameter of constant short integer type
  5588. MODULE Test;
  5589. TYPE Procedure = PROCEDURE (CONST parameter: SHORTINT);
  5590. END Test.
  5591. positive: procedure type with parameters of constant short integer type
  5592. MODULE Test;
  5593. TYPE Procedure = PROCEDURE (CONST a, b, c: SHORTINT);
  5594. END Test.
  5595. positive: procedure type with intermixed parameters of short integer type
  5596. MODULE Test;
  5597. TYPE Procedure = PROCEDURE (a: SHORTINT; VAR b: SHORTINT; CONST c: SHORTINT);
  5598. END Test.
  5599. positive: procedure type with a parameter of basic integer type
  5600. MODULE Test;
  5601. TYPE Procedure = PROCEDURE (parameter: INTEGER);
  5602. END Test.
  5603. positive: procedure type with parameters of basic integer type
  5604. MODULE Test;
  5605. TYPE Procedure = PROCEDURE (a, b, c: INTEGER);
  5606. END Test.
  5607. positive: procedure type with a parameter of variable integer type
  5608. MODULE Test;
  5609. TYPE Procedure = PROCEDURE (VAR parameter: INTEGER);
  5610. END Test.
  5611. positive: procedure type with parameters of variable integer type
  5612. MODULE Test;
  5613. TYPE Procedure = PROCEDURE (VAR a, b, c: INTEGER);
  5614. END Test.
  5615. positive: procedure type with a parameter of constant integer type
  5616. MODULE Test;
  5617. TYPE Procedure = PROCEDURE (CONST parameter: INTEGER);
  5618. END Test.
  5619. positive: procedure type with parameters of constant integer type
  5620. MODULE Test;
  5621. TYPE Procedure = PROCEDURE (CONST a, b, c: INTEGER);
  5622. END Test.
  5623. positive: procedure type with intermixed parameters of integer type
  5624. MODULE Test;
  5625. TYPE Procedure = PROCEDURE (a: INTEGER; VAR b: INTEGER; CONST c: INTEGER);
  5626. END Test.
  5627. positive: procedure type with a parameter of basic long integer type
  5628. MODULE Test;
  5629. TYPE Procedure = PROCEDURE (parameter: LONGINT);
  5630. END Test.
  5631. positive: procedure type with parameters of basic long integer type
  5632. MODULE Test;
  5633. TYPE Procedure = PROCEDURE (a, b, c: LONGINT);
  5634. END Test.
  5635. positive: procedure type with a parameter of variable long integer type
  5636. MODULE Test;
  5637. TYPE Procedure = PROCEDURE (VAR parameter: LONGINT);
  5638. END Test.
  5639. positive: procedure type with parameters of variable long integer type
  5640. MODULE Test;
  5641. TYPE Procedure = PROCEDURE (VAR a, b, c: LONGINT);
  5642. END Test.
  5643. positive: procedure type with a parameter of constant long integer type
  5644. MODULE Test;
  5645. TYPE Procedure = PROCEDURE (CONST parameter: LONGINT);
  5646. END Test.
  5647. positive: procedure type with parameters of constant long integer type
  5648. MODULE Test;
  5649. TYPE Procedure = PROCEDURE (CONST a, b, c: LONGINT);
  5650. END Test.
  5651. positive: procedure type with intermixed parameters of long integer type
  5652. MODULE Test;
  5653. TYPE Procedure = PROCEDURE (a: LONGINT; VAR b: LONGINT; CONST c: LONGINT);
  5654. END Test.
  5655. positive: procedure type with a parameter of basic huge integer type
  5656. MODULE Test;
  5657. TYPE Procedure = PROCEDURE (parameter: HUGEINT);
  5658. END Test.
  5659. positive: procedure type with parameters of basic huge integer type
  5660. MODULE Test;
  5661. TYPE Procedure = PROCEDURE (a, b, c: HUGEINT);
  5662. END Test.
  5663. positive: procedure type with a parameter of variable huge integer type
  5664. MODULE Test;
  5665. TYPE Procedure = PROCEDURE (VAR parameter: HUGEINT);
  5666. END Test.
  5667. positive: procedure type with parameters of variable huge integer type
  5668. MODULE Test;
  5669. TYPE Procedure = PROCEDURE (VAR a, b, c: HUGEINT);
  5670. END Test.
  5671. positive: procedure type with a parameter of constant huge integer type
  5672. MODULE Test;
  5673. TYPE Procedure = PROCEDURE (CONST parameter: HUGEINT);
  5674. END Test.
  5675. positive: procedure type with parameters of constant huge integer type
  5676. MODULE Test;
  5677. TYPE Procedure = PROCEDURE (CONST a, b, c: HUGEINT);
  5678. END Test.
  5679. positive: procedure type with intermixed parameters of huge integer type
  5680. MODULE Test;
  5681. TYPE Procedure = PROCEDURE (a: HUGEINT; VAR b: HUGEINT; CONST c: HUGEINT);
  5682. END Test.
  5683. positive: procedure type with a parameter of basic real type
  5684. MODULE Test;
  5685. TYPE Procedure = PROCEDURE (parameter: REAL);
  5686. END Test.
  5687. positive: procedure type with parameters of basic real type
  5688. MODULE Test;
  5689. TYPE Procedure = PROCEDURE (a, b, c: REAL);
  5690. END Test.
  5691. positive: procedure type with a parameter of variable real type
  5692. MODULE Test;
  5693. TYPE Procedure = PROCEDURE (VAR parameter: REAL);
  5694. END Test.
  5695. positive: procedure type with parameters of variable real type
  5696. MODULE Test;
  5697. TYPE Procedure = PROCEDURE (VAR a, b, c: REAL);
  5698. END Test.
  5699. positive: procedure type with a parameter of constant real type
  5700. MODULE Test;
  5701. TYPE Procedure = PROCEDURE (CONST parameter: REAL);
  5702. END Test.
  5703. positive: procedure type with parameters of constant real type
  5704. MODULE Test;
  5705. TYPE Procedure = PROCEDURE (CONST a, b, c: REAL);
  5706. END Test.
  5707. positive: procedure type with intermixed parameters of real type
  5708. MODULE Test;
  5709. TYPE Procedure = PROCEDURE (a: REAL; VAR b: REAL; CONST c: REAL);
  5710. END Test.
  5711. positive: procedure type with a parameter of basic long real type
  5712. MODULE Test;
  5713. TYPE Procedure = PROCEDURE (parameter: LONGREAL);
  5714. END Test.
  5715. positive: procedure type with parameters of basic long real type
  5716. MODULE Test;
  5717. TYPE Procedure = PROCEDURE (a, b, c: LONGREAL);
  5718. END Test.
  5719. positive: procedure type with a parameter of variable long real type
  5720. MODULE Test;
  5721. TYPE Procedure = PROCEDURE (VAR parameter: LONGREAL);
  5722. END Test.
  5723. positive: procedure type with parameters of variable long real type
  5724. MODULE Test;
  5725. TYPE Procedure = PROCEDURE (VAR a, b, c: LONGREAL);
  5726. END Test.
  5727. positive: procedure type with a parameter of constant long real type
  5728. MODULE Test;
  5729. TYPE Procedure = PROCEDURE (CONST parameter: LONGREAL);
  5730. END Test.
  5731. positive: procedure type with parameters of constant long real type
  5732. MODULE Test;
  5733. TYPE Procedure = PROCEDURE (CONST a, b, c: LONGREAL);
  5734. END Test.
  5735. positive: procedure type with intermixed parameters of long real type
  5736. MODULE Test;
  5737. TYPE Procedure = PROCEDURE (a: LONGREAL; VAR b: LONGREAL; CONST c: LONGREAL);
  5738. END Test.
  5739. positive: procedure type with a parameter of basic set type
  5740. MODULE Test;
  5741. TYPE Procedure = PROCEDURE (parameter: SET);
  5742. END Test.
  5743. positive: procedure type with parameters of basic set type
  5744. MODULE Test;
  5745. TYPE Procedure = PROCEDURE (a, b, c: SET);
  5746. END Test.
  5747. positive: procedure type with a parameter of variable set type
  5748. MODULE Test;
  5749. TYPE Procedure = PROCEDURE (VAR parameter: SET);
  5750. END Test.
  5751. positive: procedure type with parameters of variable set type
  5752. MODULE Test;
  5753. TYPE Procedure = PROCEDURE (VAR a, b, c: SET);
  5754. END Test.
  5755. positive: procedure type with a parameter of constant set type
  5756. MODULE Test;
  5757. TYPE Procedure = PROCEDURE (CONST parameter: SET);
  5758. END Test.
  5759. positive: procedure type with parameters of constant set type
  5760. MODULE Test;
  5761. TYPE Procedure = PROCEDURE (CONST a, b, c: SET);
  5762. END Test.
  5763. positive: procedure type with intermixed parameters of set type
  5764. MODULE Test;
  5765. TYPE Procedure = PROCEDURE (a: SET; VAR b: SET; CONST c: SET);
  5766. END Test.
  5767. positive: procedure type with a parameter of record type
  5768. MODULE Test;
  5769. TYPE Record = RECORD END;
  5770. TYPE Procedure = PROCEDURE (parameter: Record);
  5771. END Test.
  5772. positive: procedure type with parameters of record type
  5773. MODULE Test;
  5774. TYPE Record = RECORD END;
  5775. TYPE Procedure = PROCEDURE (a, b, c: Record);
  5776. END Test.
  5777. positive: procedure type with a parameter of variable record type
  5778. MODULE Test;
  5779. TYPE Record = RECORD END;
  5780. TYPE Procedure = PROCEDURE (VAR parameter: Record);
  5781. END Test.
  5782. positive: procedure type with parameters of variable record type
  5783. MODULE Test;
  5784. TYPE Record = RECORD END;
  5785. TYPE Procedure = PROCEDURE (VAR a, b, c: Record);
  5786. END Test.
  5787. positive: procedure type with a parameter of constant record type
  5788. MODULE Test;
  5789. TYPE Record = RECORD END;
  5790. TYPE Procedure = PROCEDURE (CONST parameter: Record);
  5791. END Test.
  5792. positive: procedure type with parameters of constant record type
  5793. MODULE Test;
  5794. TYPE Record = RECORD END;
  5795. TYPE Procedure = PROCEDURE (CONST a, b, c: Record);
  5796. END Test.
  5797. positive: procedure type with intermixed parameters of record type
  5798. MODULE Test;
  5799. TYPE Record = RECORD END;
  5800. TYPE Procedure = PROCEDURE (a: Record; VAR b: Record; CONST c: Record);
  5801. END Test.
  5802. positive: procedure type with a parameter of anonymous record type
  5803. MODULE Test;
  5804. TYPE Record = RECORD END;
  5805. TYPE Procedure = PROCEDURE (parameter: RECORD END);
  5806. END Test.
  5807. positive: procedure type with parameters of anonymous record type
  5808. MODULE Test;
  5809. TYPE Procedure = PROCEDURE (a, b, c: RECORD END);
  5810. END Test.
  5811. positive: procedure type with a parameter of variable anonymous record type
  5812. MODULE Test;
  5813. TYPE Procedure = PROCEDURE (VAR parameter: RECORD END);
  5814. END Test.
  5815. positive: procedure type with parameters of variable anonymous record type
  5816. MODULE Test;
  5817. TYPE Procedure = PROCEDURE (VAR a, b, c: RECORD END);
  5818. END Test.
  5819. positive: procedure type with a parameter of constant anonymous record type
  5820. MODULE Test;
  5821. TYPE Procedure = PROCEDURE (CONST parameter: RECORD END);
  5822. END Test.
  5823. positive: procedure type with parameters of constant anonymous record type
  5824. MODULE Test;
  5825. TYPE Procedure = PROCEDURE (CONST a, b, c: RECORD END);
  5826. END Test.
  5827. positive: procedure type with intermixed parameters of anonymous record type
  5828. MODULE Test;
  5829. TYPE Procedure = PROCEDURE (a: RECORD END; VAR b: RECORD END; CONST c: RECORD END);
  5830. END Test.
  5831. positive: procedure type with a parameter of array type
  5832. MODULE Test;
  5833. TYPE Array = ARRAY 10 OF RECORD END;
  5834. TYPE Procedure = PROCEDURE (parameter: Array);
  5835. END Test.
  5836. positive: procedure type with parameters of array type
  5837. MODULE Test;
  5838. TYPE Array = ARRAY 10 OF RECORD END;
  5839. TYPE Procedure = PROCEDURE (a, b, c: Array);
  5840. END Test.
  5841. positive: procedure type with a parameter of variable array type
  5842. MODULE Test;
  5843. TYPE Array = ARRAY 10 OF RECORD END;
  5844. TYPE Procedure = PROCEDURE (VAR parameter: Array);
  5845. END Test.
  5846. positive: procedure type with parameters of variable array type
  5847. MODULE Test;
  5848. TYPE Array = ARRAY 10 OF RECORD END;
  5849. TYPE Procedure = PROCEDURE (VAR a, b, c: Array);
  5850. END Test.
  5851. positive: procedure type with a parameter of constant array type
  5852. MODULE Test;
  5853. TYPE Array = ARRAY 10 OF RECORD END;
  5854. TYPE Procedure = PROCEDURE (CONST parameter: Array);
  5855. END Test.
  5856. positive: procedure type with parameters of constant array type
  5857. MODULE Test;
  5858. TYPE Array = ARRAY 10 OF RECORD END;
  5859. TYPE Procedure = PROCEDURE (CONST a, b, c: Array);
  5860. END Test.
  5861. positive: procedure type with intermixed parameters of array type
  5862. MODULE Test;
  5863. TYPE Array = ARRAY 10 OF RECORD END;
  5864. TYPE Procedure = PROCEDURE (a: Array; VAR b: Array; CONST c: Array);
  5865. END Test.
  5866. positive: procedure type with a parameter of anonymous array type
  5867. MODULE Test;
  5868. TYPE Procedure = PROCEDURE (parameter: ARRAY 10 OF RECORD END);
  5869. END Test.
  5870. positive: procedure type with parameters of anonymous array type
  5871. MODULE Test;
  5872. TYPE Procedure = PROCEDURE (a, b, c: ARRAY 10 OF RECORD END);
  5873. END Test.
  5874. positive: procedure type with a parameter of variable anonymous array type
  5875. MODULE Test;
  5876. TYPE Procedure = PROCEDURE (VAR parameter: ARRAY 10 OF RECORD END);
  5877. END Test.
  5878. positive: procedure type with parameters of variable anonymous array type
  5879. MODULE Test;
  5880. TYPE Procedure = PROCEDURE (VAR a, b, c: ARRAY 10 OF RECORD END);
  5881. END Test.
  5882. positive: procedure type with a parameter of constant anonymous array type
  5883. MODULE Test;
  5884. TYPE Procedure = PROCEDURE (CONST parameter: ARRAY 10 OF RECORD END);
  5885. END Test.
  5886. positive: procedure type with parameters of constant anonymous array type
  5887. MODULE Test;
  5888. TYPE Procedure = PROCEDURE (CONST a, b, c: ARRAY 10 OF RECORD END);
  5889. END Test.
  5890. positive: procedure type with intermixed parameters of anonymous array type
  5891. MODULE Test;
  5892. TYPE Procedure = PROCEDURE (a: ARRAY 10 OF RECORD END; VAR b: ARRAY 10 OF RECORD END; CONST c: ARRAY 10 OF RECORD END);
  5893. END Test.
  5894. positive: procedure type with a parameter of open array type
  5895. MODULE Test;
  5896. TYPE Array = ARRAY OF RECORD END;
  5897. TYPE Procedure = PROCEDURE (parameter: Array);
  5898. END Test.
  5899. positive: procedure type with parameters of open array type
  5900. MODULE Test;
  5901. TYPE Array = ARRAY OF RECORD END;
  5902. TYPE Procedure = PROCEDURE (a, b, c: Array);
  5903. END Test.
  5904. positive: procedure type with a parameter of variable open array type
  5905. MODULE Test;
  5906. TYPE Array = ARRAY OF RECORD END;
  5907. TYPE Procedure = PROCEDURE (VAR parameter: Array);
  5908. END Test.
  5909. positive: procedure type with parameters of variable open array type
  5910. MODULE Test;
  5911. TYPE Array = ARRAY OF RECORD END;
  5912. TYPE Procedure = PROCEDURE (VAR a, b, c: Array);
  5913. END Test.
  5914. positive: procedure type with a parameter of constant open array type
  5915. MODULE Test;
  5916. TYPE Array = ARRAY OF RECORD END;
  5917. TYPE Procedure = PROCEDURE (CONST parameter: Array);
  5918. END Test.
  5919. positive: procedure type with parameters of constant open array type
  5920. MODULE Test;
  5921. TYPE Array = ARRAY OF RECORD END;
  5922. TYPE Procedure = PROCEDURE (CONST a, b, c: Array);
  5923. END Test.
  5924. positive: procedure type with intermixed parameters of open array type
  5925. MODULE Test;
  5926. TYPE Array = ARRAY OF RECORD END;
  5927. TYPE Procedure = PROCEDURE (a: Array; VAR b: Array; CONST c: Array);
  5928. END Test.
  5929. positive: procedure type with a parameter of anonymous open array type
  5930. MODULE Test;
  5931. TYPE Procedure = PROCEDURE (parameter: ARRAY OF RECORD END);
  5932. END Test.
  5933. positive: procedure type with parameters of anonymous open array type
  5934. MODULE Test;
  5935. TYPE Procedure = PROCEDURE (a, b, c: ARRAY OF RECORD END);
  5936. END Test.
  5937. positive: procedure type with a parameter of variable anonymous open array type
  5938. MODULE Test;
  5939. TYPE Procedure = PROCEDURE (VAR parameter: ARRAY OF RECORD END);
  5940. END Test.
  5941. positive: procedure type with parameters of variable anonymous open array type
  5942. MODULE Test;
  5943. TYPE Procedure = PROCEDURE (VAR a, b, c: ARRAY OF RECORD END);
  5944. END Test.
  5945. positive: procedure type with a parameter of constant anonymous open array type
  5946. MODULE Test;
  5947. TYPE Procedure = PROCEDURE (CONST parameter: ARRAY OF RECORD END);
  5948. END Test.
  5949. positive: procedure type with parameters of constant anonymous open array type
  5950. MODULE Test;
  5951. TYPE Procedure = PROCEDURE (CONST a, b, c: ARRAY OF RECORD END);
  5952. END Test.
  5953. positive: procedure type with intermixed parameters of anonymous open array type
  5954. MODULE Test;
  5955. TYPE Procedure = PROCEDURE (a: ARRAY OF RECORD END; VAR b: ARRAY OF RECORD END; CONST c: ARRAY OF RECORD END);
  5956. END Test.
  5957. positive: procedure type with a parameter of object type
  5958. MODULE Test;
  5959. TYPE Object = OBJECT END Object;
  5960. TYPE Procedure = PROCEDURE (parameter: Object);
  5961. END Test.
  5962. positive: procedure type with parameters of object type
  5963. MODULE Test;
  5964. TYPE Object = OBJECT END Object;
  5965. TYPE Procedure = PROCEDURE (a, b, c: Object);
  5966. END Test.
  5967. positive: procedure type with a parameter of variable object type
  5968. MODULE Test;
  5969. TYPE Object = OBJECT END Object;
  5970. TYPE Procedure = PROCEDURE (VAR parameter: Object);
  5971. END Test.
  5972. positive: procedure type with parameters of variable object type
  5973. MODULE Test;
  5974. TYPE Object = OBJECT END Object;
  5975. TYPE Procedure = PROCEDURE (VAR a, b, c: Object);
  5976. END Test.
  5977. positive: procedure type with a parameter of constant object type
  5978. MODULE Test;
  5979. TYPE Object = OBJECT END Object;
  5980. TYPE Procedure = PROCEDURE (CONST parameter: Object);
  5981. END Test.
  5982. positive: procedure type with parameters of constant object type
  5983. MODULE Test;
  5984. TYPE Object = OBJECT END Object;
  5985. TYPE Procedure = PROCEDURE (CONST a, b, c: Object);
  5986. END Test.
  5987. positive: procedure type with intermixed parameters of object type
  5988. MODULE Test;
  5989. TYPE Object = OBJECT END Object;
  5990. TYPE Procedure = PROCEDURE (a: Object; VAR b: Object; CONST c: Object);
  5991. END Test.
  5992. positive: procedure type with a parameter of anonymous object type
  5993. MODULE Test;
  5994. TYPE Procedure = PROCEDURE (parameter: OBJECT END);
  5995. END Test.
  5996. positive: procedure type with parameters of anonymous object type
  5997. MODULE Test;
  5998. TYPE Procedure = PROCEDURE (a, b, c: OBJECT END);
  5999. END Test.
  6000. positive: procedure type with a parameter of variable anonymous object type
  6001. MODULE Test;
  6002. TYPE Procedure = PROCEDURE (VAR parameter: OBJECT END);
  6003. END Test.
  6004. positive: procedure type with parameters of variable anonymous object type
  6005. MODULE Test;
  6006. TYPE Procedure = PROCEDURE (VAR a, b, c: OBJECT END);
  6007. END Test.
  6008. positive: procedure type with a parameter of constant anonymous object type
  6009. MODULE Test;
  6010. TYPE Procedure = PROCEDURE (CONST parameter: OBJECT END);
  6011. END Test.
  6012. positive: procedure type with parameters of constant anonymous object type
  6013. MODULE Test;
  6014. TYPE Procedure = PROCEDURE (CONST a, b, c: OBJECT END);
  6015. END Test.
  6016. positive: procedure type with intermixed parameters of anonymous object type
  6017. MODULE Test;
  6018. TYPE Procedure = PROCEDURE (a: OBJECT END; VAR b: OBJECT END; CONST c: OBJECT END);
  6019. END Test.
  6020. positive: procedure type with a parameter of pointer type
  6021. MODULE Test;
  6022. TYPE Pointer = POINTER TO RECORD END;
  6023. TYPE Procedure = PROCEDURE (parameter: Pointer);
  6024. END Test.
  6025. positive: procedure type with parameters of pointer type
  6026. MODULE Test;
  6027. TYPE Pointer = POINTER TO RECORD END;
  6028. TYPE Procedure = PROCEDURE (a, b, c: Pointer);
  6029. END Test.
  6030. positive: procedure type with a parameter of variable pointer type
  6031. MODULE Test;
  6032. TYPE Pointer = POINTER TO RECORD END;
  6033. TYPE Procedure = PROCEDURE (VAR parameter: Pointer);
  6034. END Test.
  6035. positive: procedure type with parameters of variable pointer type
  6036. MODULE Test;
  6037. TYPE Pointer = POINTER TO RECORD END;
  6038. TYPE Procedure = PROCEDURE (VAR a, b, c: Pointer);
  6039. END Test.
  6040. positive: procedure type with a parameter of constant pointer type
  6041. MODULE Test;
  6042. TYPE Pointer = POINTER TO RECORD END;
  6043. TYPE Procedure = PROCEDURE (CONST parameter: Pointer);
  6044. END Test.
  6045. positive: procedure type with parameters of constant pointer type
  6046. MODULE Test;
  6047. TYPE Pointer = POINTER TO RECORD END;
  6048. TYPE Procedure = PROCEDURE (CONST a, b, c: Pointer);
  6049. END Test.
  6050. positive: procedure type with intermixed parameters of pointer type
  6051. MODULE Test;
  6052. TYPE Pointer = POINTER TO RECORD END;
  6053. TYPE Procedure = PROCEDURE (a: Pointer; VAR b: Pointer; CONST c: Pointer);
  6054. END Test.
  6055. positive: procedure type with a parameter of anonymous pointer type
  6056. MODULE Test;
  6057. TYPE Procedure = PROCEDURE (parameter: POINTER TO RECORD END);
  6058. END Test.
  6059. positive: procedure type with parameters of anonymous pointer type
  6060. MODULE Test;
  6061. TYPE Procedure = PROCEDURE (a, b, c: POINTER TO RECORD END);
  6062. END Test.
  6063. positive: procedure type with a parameter of variable anonymous pointer type
  6064. MODULE Test;
  6065. TYPE Procedure = PROCEDURE (VAR parameter: POINTER TO RECORD END);
  6066. END Test.
  6067. positive: procedure type with parameters of variable anonymous pointer type
  6068. MODULE Test;
  6069. TYPE Procedure = PROCEDURE (VAR a, b, c: POINTER TO RECORD END);
  6070. END Test.
  6071. positive: procedure type with a parameter of constant anonymous pointer type
  6072. MODULE Test;
  6073. TYPE Procedure = PROCEDURE (CONST parameter: OBJECT END);
  6074. END Test.
  6075. positive: procedure type with parameters of constant anonymous pointer type
  6076. MODULE Test;
  6077. TYPE Procedure = PROCEDURE (CONST a, b, c: POINTER TO RECORD END);
  6078. END Test.
  6079. positive: procedure type with intermixed parameters of anonymous pointer type
  6080. MODULE Test;
  6081. TYPE Procedure = PROCEDURE (a: POINTER TO RECORD END; VAR b: POINTER TO RECORD END; CONST c: POINTER TO RECORD END);
  6082. END Test.
  6083. positive: procedure type with a parameter of procedure type
  6084. MODULE Test;
  6085. TYPE ProcedureType = PROCEDURE;
  6086. TYPE Procedure = PROCEDURE (parameter: ProcedureType);
  6087. END Test.
  6088. positive: procedure type with parameters of procedure type
  6089. MODULE Test;
  6090. TYPE ProcedureType = PROCEDURE;
  6091. TYPE Procedure = PROCEDURE (a, b, c: ProcedureType);
  6092. END Test.
  6093. positive: procedure type with a parameter of variable procedure type
  6094. MODULE Test;
  6095. TYPE ProcedureType = PROCEDURE;
  6096. TYPE Procedure = PROCEDURE (VAR parameter: ProcedureType);
  6097. END Test.
  6098. positive: procedure type with parameters of variable procedure type
  6099. MODULE Test;
  6100. TYPE ProcedureType = PROCEDURE;
  6101. TYPE Procedure = PROCEDURE (VAR a, b, c: ProcedureType);
  6102. END Test.
  6103. positive: procedure type with a parameter of constant procedure type
  6104. MODULE Test;
  6105. TYPE ProcedureType = PROCEDURE;
  6106. TYPE Procedure = PROCEDURE (CONST parameter: ProcedureType);
  6107. END Test.
  6108. positive: procedure type with parameters of constant procedure type
  6109. MODULE Test;
  6110. TYPE ProcedureType = PROCEDURE;
  6111. TYPE Procedure = PROCEDURE (CONST a, b, c: ProcedureType);
  6112. END Test.
  6113. positive: procedure type with intermixed parameters of procedure type
  6114. MODULE Test;
  6115. TYPE ProcedureType = PROCEDURE;
  6116. TYPE Procedure = PROCEDURE (a: ProcedureType; VAR b: ProcedureType; CONST c: ProcedureType);
  6117. END Test.
  6118. positive: procedure type with a parameter of anonymous procedure type
  6119. MODULE Test;
  6120. TYPE Procedure = PROCEDURE (parameter: PROCEDURE);
  6121. END Test.
  6122. positive: procedure type with parameters of anonymous procedure type
  6123. MODULE Test;
  6124. TYPE Procedure = PROCEDURE (a, b, c: PROCEDURE);
  6125. END Test.
  6126. positive: procedure type with a parameter of variable anonymous procedure type
  6127. MODULE Test;
  6128. TYPE Procedure = PROCEDURE (VAR parameter: PROCEDURE);
  6129. END Test.
  6130. positive: procedure type with parameters of variable anonymous procedure type
  6131. MODULE Test;
  6132. TYPE Procedure = PROCEDURE (VAR a, b, c: PROCEDURE);
  6133. END Test.
  6134. positive: procedure type with a parameter of constant anonymous procedure type
  6135. MODULE Test;
  6136. TYPE Procedure = PROCEDURE (CONST parameter: PROCEDURE);
  6137. END Test.
  6138. positive: procedure type with parameters of constant anonymous procedure type
  6139. MODULE Test;
  6140. TYPE Procedure = PROCEDURE (CONST a, b, c: PROCEDURE);
  6141. END Test.
  6142. positive: procedure type with intermixed parameters of anonymous procedure type
  6143. MODULE Test;
  6144. TYPE Procedure = PROCEDURE (a: PROCEDURE; VAR b: PROCEDURE; CONST c: PROCEDURE);
  6145. END Test.
  6146. # enumerations
  6147. positive: simple enumeration
  6148. MODULE Test;
  6149. TYPE Color=ENUM red, green, blue END;
  6150. VAR color: Color;
  6151. BEGIN color := Color.red END Test.
  6152. positive: enumeration type extension
  6153. MODULE Test;
  6154. TYPE Color=ENUM red, green, blue END;
  6155. FineColor=ENUM (Color) black, white END;
  6156. VAR color: FineColor;
  6157. BEGIN color := Color.red; color := FineColor.white END Test.
  6158. positive: enumeration assignment compatibility
  6159. MODULE Test;
  6160. TYPE Color=ENUM red, green, blue END;
  6161. FineColor=ENUM(Color) black, white END;
  6162. VAR color,color2: Color; fineColor,fineColor2: FineColor;
  6163. BEGIN color := Color.blue; fineColor := Color.red; fineColor := FineColor.black;
  6164. color2 := color; fineColor2 := fineColor;
  6165. fineColor := color;
  6166. END Test.
  6167. negative: wrong enumeration assignment
  6168. MODULE Test;
  6169. TYPE Color=ENUM red, green, blue END;
  6170. FineColor=ENUM(Color) black, white END;
  6171. VAR color,color2: Color; fineColor,fineColor2: FineColor;
  6172. BEGIN color := fineColor
  6173. END Test.
  6174. positive: enumeration comparison compatibility
  6175. MODULE Test;
  6176. TYPE Color=ENUM red, green, blue END;
  6177. FineColor=ENUM(Color) black, white END;
  6178. VAR color,color2: Color; fineColor,fineColor2: FineColor; b: BOOLEAN;
  6179. BEGIN
  6180. b := color = color2;
  6181. b := color # color2;
  6182. b := fineColor = fineColor2;
  6183. b := fineColor # fineColor2;
  6184. b := color = fineColor;
  6185. b := fineColor = color;
  6186. END Test.
  6187. positive: enumeration comparison with impossible value (extension)
  6188. MODULE Test;
  6189. TYPE Color=ENUM red, green, blue END;
  6190. FineColor=ENUM(Color) black, white END;
  6191. VAR color,color2: Color; fineColor,fineColor2: FineColor; b: BOOLEAN;
  6192. BEGIN
  6193. b := color = FineColor.white;
  6194. END Test.
  6195. positive: passing enumeration as parameter
  6196. MODULE Test;
  6197. TYPE Color=ENUM red, green, blue END;
  6198. FineColor=ENUM(Color) black, white END;
  6199. VAR color,color2: Color; fineColor,fineColor2: FineColor; b: BOOLEAN;
  6200. PROCEDURE P1(color: Color);
  6201. BEGIN END P1;
  6202. PROCEDURE P2(color: FineColor);
  6203. BEGIN END P2;
  6204. PROCEDURE P1V(VAR color: Color);
  6205. BEGIN END P1V;
  6206. PROCEDURE P2V(VAR color: FineColor);
  6207. BEGIN END P2V;
  6208. BEGIN
  6209. P1(color);
  6210. P2(fineColor);
  6211. P2(color);
  6212. P1V(color);
  6213. P2V(fineColor);
  6214. END Test.
  6215. negative: passing enumeration extension on base type
  6216. MODULE Test;
  6217. TYPE Color=ENUM red, green, blue END;
  6218. FineColor=ENUM(Color) black, white END;
  6219. VAR color,color2: Color; fineColor,fineColor2: FineColor; b: BOOLEAN;
  6220. PROCEDURE P1(color: Color);
  6221. BEGIN END P1;
  6222. BEGIN
  6223. P1(fineColor);
  6224. END Test.
  6225. negative: passing enumeration extension on extended type as var parameter
  6226. MODULE Test;
  6227. TYPE Color=ENUM red, green, blue END;
  6228. FineColor=ENUM(Color) black, white END;
  6229. VAR color,color2: Color; fineColor,fineColor2: FineColor; b: BOOLEAN;
  6230. PROCEDURE P1(VAR color: Color);
  6231. BEGIN END P1;
  6232. BEGIN
  6233. P1(fineColor);
  6234. END Test.
  6235. positive: returning enumeration type
  6236. MODULE Test;
  6237. TYPE
  6238. Enumeration = ENUM
  6239. red, green, blue
  6240. END;
  6241. PROCEDURE Test(): Enumeration;
  6242. BEGIN
  6243. RETURN Enumeration.green;
  6244. END Test;
  6245. BEGIN
  6246. ASSERT(Test() = Enumeration.green);
  6247. END Test.
  6248. # variables
  6249. positive: unmarked variable
  6250. MODULE Test;
  6251. VAR variable: RECORD END;
  6252. END Test.
  6253. positive: initializing unmarked variable
  6254. MODULE Test;
  6255. VAR variable: INTEGER;
  6256. BEGIN variable := 0
  6257. END Test.
  6258. positive: unmarked variable within procedure
  6259. MODULE Test;
  6260. PROCEDURE Procedure;
  6261. VAR variable: RECORD END;
  6262. END Procedure;
  6263. END Test.
  6264. positive: initializing unmarked variable within procedure
  6265. MODULE Test;
  6266. PROCEDURE Procedure;
  6267. VAR variable: INTEGER;
  6268. BEGIN variable := 0
  6269. END Procedure;
  6270. END Test.
  6271. positive: unmarked variable within nested procedure
  6272. MODULE Test;
  6273. PROCEDURE Procedure;
  6274. PROCEDURE Procedure;
  6275. VAR variable: RECORD END;
  6276. END Procedure;
  6277. END Procedure;
  6278. END Test.
  6279. positive: initializing unmarked variable within nested procedure
  6280. MODULE Test;
  6281. PROCEDURE Procedure;
  6282. PROCEDURE Procedure;
  6283. VAR variable: INTEGER;
  6284. BEGIN variable := 0
  6285. END Procedure;
  6286. END Procedure;
  6287. END Test.
  6288. positive: unmarked variable within record
  6289. MODULE Test;
  6290. TYPE Record = RECORD
  6291. variable: RECORD END;
  6292. END;
  6293. END Test.
  6294. positive: initializing unmarked variable within record
  6295. MODULE Test;
  6296. TYPE Record = RECORD
  6297. variable: INTEGER;
  6298. END;
  6299. VAR record: Record;
  6300. BEGIN record.variable := 0
  6301. END Test.
  6302. positive: unmarked variable within object
  6303. MODULE Test;
  6304. TYPE Object = OBJECT
  6305. VAR variable: RECORD END;
  6306. END Object;
  6307. END Test.
  6308. positive: initializing unmarked variable within object
  6309. MODULE Test;
  6310. TYPE Object = OBJECT
  6311. VAR variable: INTEGER;
  6312. BEGIN variable := 0
  6313. END Object;
  6314. END Test.
  6315. positive: unmarked variable within record in procedure
  6316. MODULE Test;
  6317. PROCEDURE Procedure;
  6318. TYPE Record = RECORD
  6319. variable: RECORD END;
  6320. END;
  6321. END Procedure;
  6322. END Test.
  6323. positive: initializing unmarked variable within record in procedure
  6324. MODULE Test;
  6325. PROCEDURE Procedure;
  6326. TYPE Record = RECORD
  6327. variable: INTEGER;
  6328. END;
  6329. VAR record: Record;
  6330. BEGIN record.variable := 0
  6331. END Procedure;
  6332. END Test.
  6333. positive: unmarked variable within object in procedure
  6334. MODULE Test;
  6335. PROCEDURE Procedure;
  6336. TYPE Object = OBJECT
  6337. VAR variable: RECORD END;
  6338. END Object;
  6339. END Procedure;
  6340. END Test.
  6341. positive: initializing unmarked variable within object in procedure
  6342. MODULE Test;
  6343. PROCEDURE Procedure;
  6344. TYPE Object = OBJECT
  6345. VAR variable: INTEGER;
  6346. BEGIN variable := 0
  6347. END Object;
  6348. END Procedure;
  6349. END Test.
  6350. positive: unmarked variable within procedure in object
  6351. MODULE Test;
  6352. TYPE Object = OBJECT
  6353. PROCEDURE Procedure;
  6354. VAR variable: RECORD END;
  6355. END Procedure;
  6356. END Object;
  6357. END Test.
  6358. positive: initializing unmarked variable within procedure in object
  6359. MODULE Test;
  6360. TYPE Object = OBJECT
  6361. PROCEDURE Procedure;
  6362. VAR variable: INTEGER;
  6363. BEGIN variable := 0
  6364. END Procedure;
  6365. END Object;
  6366. END Test.
  6367. positive: variable marked as exported
  6368. MODULE Test;
  6369. VAR variable*: RECORD END;
  6370. END Test.
  6371. positive: initializing variable marked as exported
  6372. MODULE Test;
  6373. VAR variable*: INTEGER;
  6374. BEGIN variable := 0
  6375. END Test.
  6376. negative: variable marked as exported within procedure
  6377. MODULE Test;
  6378. PROCEDURE Procedure;
  6379. VAR variable*: RECORD END;
  6380. END Procedure;
  6381. END Test.
  6382. negative: variable marked as exported within nested procedure
  6383. MODULE Test;
  6384. PROCEDURE Procedure;
  6385. PROCEDURE Procedure;
  6386. VAR variable*: RECORD END;
  6387. END Procedure;
  6388. END Procedure;
  6389. END Test.
  6390. positive: variable marked as exported within record
  6391. MODULE Test;
  6392. TYPE Record = RECORD
  6393. variable*: RECORD END;
  6394. END;
  6395. END Test.
  6396. positive: initializing variable marked as exported within record
  6397. MODULE Test;
  6398. TYPE Record = RECORD
  6399. variable*: INTEGER;
  6400. END;
  6401. VAR record: Record;
  6402. BEGIN record.variable := 0
  6403. END Test.
  6404. positive: variable marked as exported within object
  6405. MODULE Test;
  6406. TYPE Object = OBJECT
  6407. VAR variable*: RECORD END;
  6408. END Object;
  6409. END Test.
  6410. positive: initializing variable marked as exported within object
  6411. MODULE Test;
  6412. TYPE Object = OBJECT
  6413. VAR variable*: INTEGER;
  6414. BEGIN variable := 0
  6415. END Object;
  6416. END Test.
  6417. negative: variable marked as exported within record in procedure
  6418. MODULE Test;
  6419. PROCEDURE Procedure;
  6420. TYPE Record = RECORD
  6421. variable*: RECORD END;
  6422. END;
  6423. END Procedure;
  6424. END Test.
  6425. negative: variable marked as exported within object in procedure
  6426. MODULE Test;
  6427. PROCEDURE Procedure;
  6428. TYPE Object = OBJECT
  6429. VAR variable*: RECORD END;
  6430. END Object;
  6431. END Procedure;
  6432. END Test.
  6433. negative: variable marked as exported within procedure in object
  6434. MODULE Test;
  6435. TYPE Object = OBJECT
  6436. PROCEDURE Procedure;
  6437. VAR variable*: RECORD END;
  6438. END Procedure;
  6439. END Object;
  6440. END Test.
  6441. positive: variable marked as read-only
  6442. MODULE Test;
  6443. VAR variable-: RECORD END;
  6444. END Test.
  6445. positive: initializing variable marked as read-only
  6446. MODULE Test;
  6447. VAR variable-: INTEGER;
  6448. BEGIN variable := 0
  6449. END Test.
  6450. negative: variable marked as read-only within procedure
  6451. MODULE Test;
  6452. PROCEDURE Procedure;
  6453. VAR variable-: RECORD END;
  6454. END Procedure;
  6455. END Test.
  6456. negative: variable marked as read-only within nested procedure
  6457. MODULE Test;
  6458. PROCEDURE Procedure;
  6459. PROCEDURE Procedure;
  6460. VAR variable-: RECORD END;
  6461. END Procedure;
  6462. END Procedure;
  6463. END Test.
  6464. positive: variable marked as read-only within record
  6465. MODULE Test;
  6466. TYPE Record = RECORD
  6467. variable-: RECORD END;
  6468. END;
  6469. END Test.
  6470. positive: initializing variable marked as read-only within record
  6471. MODULE Test;
  6472. TYPE Record = RECORD
  6473. variable-: INTEGER;
  6474. END;
  6475. VAR record: Record;
  6476. BEGIN record.variable := 0
  6477. END Test.
  6478. positive: variable marked as read-only within object
  6479. MODULE Test;
  6480. TYPE Object = OBJECT
  6481. VAR variable-: RECORD END;
  6482. END Object;
  6483. END Test.
  6484. positive: initializing variable marked as read-only within object
  6485. MODULE Test;
  6486. TYPE Object = OBJECT
  6487. VAR variable-: INTEGER;
  6488. BEGIN variable := 0
  6489. END Object;
  6490. END Test.
  6491. negative: variable marked as read-only within record in procedure
  6492. MODULE Test;
  6493. PROCEDURE Procedure;
  6494. TYPE Record = RECORD
  6495. variable-: RECORD END;
  6496. END;
  6497. END Procedure;
  6498. END Test.
  6499. negative: variable marked as read-only within object in procedure
  6500. MODULE Test;
  6501. PROCEDURE Procedure;
  6502. TYPE Object = OBJECT
  6503. VAR variable-: RECORD END;
  6504. END Object;
  6505. END Procedure;
  6506. END Test.
  6507. negative: variable marked as read-only within procedure in object
  6508. MODULE Test;
  6509. TYPE Object = OBJECT
  6510. PROCEDURE Procedure;
  6511. VAR variable-: RECORD END;
  6512. END Procedure;
  6513. END Object;
  6514. END Test.
  6515. negative: duplicated variable
  6516. MODULE Test;
  6517. VAR variable: LONGINT;
  6518. VAR variable: RECORD END;
  6519. END Test.
  6520. negative: duplicated variable within procedure
  6521. MODULE Test;
  6522. PROCEDURE Procedure;
  6523. VAR variable: LONGINT;
  6524. VAR variable: RECORD END;
  6525. END Procedure;
  6526. END Test.
  6527. negative: duplicated variable within nested procedure
  6528. MODULE Test;
  6529. PROCEDURE Procedure;
  6530. PROCEDURE Procedure;
  6531. VAR variable: LONGINT;
  6532. VAR variable: RECORD END;
  6533. END Procedure;
  6534. END Procedure;
  6535. END Test.
  6536. negative: duplicated variable within record
  6537. MODULE Test;
  6538. TYPE Record = RECORD
  6539. variable: LONGINT;
  6540. variable: RECORD END;
  6541. END;
  6542. END Test.
  6543. negative: duplicated variable within object
  6544. MODULE Test;
  6545. TYPE Object = OBJECT
  6546. VAR variable: LONGINT;
  6547. VAR variable: RECORD END;
  6548. END Object;
  6549. END Test.
  6550. negative: duplicated variable within record in procedure
  6551. MODULE Test;
  6552. PROCEDURE Procedure;
  6553. TYPE Record = RECORD
  6554. variable: LONGINT;
  6555. variable: RECORD END;
  6556. END;
  6557. END Procedure;
  6558. END Test.
  6559. negative: duplicated variable within object in procedure
  6560. MODULE Test;
  6561. PROCEDURE Procedure;
  6562. TYPE Object = OBJECT
  6563. VAR variable: LONGINT;
  6564. VAR variable: RECORD END;
  6565. END Object;
  6566. END Procedure;
  6567. END Test.
  6568. negative: duplicated variable within procedure in object
  6569. MODULE Test;
  6570. TYPE Object = OBJECT
  6571. PROCEDURE Procedure;
  6572. VAR variable: LONGINT;
  6573. VAR variable: RECORD END;
  6574. END Procedure;
  6575. END Object;
  6576. END Test.
  6577. negative: duplicated variable in same declaration
  6578. MODULE Test;
  6579. VAR variable, variable: LONGINT;
  6580. END Test.
  6581. negative: duplicated variable in same declaration within procedure
  6582. MODULE Test;
  6583. PROCEDURE Procedure;
  6584. VAR variable, variable: LONGINT;
  6585. END Procedure;
  6586. END Test.
  6587. negative: duplicated variable in same declaration within nested procedure
  6588. MODULE Test;
  6589. PROCEDURE Procedure;
  6590. PROCEDURE Procedure;
  6591. VAR variable, variable: LONGINT;
  6592. END Procedure;
  6593. END Procedure;
  6594. END Test.
  6595. negative: duplicated variable in same declaration within record
  6596. MODULE Test;
  6597. TYPE Record = RECORD
  6598. variable, variable: LONGINT;
  6599. END;
  6600. END Test.
  6601. negative: duplicated variable in same declaration within object
  6602. MODULE Test;
  6603. TYPE Object = OBJECT
  6604. VAR variable, variable: LONGINT;
  6605. END Object;
  6606. END Test.
  6607. negative: duplicated variable in same declaration within record in procedure
  6608. MODULE Test;
  6609. PROCEDURE Procedure;
  6610. TYPE Record = RECORD
  6611. variable, variable: LONGINT;
  6612. END;
  6613. END Procedure;
  6614. END Test.
  6615. negative: duplicated variable in same declaration within object in procedure
  6616. MODULE Test;
  6617. PROCEDURE Procedure;
  6618. TYPE Object = OBJECT
  6619. VAR variable, variable: LONGINT;
  6620. END Object;
  6621. END Procedure;
  6622. END Test.
  6623. negative: duplicated variable in same declaration within procedure in object
  6624. MODULE Test;
  6625. TYPE Object = OBJECT
  6626. PROCEDURE Procedure;
  6627. VAR variable, variable: LONGINT;
  6628. END Procedure;
  6629. END Object;
  6630. END Test.
  6631. negative: import as variable
  6632. MODULE Test;
  6633. IMPORT Import := Dummy;
  6634. VAR variable: Import;
  6635. END Test.
  6636. negative: constant as variable
  6637. MODULE Test;
  6638. CONST Constant = 0;
  6639. VAR variable: Constant;
  6640. END Test.
  6641. positive: type as variable
  6642. MODULE Test;
  6643. TYPE Type = INTEGER;
  6644. VAR variable: Type;
  6645. END Test.
  6646. negative: procedure as variable
  6647. MODULE Test;
  6648. VAR variable: Procedure;
  6649. PROCEDURE Procedure; END Procedure;
  6650. END Test.
  6651. negative: parameter as variable
  6652. MODULE Test;
  6653. PROCEDURE Procedure (parameter: INTEGER);
  6654. VAR variable: parameter;
  6655. END Procedure;
  6656. END Test.
  6657. positive: variable of basic character type
  6658. MODULE Test;
  6659. VAR variable: CHAR;
  6660. END Test.
  6661. positive: variable of basic boolean type
  6662. MODULE Test;
  6663. VAR variable: BOOLEAN;
  6664. END Test.
  6665. positive: variable of basic short integer type
  6666. MODULE Test;
  6667. VAR variable: SHORTINT;
  6668. END Test.
  6669. positive: variable of basic integer type
  6670. MODULE Test;
  6671. VAR variable: INTEGER;
  6672. END Test.
  6673. positive: variable of basic long integer type
  6674. MODULE Test;
  6675. VAR variable: LONGINT;
  6676. END Test.
  6677. positive: variable of basic huge integer type
  6678. MODULE Test;
  6679. VAR variable: HUGEINT;
  6680. END Test.
  6681. positive: variable of basic real type
  6682. MODULE Test;
  6683. VAR variable: REAL;
  6684. END Test.
  6685. positive: variable of basic long real type
  6686. MODULE Test;
  6687. VAR variable: LONGREAL;
  6688. END Test.
  6689. positive: variable of basic set type
  6690. MODULE Test;
  6691. VAR variable: SET;
  6692. END Test.
  6693. positive: variable of record type
  6694. MODULE Test;
  6695. TYPE Record = RECORD c: CHAR END;
  6696. VAR variable: Record;
  6697. END Test.
  6698. positive: variables of record type
  6699. MODULE Test;
  6700. TYPE Record = RECORD c: CHAR END;
  6701. VAR a, b, c: Record;
  6702. END Test.
  6703. positive: variable of anonymous record type
  6704. MODULE Test;
  6705. VAR variable: RECORD c: CHAR END;
  6706. END Test.
  6707. positive: variables of anonymous record type
  6708. MODULE Test;
  6709. VAR a, b, c: RECORD c: CHAR END;
  6710. END Test.
  6711. positive: variable of array type
  6712. MODULE Test;
  6713. TYPE Array = ARRAY 10 OF RECORD END;
  6714. VAR variable: Array;
  6715. END Test.
  6716. positive: variables of array type
  6717. MODULE Test;
  6718. TYPE Array = ARRAY 10 OF RECORD END;
  6719. VAR a, b, c: Array;
  6720. END Test.
  6721. positive: variable of anonymous array type
  6722. MODULE Test;
  6723. VAR variable: ARRAY 10 OF RECORD END;
  6724. END Test.
  6725. positive: variables of anonymous array type
  6726. MODULE Test;
  6727. VAR a, b, c: ARRAY 10 OF RECORD END;
  6728. END Test.
  6729. negative: variable of open array type
  6730. MODULE Test;
  6731. TYPE Array = ARRAY OF RECORD END;
  6732. VAR variable: Array;
  6733. END Test.
  6734. negative: variables of open array type
  6735. MODULE Test;
  6736. TYPE Array = ARRAY OF RECORD END;
  6737. VAR a, v, c: Array;
  6738. END Test.
  6739. negative: variable of anonymous open array type
  6740. MODULE Test;
  6741. VAR variable: ARRAY OF RECORD END;
  6742. END Test.
  6743. negative: variables of anonymous open array type
  6744. MODULE Test;
  6745. VAR a, b, c: ARRAY OF RECORD END;
  6746. END Test.
  6747. positive: variable of object type
  6748. MODULE Test;
  6749. TYPE Object = OBJECT VAR c: CHAR END Object;
  6750. VAR variable: Object;
  6751. END Test.
  6752. positive: variables of object type
  6753. MODULE Test;
  6754. TYPE Object = OBJECT VAR c: CHAR END Object;
  6755. VAR a, b, c: Object;
  6756. END Test.
  6757. positive: variable of anonymous object type
  6758. MODULE Test;
  6759. VAR variable: OBJECT VAR c: CHAR END;
  6760. END Test.
  6761. positive: variables of anonymous object type
  6762. MODULE Test;
  6763. VAR a, b, c: OBJECT VAR c: CHAR END;
  6764. END Test.
  6765. positive: variable of pointer type
  6766. MODULE Test;
  6767. TYPE Pointer = POINTER TO RECORD c: CHAR END;
  6768. VAR variable: Pointer;
  6769. END Test.
  6770. positive: variables of pointer type
  6771. MODULE Test;
  6772. TYPE Pointer = POINTER TO RECORD c: CHAR END;
  6773. VAR a, b, c: Pointer;
  6774. END Test.
  6775. positive: variable of anonymous pointer type
  6776. MODULE Test;
  6777. VAR variable: POINTER TO RECORD c: CHAR END;
  6778. END Test.
  6779. positive: variables of anonymous pointer type
  6780. MODULE Test;
  6781. VAR a, b, c: POINTER TO RECORD c: CHAR END;
  6782. END Test.
  6783. positive: variable of procedure type
  6784. MODULE Test;
  6785. TYPE Procedure = PROCEDURE;
  6786. VAR variable: Procedure;
  6787. END Test.
  6788. positive: variables of procedure type
  6789. MODULE Test;
  6790. TYPE Procedure = PROCEDURE;
  6791. VAR a, b, c: Procedure;
  6792. END Test.
  6793. positive: variable of anonymous procedure type
  6794. MODULE Test;
  6795. VAR variable: PROCEDURE;
  6796. END Test.
  6797. positive: variables of anonymous procedure type
  6798. MODULE Test;
  6799. VAR a, b, c: PROCEDURE;
  6800. END Test.
  6801. negative: definition of self in module
  6802. MODULE Test;
  6803. VAR SELF: OBJECT;
  6804. END Test.
  6805. negative: definition of self in procedure
  6806. MODULE Test;
  6807. PROCEDURE Procedure;
  6808. VAR SELF: OBJECT;
  6809. END Procedure;
  6810. END Test.
  6811. negative: definition of self in object
  6812. MODULE Test;
  6813. TYPE Object = OBJECT
  6814. VAR SELF: OBJECT;
  6815. END Object;
  6816. END Test.
  6817. negative: definition of self in procedure in object
  6818. MODULE Test;
  6819. TYPE Object = OBJECT
  6820. PROCEDURE Procedure;
  6821. VAR SELF: OBJECT;
  6822. END Procedure;
  6823. END Object;
  6824. END Test.
  6825. negative: definition of self in nested procedure in object
  6826. MODULE Test;
  6827. TYPE Object = OBJECT
  6828. PROCEDURE Procedure;
  6829. PROCEDURE Procedure;
  6830. VAR SELF: OBJECT;
  6831. END Procedure;
  6832. END Procedure;
  6833. END Object;
  6834. END Test.
  6835. negative: modification of self in module
  6836. MODULE Test;
  6837. BEGIN SELF := NIL;
  6838. END Test.
  6839. negative: modification of self in procedure
  6840. MODULE Test;
  6841. PROCEDURE Procedure;
  6842. BEGIN SELF := NIL;
  6843. END Procedure;
  6844. END Test.
  6845. negative: modification of self in object
  6846. MODULE Test;
  6847. TYPE Object = OBJECT
  6848. BEGIN SELF := NIL;
  6849. END Object;
  6850. END Test.
  6851. negative: modification of self in procedure in object
  6852. MODULE Test;
  6853. TYPE Object = OBJECT
  6854. PROCEDURE Procedure;
  6855. BEGIN SELF := NIL;
  6856. END Procedure;
  6857. END Object;
  6858. END Test.
  6859. negative: modification of self in nested procedure in object
  6860. MODULE Test;
  6861. TYPE Object = OBJECT
  6862. PROCEDURE Procedure;
  6863. PROCEDURE Procedure;
  6864. BEGIN SELF := NIL;
  6865. END Procedure;
  6866. END Procedure;
  6867. END Object;
  6868. END Test.
  6869. negative: reading self in module
  6870. MODULE Test;
  6871. VAR a: INTEGER;
  6872. BEGIN a := SELF.a;
  6873. END Test.
  6874. negative: reading self in procedure
  6875. MODULE Test;
  6876. VAR a: INTEGER;
  6877. PROCEDURE Procedure;
  6878. BEGIN a := SELF.a;
  6879. END Procedure;
  6880. END Test.
  6881. positive: reading self in object
  6882. MODULE Test;
  6883. TYPE Object = OBJECT
  6884. VAR a: INTEGER;
  6885. BEGIN a := SELF.a;
  6886. END Object;
  6887. END Test.
  6888. positive: reading self in procedure in object
  6889. MODULE Test;
  6890. TYPE Object = OBJECT
  6891. VAR a: INTEGER;
  6892. PROCEDURE Procedure;
  6893. BEGIN a := SELF.a;
  6894. END Procedure;
  6895. END Object;
  6896. END Test.
  6897. positive: reading self in nested procedure in object
  6898. MODULE Test;
  6899. TYPE Object = OBJECT
  6900. VAR a: INTEGER;
  6901. PROCEDURE Procedure;
  6902. PROCEDURE Procedure;
  6903. BEGIN a := SELF.a;
  6904. END Procedure;
  6905. END Procedure;
  6906. END Object;
  6907. END Test.
  6908. negative: writing self in module
  6909. MODULE Test;
  6910. VAR a: INTEGER;
  6911. BEGIN SELF.a := a;
  6912. END Test.
  6913. negative: writing self in procedure
  6914. MODULE Test;
  6915. VAR a: INTEGER;
  6916. PROCEDURE Procedure;
  6917. BEGIN SELF.a := a;
  6918. END Procedure;
  6919. END Test.
  6920. positive: writing self in object
  6921. MODULE Test;
  6922. TYPE Object = OBJECT
  6923. VAR a: INTEGER;
  6924. BEGIN SELF.a := a;
  6925. END Object;
  6926. END Test.
  6927. positive: writing self in procedure in object
  6928. MODULE Test;
  6929. TYPE Object = OBJECT
  6930. VAR a: INTEGER;
  6931. PROCEDURE Procedure;
  6932. BEGIN SELF.a := a;
  6933. END Procedure;
  6934. END Object;
  6935. END Test.
  6936. positive: writing self in nested procedure in object
  6937. MODULE Test;
  6938. TYPE Object = OBJECT
  6939. VAR a: INTEGER;
  6940. PROCEDURE Procedure;
  6941. PROCEDURE Procedure;
  6942. BEGIN SELF.a := a;
  6943. END Procedure;
  6944. END Procedure;
  6945. END Object;
  6946. END Test.
  6947. positive: usage of self in object
  6948. MODULE Test;
  6949. TYPE Object = OBJECT
  6950. VAR object: Object;
  6951. BEGIN object := SELF;
  6952. END Object;
  6953. END Test.
  6954. positive: usage of self in procedure in object
  6955. MODULE Test;
  6956. TYPE Object = OBJECT
  6957. VAR object: Object;
  6958. PROCEDURE Procedure;
  6959. BEGIN object := SELF;
  6960. END Procedure;
  6961. END Object;
  6962. END Test.
  6963. positive: usage of self in nested procedure in object
  6964. MODULE Test;
  6965. TYPE Object = OBJECT
  6966. VAR object: Object;
  6967. PROCEDURE Procedure;
  6968. PROCEDURE Procedure;
  6969. BEGIN object := SELF;
  6970. END Procedure;
  6971. END Procedure;
  6972. END Object;
  6973. END Test.
  6974. positive: usage of self as base object in object
  6975. MODULE Test;
  6976. TYPE Object = OBJECT
  6977. VAR object: OBJECT;
  6978. BEGIN object := SELF;
  6979. END Object;
  6980. END Test.
  6981. positive: usage of self as base object in procedure in object
  6982. MODULE Test;
  6983. TYPE Object = OBJECT
  6984. VAR object: OBJECT;
  6985. PROCEDURE Procedure;
  6986. BEGIN object := SELF;
  6987. END Procedure;
  6988. END Object;
  6989. END Test.
  6990. positive: usage of self as base object in nested procedure in object
  6991. MODULE Test;
  6992. TYPE Object = OBJECT
  6993. VAR object: OBJECT;
  6994. PROCEDURE Procedure;
  6995. PROCEDURE Procedure;
  6996. BEGIN object := SELF;
  6997. END Procedure;
  6998. END Procedure;
  6999. END Object;
  7000. END Test.
  7001. positive: dummy module exporting variables
  7002. MODULE Dummy;
  7003. VAR exported*, readonly-, private: INTEGER;
  7004. END Dummy.
  7005. positive: importing exported variable
  7006. MODULE Test;
  7007. IMPORT Dummy;
  7008. VAR result: INTEGER;
  7009. BEGIN result := Dummy.exported;
  7010. END Test.
  7011. positive: changing imported exported variable
  7012. MODULE Test;
  7013. IMPORT Dummy;
  7014. BEGIN Dummy.exported := 0;
  7015. END Test.
  7016. positive: importing read-only variable
  7017. MODULE Test;
  7018. IMPORT Dummy;
  7019. VAR result: INTEGER;
  7020. BEGIN result := Dummy.readonly;
  7021. END Test.
  7022. negative: changing imported read-only variable
  7023. MODULE Test;
  7024. IMPORT Dummy;
  7025. BEGIN Dummy.readonly := 0;
  7026. END Test.
  7027. negative: importing private variable
  7028. MODULE Test;
  7029. IMPORT Dummy;
  7030. VAR result: INTEGER;
  7031. BEGIN result := Dummy.private;
  7032. END Test.
  7033. negative: changing imported private variable
  7034. MODULE Test;
  7035. IMPORT Dummy;
  7036. BEGIN Dummy.private := 0;
  7037. END Test.
  7038. negative: importing invalid variable
  7039. MODULE Test;
  7040. IMPORT Dummy;
  7041. VAR result: INTEGER;
  7042. BEGIN result := Dummy.invalid;
  7043. END Test.
  7044. # procedures
  7045. positive: unmarked procedure
  7046. MODULE Test;
  7047. PROCEDURE Procedure;
  7048. END Procedure;
  7049. END Test.
  7050. positive: unmarked procedure within procedure
  7051. MODULE Test;
  7052. PROCEDURE Procedure;
  7053. PROCEDURE Procedure;
  7054. END Procedure;
  7055. END Procedure;
  7056. END Test.
  7057. positive: unmarked procedure within nested procedure
  7058. MODULE Test;
  7059. PROCEDURE Procedure;
  7060. PROCEDURE Procedure;
  7061. PROCEDURE Procedure;
  7062. END Procedure;
  7063. END Procedure;
  7064. END Procedure;
  7065. END Test.
  7066. positive: unmarked procedure within object
  7067. MODULE Test;
  7068. TYPE Object = OBJECT
  7069. PROCEDURE Procedure;
  7070. END Procedure;
  7071. END Object;
  7072. END Test.
  7073. positive: unmarked procedure within object in procedure
  7074. MODULE Test;
  7075. PROCEDURE Procedure;
  7076. TYPE Object = OBJECT
  7077. PROCEDURE Procedure;
  7078. END Procedure;
  7079. END Object;
  7080. END Procedure;
  7081. END Test.
  7082. positive: unmarked procedure within procedure in object
  7083. MODULE Test;
  7084. TYPE Object = OBJECT
  7085. PROCEDURE Procedure;
  7086. PROCEDURE Procedure;
  7087. END Procedure;
  7088. END Procedure;
  7089. END Object;
  7090. END Test.
  7091. positive: procedure marked as exported
  7092. MODULE Test;
  7093. PROCEDURE Procedure*;
  7094. END Procedure;
  7095. END Test.
  7096. negative: procedure marked as exported within procedure
  7097. MODULE Test;
  7098. PROCEDURE Procedure;
  7099. PROCEDURE Procedure*;
  7100. END Procedure;
  7101. END Procedure;
  7102. END Test.
  7103. negative: procedure marked as exported within nested procedure
  7104. MODULE Test;
  7105. PROCEDURE Procedure;
  7106. PROCEDURE Procedure;
  7107. PROCEDURE Procedure*;
  7108. END Procedure;
  7109. END Procedure;
  7110. END Procedure;
  7111. END Test.
  7112. positive: procedure marked as exported within object
  7113. MODULE Test;
  7114. TYPE Object = OBJECT
  7115. PROCEDURE Procedure*;
  7116. END Procedure;
  7117. END Object;
  7118. END Test.
  7119. negative: procedure marked as exported within object in procedure
  7120. MODULE Test;
  7121. PROCEDURE Procedure;
  7122. TYPE Object = OBJECT
  7123. PROCEDURE Procedure*;
  7124. END Procedure;
  7125. END Object;
  7126. END Procedure;
  7127. END Test.
  7128. negative: procedure marked as exported within procedure in object
  7129. MODULE Test;
  7130. TYPE Object = OBJECT
  7131. PROCEDURE Procedure;
  7132. PROCEDURE Procedure*;
  7133. END Procedure;
  7134. END Procedure;
  7135. END Object;
  7136. END Test.
  7137. positive: procedure marked as read-only
  7138. MODULE Test;
  7139. PROCEDURE Procedure-;
  7140. END Procedure;
  7141. END Test.
  7142. negative: procedure marked as read-only within procedure
  7143. MODULE Test;
  7144. PROCEDURE Procedure;
  7145. PROCEDURE Procedure-;
  7146. END Procedure;
  7147. END Procedure;
  7148. END Test.
  7149. negative: procedure marked as read-only within nested procedure
  7150. MODULE Test;
  7151. PROCEDURE Procedure;
  7152. PROCEDURE Procedure;
  7153. PROCEDURE Procedure-;
  7154. END Procedure;
  7155. END Procedure;
  7156. END Procedure;
  7157. END Test.
  7158. positive: procedure marked as read-only within object
  7159. MODULE Test;
  7160. TYPE Object = OBJECT
  7161. PROCEDURE Procedure-;
  7162. END Procedure;
  7163. END Object;
  7164. END Test.
  7165. negative: procedure marked as read-only within object in procedure
  7166. MODULE Test;
  7167. PROCEDURE Procedure;
  7168. TYPE Object = OBJECT
  7169. PROCEDURE Procedure-;
  7170. END Procedure;
  7171. END Object;
  7172. END Procedure;
  7173. END Test.
  7174. negative: procedure marked as read-only within procedure in object
  7175. MODULE Test;
  7176. TYPE Object = OBJECT
  7177. PROCEDURE Procedure;
  7178. PROCEDURE Procedure-;
  7179. END Procedure;
  7180. END Procedure;
  7181. END Object;
  7182. END Test.
  7183. negative: duplicated procedure
  7184. MODULE Test;
  7185. PROCEDURE Procedure; END Procedure;
  7186. PROCEDURE Procedure; END Procedure;
  7187. END Test.
  7188. negative: duplicated procedure within procedure
  7189. MODULE Test;
  7190. PROCEDURE Procedure;
  7191. PROCEDURE Procedure; END Procedure;
  7192. PROCEDURE Procedure; END Procedure;
  7193. END Procedure;
  7194. END Test.
  7195. negative: duplicated procedure within nested procedure
  7196. MODULE Test;
  7197. PROCEDURE Procedure;
  7198. PROCEDURE Procedure;
  7199. PROCEDURE Procedure; END Procedure;
  7200. PROCEDURE Procedure; END Procedure;
  7201. END Procedure;
  7202. END Procedure;
  7203. END Test.
  7204. negative: duplicated procedure within object
  7205. MODULE Test;
  7206. TYPE Object = OBJECT
  7207. PROCEDURE Procedure; END Procedure;
  7208. PROCEDURE Procedure; END Procedure;
  7209. END Object;
  7210. END Test.
  7211. negative: duplicated procedure within object in procedure
  7212. MODULE Test;
  7213. PROCEDURE Procedure;
  7214. TYPE Object = OBJECT
  7215. PROCEDURE Procedure; END Procedure;
  7216. PROCEDURE Procedure; END Procedure;
  7217. END Object;
  7218. END Procedure;
  7219. END Test.
  7220. negative: duplicated procedure within procedure in object
  7221. MODULE Test;
  7222. TYPE Object = OBJECT
  7223. PROCEDURE Procedure;
  7224. PROCEDURE Procedure; END Procedure;
  7225. PROCEDURE Procedure; END Procedure;
  7226. END Procedure;
  7227. END Object;
  7228. END Test.
  7229. positive: calling procedure in module
  7230. MODULE Test;
  7231. PROCEDURE Procedure; END Procedure;
  7232. BEGIN Procedure
  7233. END Test.
  7234. positive: calling procedure in module with parentheses
  7235. MODULE Test;
  7236. PROCEDURE Procedure; END Procedure;
  7237. BEGIN Procedure ()
  7238. END Test.
  7239. positive: calling procedure recursively
  7240. MODULE Test;
  7241. PROCEDURE Procedure;
  7242. BEGIN Procedure
  7243. END Procedure;
  7244. END Test.
  7245. positive: calling procedure recursively with parentheses
  7246. MODULE Test;
  7247. PROCEDURE Procedure;
  7248. BEGIN Procedure
  7249. END Procedure;
  7250. END Test.
  7251. positive: calling nested procedure in procedure
  7252. MODULE Test;
  7253. PROCEDURE Procedure;
  7254. PROCEDURE Nested; END Nested;
  7255. BEGIN Nested
  7256. END Procedure;
  7257. END Test.
  7258. positive: calling nested procedure in procedure with parentheses
  7259. MODULE Test;
  7260. PROCEDURE Procedure;
  7261. PROCEDURE Nested; END Nested;
  7262. BEGIN Nested ()
  7263. END Procedure;
  7264. END Test.
  7265. positive: calling nested procedure in procedure recursively
  7266. MODULE Test;
  7267. PROCEDURE Procedure;
  7268. PROCEDURE Nested;
  7269. BEGIN Nested
  7270. END Nested;
  7271. END Procedure;
  7272. END Test.
  7273. positive: calling nested procedure in procedure recursively with parentheses
  7274. MODULE Test;
  7275. PROCEDURE Procedure;
  7276. PROCEDURE Nested;
  7277. BEGIN Nested ()
  7278. END Nested;
  7279. END Procedure;
  7280. END Test.
  7281. positive: calling method in object
  7282. MODULE Test;
  7283. TYPE Object = OBJECT
  7284. PROCEDURE Procedure; END Procedure;
  7285. BEGIN Procedure
  7286. END Object;
  7287. END Test.
  7288. positive: calling method in object with parentheses
  7289. MODULE Test;
  7290. TYPE Object = OBJECT
  7291. PROCEDURE Procedure; END Procedure;
  7292. BEGIN Procedure
  7293. END Object;
  7294. END Test.
  7295. positive: calling method recursively
  7296. MODULE Test;
  7297. TYPE Object = OBJECT
  7298. PROCEDURE Procedure;
  7299. BEGIN Procedure
  7300. END Procedure;
  7301. END Object;
  7302. END Test.
  7303. positive: calling method recursively with parentheses
  7304. MODULE Test;
  7305. TYPE Object = OBJECT
  7306. PROCEDURE Procedure;
  7307. BEGIN Procedure ()
  7308. END Procedure;
  7309. END Object;
  7310. END Test.
  7311. positive: calling nested procedure in method
  7312. MODULE Test;
  7313. TYPE Object = OBJECT
  7314. PROCEDURE Procedure;
  7315. PROCEDURE Nested; END Nested;
  7316. BEGIN Nested
  7317. END Procedure;
  7318. END Object;
  7319. END Test.
  7320. positive: calling nested procedure in method with parentheses
  7321. MODULE Test;
  7322. TYPE Object = OBJECT
  7323. PROCEDURE Procedure;
  7324. PROCEDURE Nested; END Nested;
  7325. BEGIN Nested ()
  7326. END Procedure;
  7327. END Object;
  7328. END Test.
  7329. positive: calling nested procedure in method recursively
  7330. MODULE Test;
  7331. TYPE Object = OBJECT
  7332. PROCEDURE Procedure;
  7333. PROCEDURE Nested;
  7334. BEGIN Nested
  7335. END Nested;
  7336. END Procedure;
  7337. END Object;
  7338. END Test.
  7339. positive: calling nested procedure in method recursively with parentheses
  7340. MODULE Test;
  7341. TYPE Object = OBJECT
  7342. PROCEDURE Procedure;
  7343. PROCEDURE Nested;
  7344. BEGIN Nested ()
  7345. END Nested;
  7346. END Procedure;
  7347. END Object;
  7348. END Test.
  7349. positive: calling procedure variable in module
  7350. MODULE Test;
  7351. VAR procedure: PROCEDURE;
  7352. BEGIN procedure
  7353. END Test.
  7354. positive: calling procedure variable in module with parentheses
  7355. MODULE Test;
  7356. VAR procedure: PROCEDURE;
  7357. BEGIN procedure ()
  7358. END Test.
  7359. positive: calling procedure variable in procedure
  7360. MODULE Test;
  7361. VAR procedure: PROCEDURE;
  7362. PROCEDURE Procedure;
  7363. BEGIN procedure
  7364. END Procedure;
  7365. END Test.
  7366. positive: calling procedure variable in procedure with parentheses
  7367. MODULE Test;
  7368. VAR procedure: PROCEDURE;
  7369. PROCEDURE Procedure;
  7370. BEGIN procedure ()
  7371. END Procedure;
  7372. END Test.
  7373. positive: calling procedure variable in object
  7374. MODULE Test;
  7375. TYPE Object = OBJECT
  7376. VAR procedure: PROCEDURE;
  7377. BEGIN procedure
  7378. END Object;
  7379. END Test.
  7380. VAR procedure: PROCEDURE;
  7381. BEGIN procedure
  7382. positive: calling procedure variable in object with parentheses
  7383. MODULE Test;
  7384. TYPE Object = OBJECT
  7385. VAR procedure: PROCEDURE;
  7386. BEGIN procedure ()
  7387. END Object;
  7388. END Test.
  7389. VAR procedure: PROCEDURE;
  7390. BEGIN procedure
  7391. positive: calling procedure variable in method
  7392. MODULE Test;
  7393. TYPE Object = OBJECT
  7394. VAR procedure: PROCEDURE;
  7395. PROCEDURE Procedure;
  7396. BEGIN procedure
  7397. END Procedure;
  7398. END Object;
  7399. END Test.
  7400. positive: calling procedure variable in method with parentheses
  7401. MODULE Test;
  7402. TYPE Object = OBJECT
  7403. VAR procedure: PROCEDURE;
  7404. PROCEDURE Procedure;
  7405. BEGIN procedure ()
  7406. END Procedure;
  7407. END Object;
  7408. END Test.
  7409. positive: calling procedure with no parameters with no arguments
  7410. MODULE Test;
  7411. PROCEDURE Procedure; END Procedure;
  7412. BEGIN Procedure
  7413. END Test.
  7414. negative: calling procedure with one parameter with no arguments
  7415. MODULE Test;
  7416. PROCEDURE Procedure (one: INTEGER); END Procedure;
  7417. BEGIN Procedure
  7418. END Test.
  7419. negative: calling procedure with two parameter with no arguments
  7420. MODULE Test;
  7421. PROCEDURE Procedure (one, two: INTEGER); END Procedure;
  7422. BEGIN Procedure
  7423. END Test.
  7424. negative: calling procedure with no parameters with one argument
  7425. MODULE Test;
  7426. PROCEDURE Procedure; END Procedure;
  7427. BEGIN Procedure (0)
  7428. END Test.
  7429. positive: calling procedure with one parameter with one argument
  7430. MODULE Test;
  7431. PROCEDURE Procedure (one: INTEGER); END Procedure;
  7432. BEGIN Procedure (0)
  7433. END Test.
  7434. negative: calling procedure with two parameter with one argument
  7435. MODULE Test;
  7436. PROCEDURE Procedure (one, two: INTEGER); END Procedure;
  7437. BEGIN Procedure (0)
  7438. END Test.
  7439. negative: calling procedure with no parameters with two arguments
  7440. MODULE Test;
  7441. PROCEDURE Procedure; END Procedure;
  7442. BEGIN Procedure (1, 2)
  7443. END Test.
  7444. negative: calling procedure with one parameter with two arguments
  7445. MODULE Test;
  7446. PROCEDURE Procedure (one: INTEGER); END Procedure;
  7447. BEGIN Procedure (1, 2)
  7448. END Test.
  7449. positive: calling procedure with two parameter with two arguments
  7450. MODULE Test;
  7451. PROCEDURE Procedure (one, two: INTEGER); END Procedure;
  7452. BEGIN Procedure (1, 2)
  7453. END Test.
  7454. positive: calling procedure variable with no parameters with no arguments
  7455. MODULE Test;
  7456. VAR procedure: PROCEDURE;
  7457. BEGIN procedure
  7458. END Test.
  7459. negative: calling procedure variable with one parameter with no arguments
  7460. MODULE Test;
  7461. VAR procedure: PROCEDURE (one: INTEGER);
  7462. BEGIN procedure
  7463. END Test.
  7464. negative: calling procedure variable with two parameter with no arguments
  7465. MODULE Test;
  7466. VAR procedure: PROCEDURE (one, two: INTEGER);
  7467. BEGIN procedure
  7468. END Test.
  7469. negative: calling procedure variable with no parameters with one argument
  7470. MODULE Test;
  7471. VAR procedure: PROCEDURE;
  7472. BEGIN procedure (0)
  7473. END Test.
  7474. positive: calling procedure variable with one parameter with one argument
  7475. MODULE Test;
  7476. VAR procedure: PROCEDURE (one: INTEGER);
  7477. BEGIN procedure (0)
  7478. END Test.
  7479. negative: calling procedure variable with two parameter with one argument
  7480. MODULE Test;
  7481. VAR procedure: PROCEDURE (one, two: INTEGER);
  7482. BEGIN procedure (0)
  7483. END Test.
  7484. negative: calling procedure variable with no parameters with two arguments
  7485. MODULE Test;
  7486. VAR procedure: PROCEDURE;
  7487. BEGIN procedure (1, 2)
  7488. END Test.
  7489. negative: calling procedure variable with one parameter with two arguments
  7490. MODULE Test;
  7491. VAR procedure: PROCEDURE (one: INTEGER);
  7492. BEGIN procedure (1, 2)
  7493. END Test.
  7494. positive: calling procedure variable with two parameter with two arguments
  7495. MODULE Test;
  7496. VAR procedure: PROCEDURE (one, two: INTEGER);
  7497. BEGIN procedure (1, 2)
  7498. END Test.
  7499. # procedure return types
  7500. positive: procedure returning basic character type
  7501. MODULE Test;
  7502. PROCEDURE Procedure (): CHAR;
  7503. END Procedure;
  7504. END Test.
  7505. positive: procedure returning basic boolean type
  7506. MODULE Test;
  7507. PROCEDURE Procedure (): BOOLEAN;
  7508. END Procedure;
  7509. END Test.
  7510. positive: procedure returning basic short integer type
  7511. MODULE Test;
  7512. PROCEDURE Procedure (): SHORTINT;
  7513. END Procedure;
  7514. END Test.
  7515. positive: procedure returning basic integer type
  7516. MODULE Test;
  7517. PROCEDURE Procedure (): INTEGER;
  7518. END Procedure;
  7519. END Test.
  7520. positive: procedure returning basic long integer type
  7521. MODULE Test;
  7522. PROCEDURE Procedure (): LONGINT;
  7523. END Procedure;
  7524. END Test.
  7525. positive: procedure returning basic huge integer type
  7526. MODULE Test;
  7527. PROCEDURE Procedure (): HUGEINT;
  7528. END Procedure;
  7529. END Test.
  7530. positive: procedure returning basic real type
  7531. MODULE Test;
  7532. PROCEDURE Procedure (): REAL;
  7533. END Procedure;
  7534. END Test.
  7535. positive: procedure returning basic long real type
  7536. MODULE Test;
  7537. PROCEDURE Procedure (): LONGREAL;
  7538. END Procedure;
  7539. END Test.
  7540. positive: procedure returning basic set type
  7541. MODULE Test;
  7542. PROCEDURE Procedure (): SET;
  7543. END Procedure;
  7544. END Test.
  7545. positive: procedure returning record type
  7546. MODULE Test;
  7547. TYPE Record = RECORD END;
  7548. PROCEDURE Procedure (): Record;
  7549. END Procedure;
  7550. END Test.
  7551. positive: procedure returning anonymous record type
  7552. MODULE Test;
  7553. PROCEDURE Procedure (): RECORD END;
  7554. END Procedure;
  7555. END Test.
  7556. positive: procedure returning array type
  7557. MODULE Test;
  7558. TYPE Array = ARRAY 10 OF RECORD END;
  7559. PROCEDURE Procedure (): Array;
  7560. END Procedure;
  7561. END Test.
  7562. positive: procedure returning anonymous array type
  7563. MODULE Test;
  7564. PROCEDURE Procedure (): ARRAY 10 OF RECORD END;
  7565. END Procedure;
  7566. END Test.
  7567. negative: procedure returning open array type
  7568. MODULE Test;
  7569. TYPE Array = ARRAY OF RECORD END;
  7570. PROCEDURE Procedure (): Array;
  7571. END Procedure;
  7572. END Test.
  7573. negative: procedure returning anonymous open array type
  7574. MODULE Test;
  7575. PROCEDURE Procedure (): ARRAY OF RECORD END;
  7576. END Procedure;
  7577. END Test.
  7578. positive: procedure returning object type
  7579. MODULE Test;
  7580. TYPE Object = OBJECT;
  7581. PROCEDURE Procedure (): Object;
  7582. END Procedure;
  7583. END Test.
  7584. positive: procedure returning anonymous object type
  7585. MODULE Test;
  7586. PROCEDURE Procedure (): OBJECT;
  7587. END Procedure;
  7588. END Test.
  7589. positive: procedure returning pointer type
  7590. MODULE Test;
  7591. TYPE Pointer = POINTER TO RECORD END;
  7592. PROCEDURE Procedure (): Pointer;
  7593. END Procedure;
  7594. END Test.
  7595. positive: procedure returning anonymous pointer type
  7596. MODULE Test;
  7597. PROCEDURE Procedure (): POINTER TO RECORD END;
  7598. END Procedure;
  7599. END Test.
  7600. positive: procedure returning procedure type
  7601. MODULE Test;
  7602. TYPE Proc = PROCEDURE;
  7603. PROCEDURE Procedure (): Proc;
  7604. END Procedure;
  7605. END Test.
  7606. positive: procedure returning anonymous procedure type
  7607. MODULE Test;
  7608. PROCEDURE Procedure (): PROCEDURE;
  7609. END Procedure;
  7610. END Test.
  7611. positive: procedure returning anonymous procedure returning anonymous procedure
  7612. MODULE Test;
  7613. PROCEDURE Procedure (): PROCEDURE (): PROCEDURE;
  7614. END Procedure;
  7615. END Test.
  7616. negative: procedure returning itself
  7617. MODULE Test;
  7618. PROCEDURE Procedure (): Procedure;
  7619. END Procedure;
  7620. END Test.
  7621. negative: procedure with returning local type
  7622. MODULE Test;
  7623. PROCEDURE Procedure (): Type;
  7624. TYPE Type = RECORD END;
  7625. END Procedure;
  7626. END Test.
  7627. # procedure parameters
  7628. negative: parameter marked as exported
  7629. MODULE Test;
  7630. PROCEDURE Procedure (parameter*: OBJECT);
  7631. END Procedure;
  7632. END Test.
  7633. negative: parameter marked as read-only
  7634. MODULE Test;
  7635. PROCEDURE Procedure (parameter*: OBJECT);
  7636. END Procedure;
  7637. END Test.
  7638. negative: duplicated parameters
  7639. MODULE Test;
  7640. PROCEDURE Procedure (parameter: LONGINT; parameter: LONGINT);
  7641. END Procedure;
  7642. END Test.
  7643. negative: duplicated parameters in same declaration
  7644. MODULE Test;
  7645. PROCEDURE Procedure (parameter, parameter: LONGINT);
  7646. END Procedure;
  7647. END Test.
  7648. positive: procedure with parameter of same type
  7649. MODULE Test;
  7650. TYPE Proc = PROCEDURE;
  7651. PROCEDURE Procedure (procedure: Proc);
  7652. END Procedure;
  7653. END Test.
  7654. negative: procedure with multiple variable parameter
  7655. MODULE Test;
  7656. PROCEDURE Procedure (VAR VAR parameter: SET);
  7657. END Procedure;
  7658. END Test.
  7659. negative: procedure with multiple constant parameter
  7660. MODULE Test;
  7661. PROCEDURE Procedure (CONST CONST parameter: SET);
  7662. END Procedure;
  7663. END Test.
  7664. negative: procedure with variable and constant parameter
  7665. MODULE Test;
  7666. PROCEDURE Procedure (VAR CONST parameter: SET);
  7667. END Procedure;
  7668. END Test.
  7669. negative: procedure with constant and variable parameter
  7670. MODULE Test;
  7671. PROCEDURE Procedure (VAR CONST parameter: SET);
  7672. END Procedure;
  7673. END Test.
  7674. negative: procedure with parameter marked as exported
  7675. MODULE Test;
  7676. PROCEDURE Procedure (parameter*: CHAR);
  7677. END Procedure;
  7678. END Test.
  7679. negative: procedure with parameter marked as read-only
  7680. MODULE Test;
  7681. PROCEDURE Procedure (parameter-: CHAR);
  7682. END Procedure;
  7683. END Test.
  7684. positive: procedure with a parameter of basic character type
  7685. MODULE Test;
  7686. PROCEDURE Procedure (parameter: CHAR);
  7687. END Procedure;
  7688. END Test.
  7689. positive: procedure with parameters of basic character type
  7690. MODULE Test;
  7691. PROCEDURE Procedure (a, b, c: CHAR);
  7692. END Procedure;
  7693. END Test.
  7694. positive: procedure with a parameter of variable character type
  7695. MODULE Test;
  7696. PROCEDURE Procedure (VAR parameter: CHAR);
  7697. END Procedure;
  7698. END Test.
  7699. positive: procedure with parameters of variable character type
  7700. MODULE Test;
  7701. PROCEDURE Procedure (VAR a, b, c: CHAR);
  7702. END Procedure;
  7703. END Test.
  7704. positive: procedure with a parameter of constant character type
  7705. MODULE Test;
  7706. PROCEDURE Procedure (CONST parameter: CHAR);
  7707. END Procedure;
  7708. END Test.
  7709. positive: procedure with parameters of constant character type
  7710. MODULE Test;
  7711. PROCEDURE Procedure (CONST a, b, c: CHAR);
  7712. END Procedure;
  7713. END Test.
  7714. positive: procedure with intermixed parameters of character type
  7715. MODULE Test;
  7716. PROCEDURE Procedure (a: CHAR; VAR b: CHAR; CONST c: CHAR);
  7717. END Procedure;
  7718. END Test.
  7719. positive: procedure with a parameter of basic boolean type
  7720. MODULE Test;
  7721. PROCEDURE Procedure (parameter: BOOLEAN);
  7722. END Procedure;
  7723. END Test.
  7724. positive: procedure with parameters of basic boolean type
  7725. MODULE Test;
  7726. PROCEDURE Procedure (a, b, c: BOOLEAN);
  7727. END Procedure;
  7728. END Test.
  7729. positive: procedure with a parameter of variable boolean type
  7730. MODULE Test;
  7731. PROCEDURE Procedure (VAR parameter: BOOLEAN);
  7732. END Procedure;
  7733. END Test.
  7734. positive: procedure with parameters of variable boolean type
  7735. MODULE Test;
  7736. PROCEDURE Procedure (VAR a, b, c: BOOLEAN);
  7737. END Procedure;
  7738. END Test.
  7739. positive: procedure with a parameter of constant boolean type
  7740. MODULE Test;
  7741. PROCEDURE Procedure (CONST parameter: BOOLEAN);
  7742. END Procedure;
  7743. END Test.
  7744. positive: procedure with parameters of constant boolean type
  7745. MODULE Test;
  7746. PROCEDURE Procedure (CONST a, b, c: BOOLEAN);
  7747. END Procedure;
  7748. END Test.
  7749. positive: procedure with intermixed parameters of boolean type
  7750. MODULE Test;
  7751. PROCEDURE Procedure (a: BOOLEAN; VAR b: BOOLEAN; CONST c: BOOLEAN);
  7752. END Procedure;
  7753. END Test.
  7754. positive: procedure with a parameter of basic short integer type
  7755. MODULE Test;
  7756. PROCEDURE Procedure (parameter: SHORTINT);
  7757. END Procedure;
  7758. END Test.
  7759. positive: procedure with parameters of basic short integer type
  7760. MODULE Test;
  7761. PROCEDURE Procedure (a, b, c: SHORTINT);
  7762. END Procedure;
  7763. END Test.
  7764. positive: procedure with a parameter of variable short integer type
  7765. MODULE Test;
  7766. PROCEDURE Procedure (VAR parameter: SHORTINT);
  7767. END Procedure;
  7768. END Test.
  7769. positive: procedure with parameters of variable short integer type
  7770. MODULE Test;
  7771. PROCEDURE Procedure (VAR a, b, c: SHORTINT);
  7772. END Procedure;
  7773. END Test.
  7774. positive: procedure with a parameter of constant short integer type
  7775. MODULE Test;
  7776. PROCEDURE Procedure (CONST parameter: SHORTINT);
  7777. END Procedure;
  7778. END Test.
  7779. positive: procedure with parameters of constant short integer type
  7780. MODULE Test;
  7781. PROCEDURE Procedure (CONST a, b, c: SHORTINT);
  7782. END Procedure;
  7783. END Test.
  7784. positive: procedure with intermixed parameters of short integer type
  7785. MODULE Test;
  7786. PROCEDURE Procedure (a: SHORTINT; VAR b: SHORTINT; CONST c: SHORTINT);
  7787. END Procedure;
  7788. END Test.
  7789. positive: procedure with a parameter of basic integer type
  7790. MODULE Test;
  7791. PROCEDURE Procedure (parameter: INTEGER);
  7792. END Procedure;
  7793. END Test.
  7794. positive: procedure with parameters of basic integer type
  7795. MODULE Test;
  7796. PROCEDURE Procedure (a, b, c: INTEGER);
  7797. END Procedure;
  7798. END Test.
  7799. positive: procedure with a parameter of variable integer type
  7800. MODULE Test;
  7801. PROCEDURE Procedure (VAR parameter: INTEGER);
  7802. END Procedure;
  7803. END Test.
  7804. positive: procedure with parameters of variable integer type
  7805. MODULE Test;
  7806. PROCEDURE Procedure (VAR a, b, c: INTEGER);
  7807. END Procedure;
  7808. END Test.
  7809. positive: procedure with a parameter of constant integer type
  7810. MODULE Test;
  7811. PROCEDURE Procedure (CONST parameter: INTEGER);
  7812. END Procedure;
  7813. END Test.
  7814. positive: procedure with parameters of constant integer type
  7815. MODULE Test;
  7816. PROCEDURE Procedure (CONST a, b, c: INTEGER);
  7817. END Procedure;
  7818. END Test.
  7819. positive: procedure with intermixed parameters of integer type
  7820. MODULE Test;
  7821. PROCEDURE Procedure (a: INTEGER; VAR b: INTEGER; CONST c: INTEGER);
  7822. END Procedure;
  7823. END Test.
  7824. positive: procedure with a parameter of basic long integer type
  7825. MODULE Test;
  7826. PROCEDURE Procedure (parameter: LONGINT);
  7827. END Procedure;
  7828. END Test.
  7829. positive: procedure with parameters of basic long integer type
  7830. MODULE Test;
  7831. PROCEDURE Procedure (a, b, c: LONGINT);
  7832. END Procedure;
  7833. END Test.
  7834. positive: procedure with a parameter of variable long integer type
  7835. MODULE Test;
  7836. PROCEDURE Procedure (VAR parameter: LONGINT);
  7837. END Procedure;
  7838. END Test.
  7839. positive: procedure with parameters of variable long integer type
  7840. MODULE Test;
  7841. PROCEDURE Procedure (VAR a, b, c: LONGINT);
  7842. END Procedure;
  7843. END Test.
  7844. positive: procedure with a parameter of constant long integer type
  7845. MODULE Test;
  7846. PROCEDURE Procedure (CONST parameter: LONGINT);
  7847. END Procedure;
  7848. END Test.
  7849. positive: procedure with parameters of constant long integer type
  7850. MODULE Test;
  7851. PROCEDURE Procedure (CONST a, b, c: LONGINT);
  7852. END Procedure;
  7853. END Test.
  7854. positive: procedure with intermixed parameters of long integer type
  7855. MODULE Test;
  7856. PROCEDURE Procedure (a: LONGINT; VAR b: LONGINT; CONST c: LONGINT);
  7857. END Procedure;
  7858. END Test.
  7859. positive: procedure with a parameter of basic huge integer type
  7860. MODULE Test;
  7861. PROCEDURE Procedure (parameter: HUGEINT);
  7862. END Procedure;
  7863. END Test.
  7864. positive: procedure with parameters of basic huge integer type
  7865. MODULE Test;
  7866. PROCEDURE Procedure (a, b, c: HUGEINT);
  7867. END Procedure;
  7868. END Test.
  7869. positive: procedure with a parameter of variable huge integer type
  7870. MODULE Test;
  7871. PROCEDURE Procedure (VAR parameter: HUGEINT);
  7872. END Procedure;
  7873. END Test.
  7874. positive: procedure with parameters of variable huge integer type
  7875. MODULE Test;
  7876. PROCEDURE Procedure (VAR a, b, c: HUGEINT);
  7877. END Procedure;
  7878. END Test.
  7879. positive: procedure with a parameter of constant huge integer type
  7880. MODULE Test;
  7881. PROCEDURE Procedure (CONST parameter: HUGEINT);
  7882. END Procedure;
  7883. END Test.
  7884. positive: procedure with parameters of constant huge integer type
  7885. MODULE Test;
  7886. PROCEDURE Procedure (CONST a, b, c: HUGEINT);
  7887. END Procedure;
  7888. END Test.
  7889. positive: procedure with intermixed parameters of huge integer type
  7890. MODULE Test;
  7891. PROCEDURE Procedure (a: HUGEINT; VAR b: HUGEINT; CONST c: HUGEINT);
  7892. END Procedure;
  7893. END Test.
  7894. positive: procedure with a parameter of basic real type
  7895. MODULE Test;
  7896. PROCEDURE Procedure (parameter: REAL);
  7897. END Procedure;
  7898. END Test.
  7899. positive: procedure with parameters of basic real type
  7900. MODULE Test;
  7901. PROCEDURE Procedure (a, b, c: REAL);
  7902. END Procedure;
  7903. END Test.
  7904. positive: procedure with a parameter of variable real type
  7905. MODULE Test;
  7906. PROCEDURE Procedure (VAR parameter: REAL);
  7907. END Procedure;
  7908. END Test.
  7909. positive: procedure with parameters of variable real type
  7910. MODULE Test;
  7911. PROCEDURE Procedure (VAR a, b, c: REAL);
  7912. END Procedure;
  7913. END Test.
  7914. positive: procedure with a parameter of constant real type
  7915. MODULE Test;
  7916. PROCEDURE Procedure (CONST parameter: REAL);
  7917. END Procedure;
  7918. END Test.
  7919. positive: procedure with parameters of constant real type
  7920. MODULE Test;
  7921. PROCEDURE Procedure (CONST a, b, c: REAL);
  7922. END Procedure;
  7923. END Test.
  7924. positive: procedure with intermixed parameters of real type
  7925. MODULE Test;
  7926. PROCEDURE Procedure (a: REAL; VAR b: REAL; CONST c: REAL);
  7927. END Procedure;
  7928. END Test.
  7929. positive: procedure with a parameter of basic long real type
  7930. MODULE Test;
  7931. PROCEDURE Procedure (parameter: LONGREAL);
  7932. END Procedure;
  7933. END Test.
  7934. positive: procedure with parameters of basic long real type
  7935. MODULE Test;
  7936. PROCEDURE Procedure (a, b, c: LONGREAL);
  7937. END Procedure;
  7938. END Test.
  7939. positive: procedure with a parameter of variable long real type
  7940. MODULE Test;
  7941. PROCEDURE Procedure (VAR parameter: LONGREAL);
  7942. END Procedure;
  7943. END Test.
  7944. positive: procedure with parameters of variable long real type
  7945. MODULE Test;
  7946. PROCEDURE Procedure (VAR a, b, c: LONGREAL);
  7947. END Procedure;
  7948. END Test.
  7949. positive: procedure with a parameter of constant long real type
  7950. MODULE Test;
  7951. PROCEDURE Procedure (CONST parameter: LONGREAL);
  7952. END Procedure;
  7953. END Test.
  7954. positive: procedure with parameters of constant long real type
  7955. MODULE Test;
  7956. PROCEDURE Procedure (CONST a, b, c: LONGREAL);
  7957. END Procedure;
  7958. END Test.
  7959. positive: procedure with intermixed parameters of long real type
  7960. MODULE Test;
  7961. PROCEDURE Procedure (a: LONGREAL; VAR b: LONGREAL; CONST c: LONGREAL);
  7962. END Procedure;
  7963. END Test.
  7964. positive: procedure with a parameter of basic set type
  7965. MODULE Test;
  7966. PROCEDURE Procedure (parameter: SET);
  7967. END Procedure;
  7968. END Test.
  7969. positive: procedure with parameters of basic set type
  7970. MODULE Test;
  7971. PROCEDURE Procedure (a, b, c: SET);
  7972. END Procedure;
  7973. END Test.
  7974. positive: procedure with a parameter of variable set type
  7975. MODULE Test;
  7976. PROCEDURE Procedure (VAR parameter: SET);
  7977. END Procedure;
  7978. END Test.
  7979. positive: procedure with parameters of variable set type
  7980. MODULE Test;
  7981. PROCEDURE Procedure (VAR a, b, c: SET);
  7982. END Procedure;
  7983. END Test.
  7984. positive: procedure with a parameter of constant set type
  7985. MODULE Test;
  7986. PROCEDURE Procedure (CONST parameter: SET);
  7987. END Procedure;
  7988. END Test.
  7989. positive: procedure with parameters of constant set type
  7990. MODULE Test;
  7991. PROCEDURE Procedure (CONST a, b, c: SET);
  7992. END Procedure;
  7993. END Test.
  7994. positive: procedure with intermixed parameters of set type
  7995. MODULE Test;
  7996. PROCEDURE Procedure (a: SET; VAR b: SET; CONST c: SET);
  7997. END Procedure;
  7998. END Test.
  7999. positive: procedure with a parameter of record type
  8000. MODULE Test;
  8001. TYPE Record = RECORD END;
  8002. PROCEDURE Procedure (parameter: Record);
  8003. END Procedure;
  8004. END Test.
  8005. positive: procedure with parameters of record type
  8006. MODULE Test;
  8007. TYPE Record = RECORD END;
  8008. PROCEDURE Procedure (a, b, c: Record);
  8009. END Procedure;
  8010. END Test.
  8011. positive: procedure with a parameter of variable record type
  8012. MODULE Test;
  8013. TYPE Record = RECORD END;
  8014. PROCEDURE Procedure (VAR parameter: Record);
  8015. END Procedure;
  8016. END Test.
  8017. positive: procedure with parameters of variable record type
  8018. MODULE Test;
  8019. TYPE Record = RECORD END;
  8020. PROCEDURE Procedure (VAR a, b, c: Record);
  8021. END Procedure;
  8022. END Test.
  8023. positive: procedure with a parameter of constant record type
  8024. MODULE Test;
  8025. TYPE Record = RECORD END;
  8026. PROCEDURE Procedure (CONST parameter: Record);
  8027. END Procedure;
  8028. END Test.
  8029. positive: procedure with parameters of constant record type
  8030. MODULE Test;
  8031. TYPE Record = RECORD END;
  8032. PROCEDURE Procedure (CONST a, b, c: Record);
  8033. END Procedure;
  8034. END Test.
  8035. positive: procedure with intermixed parameters of record type
  8036. MODULE Test;
  8037. TYPE Record = RECORD END;
  8038. PROCEDURE Procedure (a: Record; VAR b: Record; CONST c: Record);
  8039. END Procedure;
  8040. END Test.
  8041. positive: procedure with a parameter of anonymous record type
  8042. MODULE Test;
  8043. TYPE Record = RECORD END;
  8044. PROCEDURE Procedure (parameter: RECORD END);
  8045. END Procedure;
  8046. END Test.
  8047. positive: procedure with parameters of anonymous record type
  8048. MODULE Test;
  8049. PROCEDURE Procedure (a, b, c: RECORD END);
  8050. END Procedure;
  8051. END Test.
  8052. positive: procedure with a parameter of variable anonymous record type
  8053. MODULE Test;
  8054. PROCEDURE Procedure (VAR parameter: RECORD END);
  8055. END Procedure;
  8056. END Test.
  8057. positive: procedure with parameters of variable anonymous record type
  8058. MODULE Test;
  8059. PROCEDURE Procedure (VAR a, b, c: RECORD END);
  8060. END Procedure;
  8061. END Test.
  8062. positive: procedure with a parameter of constant anonymous record type
  8063. MODULE Test;
  8064. PROCEDURE Procedure (CONST parameter: RECORD END);
  8065. END Procedure;
  8066. END Test.
  8067. positive: procedure with parameters of constant anonymous record type
  8068. MODULE Test;
  8069. PROCEDURE Procedure (CONST a, b, c: RECORD END);
  8070. END Procedure;
  8071. END Test.
  8072. positive: procedure with intermixed parameters of anonymous record type
  8073. MODULE Test;
  8074. PROCEDURE Procedure (a: RECORD END; VAR b: RECORD END; CONST c: RECORD END);
  8075. END Procedure;
  8076. END Test.
  8077. positive: procedure with a parameter of array type
  8078. MODULE Test;
  8079. TYPE Array = ARRAY 10 OF RECORD END;
  8080. PROCEDURE Procedure (parameter: Array);
  8081. END Procedure;
  8082. END Test.
  8083. positive: procedure with parameters of array type
  8084. MODULE Test;
  8085. TYPE Array = ARRAY 10 OF RECORD END;
  8086. PROCEDURE Procedure (a, b, c: Array);
  8087. END Procedure;
  8088. END Test.
  8089. positive: procedure with a parameter of variable array type
  8090. MODULE Test;
  8091. TYPE Array = ARRAY 10 OF RECORD END;
  8092. PROCEDURE Procedure (VAR parameter: Array);
  8093. END Procedure;
  8094. END Test.
  8095. positive: procedure with parameters of variable array type
  8096. MODULE Test;
  8097. TYPE Array = ARRAY 10 OF RECORD END;
  8098. PROCEDURE Procedure (VAR a, b, c: Array);
  8099. END Procedure;
  8100. END Test.
  8101. positive: procedure with a parameter of constant array type
  8102. MODULE Test;
  8103. TYPE Array = ARRAY 10 OF RECORD END;
  8104. PROCEDURE Procedure (CONST parameter: Array);
  8105. END Procedure;
  8106. END Test.
  8107. positive: procedure with parameters of constant array type
  8108. MODULE Test;
  8109. TYPE Array = ARRAY 10 OF RECORD END;
  8110. PROCEDURE Procedure (CONST a, b, c: Array);
  8111. END Procedure;
  8112. END Test.
  8113. positive: procedure with intermixed parameters of array type
  8114. MODULE Test;
  8115. TYPE Array = ARRAY 10 OF RECORD END;
  8116. PROCEDURE Procedure (a: Array; VAR b: Array; CONST c: Array);
  8117. END Procedure;
  8118. END Test.
  8119. positive: procedure with a parameter of anonymous array type
  8120. MODULE Test;
  8121. PROCEDURE Procedure (parameter: ARRAY 10 OF RECORD END);
  8122. END Procedure;
  8123. END Test.
  8124. positive: procedure with parameters of anonymous array type
  8125. MODULE Test;
  8126. PROCEDURE Procedure (a, b, c: ARRAY 10 OF RECORD END);
  8127. END Procedure;
  8128. END Test.
  8129. positive: procedure with a parameter of variable anonymous array type
  8130. MODULE Test;
  8131. PROCEDURE Procedure (VAR parameter: ARRAY 10 OF RECORD END);
  8132. END Procedure;
  8133. END Test.
  8134. positive: procedure with parameters of variable anonymous array type
  8135. MODULE Test;
  8136. PROCEDURE Procedure (VAR a, b, c: ARRAY 10 OF RECORD END);
  8137. END Procedure;
  8138. END Test.
  8139. positive: procedure with a parameter of constant anonymous array type
  8140. MODULE Test;
  8141. PROCEDURE Procedure (CONST parameter: ARRAY 10 OF RECORD END);
  8142. END Procedure;
  8143. END Test.
  8144. positive: procedure with parameters of constant anonymous array type
  8145. MODULE Test;
  8146. PROCEDURE Procedure (CONST a, b, c: ARRAY 10 OF RECORD END);
  8147. END Procedure;
  8148. END Test.
  8149. positive: procedure with intermixed parameters of anonymous array type
  8150. MODULE Test;
  8151. PROCEDURE Procedure (a: ARRAY 10 OF RECORD END; VAR b: ARRAY 10 OF RECORD END; CONST c: ARRAY 10 OF RECORD END);
  8152. END Procedure;
  8153. END Test.
  8154. positive: procedure with a parameter of open array type
  8155. MODULE Test;
  8156. TYPE Array = ARRAY OF RECORD END;
  8157. PROCEDURE Procedure (parameter: Array);
  8158. END Procedure;
  8159. END Test.
  8160. positive: procedure with parameters of open array type
  8161. MODULE Test;
  8162. TYPE Array = ARRAY OF RECORD END;
  8163. PROCEDURE Procedure (a, b, c: Array);
  8164. END Procedure;
  8165. END Test.
  8166. positive: procedure with a parameter of variable open array type
  8167. MODULE Test;
  8168. TYPE Array = ARRAY OF RECORD END;
  8169. PROCEDURE Procedure (VAR parameter: Array);
  8170. END Procedure;
  8171. END Test.
  8172. positive: procedure with parameters of variable open array type
  8173. MODULE Test;
  8174. TYPE Array = ARRAY OF RECORD END;
  8175. PROCEDURE Procedure (VAR a, b, c: Array);
  8176. END Procedure;
  8177. END Test.
  8178. positive: procedure with a parameter of constant open array type
  8179. MODULE Test;
  8180. TYPE Array = ARRAY OF RECORD END;
  8181. PROCEDURE Procedure (CONST parameter: Array);
  8182. END Procedure;
  8183. END Test.
  8184. positive: procedure with parameters of constant open array type
  8185. MODULE Test;
  8186. TYPE Array = ARRAY OF RECORD END;
  8187. PROCEDURE Procedure (CONST a, b, c: Array);
  8188. END Procedure;
  8189. END Test.
  8190. positive: procedure with intermixed parameters of open array type
  8191. MODULE Test;
  8192. TYPE Array = ARRAY OF RECORD END;
  8193. PROCEDURE Procedure (a: Array; VAR b: Array; CONST c: Array);
  8194. END Procedure;
  8195. END Test.
  8196. positive: procedure with a parameter of anonymous open array type
  8197. MODULE Test;
  8198. PROCEDURE Procedure (parameter: ARRAY OF RECORD END);
  8199. END Procedure;
  8200. END Test.
  8201. positive: procedure with parameters of anonymous open array type
  8202. MODULE Test;
  8203. PROCEDURE Procedure (a, b, c: ARRAY OF RECORD END);
  8204. END Procedure;
  8205. END Test.
  8206. positive: procedure with a parameter of variable anonymous open array type
  8207. MODULE Test;
  8208. PROCEDURE Procedure (VAR parameter: ARRAY OF RECORD END);
  8209. END Procedure;
  8210. END Test.
  8211. positive: procedure with parameters of variable anonymous open array type
  8212. MODULE Test;
  8213. PROCEDURE Procedure (VAR a, b, c: ARRAY OF RECORD END);
  8214. END Procedure;
  8215. END Test.
  8216. positive: procedure with a parameter of constant anonymous open array type
  8217. MODULE Test;
  8218. PROCEDURE Procedure (CONST parameter: ARRAY OF RECORD END);
  8219. END Procedure;
  8220. END Test.
  8221. positive: procedure with parameters of constant anonymous open array type
  8222. MODULE Test;
  8223. PROCEDURE Procedure (CONST a, b, c: ARRAY OF RECORD END);
  8224. END Procedure;
  8225. END Test.
  8226. positive: procedure with intermixed parameters of anonymous open array type
  8227. MODULE Test;
  8228. PROCEDURE Procedure (a: ARRAY OF RECORD END; VAR b: ARRAY OF RECORD END; CONST c: ARRAY OF RECORD END);
  8229. END Procedure;
  8230. END Test.
  8231. positive: procedure with a parameter of object type
  8232. MODULE Test;
  8233. TYPE Object = OBJECT END Object;
  8234. PROCEDURE Procedure (parameter: Object);
  8235. END Procedure;
  8236. END Test.
  8237. positive: procedure with a parameter of plain object type
  8238. MODULE Test;
  8239. TYPE Object = OBJECT;
  8240. PROCEDURE Procedure (parameter: Object);
  8241. END Procedure;
  8242. END Test.
  8243. positive: procedure with parameters of object type
  8244. MODULE Test;
  8245. TYPE Object = OBJECT END Object;
  8246. PROCEDURE Procedure (a, b, c: Object);
  8247. END Procedure;
  8248. END Test.
  8249. positive: procedure with a parameter of variable object type
  8250. MODULE Test;
  8251. TYPE Object = OBJECT END Object;
  8252. PROCEDURE Procedure (VAR parameter: Object);
  8253. END Procedure;
  8254. END Test.
  8255. positive: procedure with parameters of variable object type
  8256. MODULE Test;
  8257. TYPE Object = OBJECT END Object;
  8258. PROCEDURE Procedure (VAR a, b, c: Object);
  8259. END Procedure;
  8260. END Test.
  8261. positive: procedure with a parameter of constant object type
  8262. MODULE Test;
  8263. TYPE Object = OBJECT END Object;
  8264. PROCEDURE Procedure (CONST parameter: Object);
  8265. END Procedure;
  8266. END Test.
  8267. positive: procedure with parameters of constant object type
  8268. MODULE Test;
  8269. TYPE Object = OBJECT END Object;
  8270. PROCEDURE Procedure (CONST a, b, c: Object);
  8271. END Procedure;
  8272. END Test.
  8273. positive: procedure with intermixed parameters of object type
  8274. MODULE Test;
  8275. TYPE Object = OBJECT END Object;
  8276. PROCEDURE Procedure (a: Object; VAR b: Object; CONST c: Object);
  8277. END Procedure;
  8278. END Test.
  8279. positive: procedure with intermixed parameters of plain object type
  8280. MODULE Test;
  8281. TYPE Object = OBJECT;
  8282. PROCEDURE Procedure (a: Object; VAR b: Object; CONST c: Object);
  8283. END Procedure;
  8284. END Test.
  8285. positive: procedure with a parameter of anonymous object type
  8286. MODULE Test;
  8287. PROCEDURE Procedure (parameter: OBJECT END);
  8288. END Procedure;
  8289. END Test.
  8290. positive: procedure with a parameter of anonymous plain object type
  8291. MODULE Test;
  8292. PROCEDURE Procedure (parameter: OBJECT);
  8293. END Procedure;
  8294. END Test.
  8295. positive: procedure with parameters of anonymous object type
  8296. MODULE Test;
  8297. PROCEDURE Procedure (a, b, c: OBJECT END);
  8298. END Procedure;
  8299. END Test.
  8300. positive: procedure with a parameter of variable anonymous object type
  8301. MODULE Test;
  8302. PROCEDURE Procedure (VAR parameter: OBJECT END);
  8303. END Procedure;
  8304. END Test.
  8305. positive: procedure with parameters of variable anonymous object type
  8306. MODULE Test;
  8307. PROCEDURE Procedure (VAR a, b, c: OBJECT END);
  8308. END Procedure;
  8309. END Test.
  8310. positive: procedure with a parameter of constant anonymous object type
  8311. MODULE Test;
  8312. PROCEDURE Procedure (CONST parameter: OBJECT END);
  8313. END Procedure;
  8314. END Test.
  8315. positive: procedure with parameters of constant anonymous object type
  8316. MODULE Test;
  8317. PROCEDURE Procedure (CONST a, b, c: OBJECT END);
  8318. END Procedure;
  8319. END Test.
  8320. positive: procedure with intermixed parameters of anonymous object type
  8321. MODULE Test;
  8322. PROCEDURE Procedure (a: OBJECT END; VAR b: OBJECT END; CONST c: OBJECT END);
  8323. END Procedure;
  8324. END Test.
  8325. positive: procedure with intermixed parameters of anonymous plain object type
  8326. MODULE Test;
  8327. PROCEDURE Procedure (a: OBJECT; VAR b: OBJECT; CONST c: OBJECT);
  8328. END Procedure;
  8329. END Test.
  8330. positive: procedure with a parameter of pointer type
  8331. MODULE Test;
  8332. TYPE Pointer = POINTER TO RECORD END;
  8333. PROCEDURE Procedure (parameter: Pointer);
  8334. END Procedure;
  8335. END Test.
  8336. positive: procedure with parameters of pointer type
  8337. MODULE Test;
  8338. TYPE Pointer = POINTER TO RECORD END;
  8339. PROCEDURE Procedure (a, b, c: Pointer);
  8340. END Procedure;
  8341. END Test.
  8342. positive: procedure with a parameter of variable pointer type
  8343. MODULE Test;
  8344. TYPE Pointer = POINTER TO RECORD END;
  8345. PROCEDURE Procedure (VAR parameter: Pointer);
  8346. END Procedure;
  8347. END Test.
  8348. positive: procedure with parameters of variable pointer type
  8349. MODULE Test;
  8350. TYPE Pointer = POINTER TO RECORD END;
  8351. PROCEDURE Procedure (VAR a, b, c: Pointer);
  8352. END Procedure;
  8353. END Test.
  8354. positive: procedure with a parameter of constant pointer type
  8355. MODULE Test;
  8356. TYPE Pointer = POINTER TO RECORD END;
  8357. PROCEDURE Procedure (CONST parameter: Pointer);
  8358. END Procedure;
  8359. END Test.
  8360. positive: procedure with parameters of constant pointer type
  8361. MODULE Test;
  8362. TYPE Pointer = POINTER TO RECORD END;
  8363. PROCEDURE Procedure (CONST a, b, c: Pointer);
  8364. END Procedure;
  8365. END Test.
  8366. positive: procedure with intermixed parameters of pointer type
  8367. MODULE Test;
  8368. TYPE Pointer = POINTER TO RECORD END;
  8369. PROCEDURE Procedure (a: Pointer; VAR b: Pointer; CONST c: Pointer);
  8370. END Procedure;
  8371. END Test.
  8372. positive: procedure with a parameter of anonymous pointer type
  8373. MODULE Test;
  8374. PROCEDURE Procedure (parameter: POINTER TO RECORD END);
  8375. END Procedure;
  8376. END Test.
  8377. positive: procedure with parameters of anonymous pointer type
  8378. MODULE Test;
  8379. PROCEDURE Procedure (a, b, c: POINTER TO RECORD END);
  8380. END Procedure;
  8381. END Test.
  8382. positive: procedure with a parameter of variable anonymous pointer type
  8383. MODULE Test;
  8384. PROCEDURE Procedure (VAR parameter: POINTER TO RECORD END);
  8385. END Procedure;
  8386. END Test.
  8387. positive: procedure with parameters of variable anonymous pointer type
  8388. MODULE Test;
  8389. PROCEDURE Procedure (VAR a, b, c: POINTER TO RECORD END);
  8390. END Procedure;
  8391. END Test.
  8392. positive: procedure with a parameter of constant anonymous pointer type
  8393. MODULE Test;
  8394. PROCEDURE Procedure (CONST parameter: OBJECT END);
  8395. END Procedure;
  8396. END Test.
  8397. positive: procedure with parameters of constant anonymous pointer type
  8398. MODULE Test;
  8399. PROCEDURE Procedure (CONST a, b, c: POINTER TO RECORD END);
  8400. END Procedure;
  8401. END Test.
  8402. positive: procedure with intermixed parameters of anonymous pointer type
  8403. MODULE Test;
  8404. PROCEDURE Procedure (a: POINTER TO RECORD END; VAR b: POINTER TO RECORD END; CONST c: POINTER TO RECORD END);
  8405. END Procedure;
  8406. END Test.
  8407. positive: procedure with a parameter of procedure type
  8408. MODULE Test;
  8409. TYPE Proc = PROCEDURE;
  8410. PROCEDURE Procedure (parameter: Proc);
  8411. END Procedure;
  8412. END Test.
  8413. positive: procedure with parameters of procedure type
  8414. MODULE Test;
  8415. TYPE Proc = PROCEDURE;
  8416. PROCEDURE Procedure (a, b, c: Proc);
  8417. END Procedure;
  8418. END Test.
  8419. positive: procedure with a parameter of variable procedure type
  8420. MODULE Test;
  8421. TYPE Proc = PROCEDURE;
  8422. PROCEDURE Procedure (VAR parameter: Proc);
  8423. END Procedure;
  8424. END Test.
  8425. positive: procedure with parameters of variable procedure type
  8426. MODULE Test;
  8427. TYPE Proc = PROCEDURE;
  8428. PROCEDURE Procedure (VAR a, b, c: Proc);
  8429. END Procedure;
  8430. END Test.
  8431. positive: procedure with a parameter of constant procedure type
  8432. MODULE Test;
  8433. TYPE Proc = PROCEDURE;
  8434. PROCEDURE Procedure (CONST parameter: Proc);
  8435. END Procedure;
  8436. END Test.
  8437. positive: procedure with parameters of constant procedure type
  8438. MODULE Test;
  8439. TYPE Proc = PROCEDURE;
  8440. PROCEDURE Procedure (CONST a, b, c: Proc);
  8441. END Procedure;
  8442. END Test.
  8443. positive: procedure with intermixed parameters of procedure type
  8444. MODULE Test;
  8445. TYPE Proc = PROCEDURE;
  8446. PROCEDURE Procedure (a: Proc; VAR b: Proc; CONST c: Proc);
  8447. END Procedure;
  8448. END Test.
  8449. positive: procedure with a parameter of anonymous procedure type
  8450. MODULE Test;
  8451. PROCEDURE Procedure (parameter: PROCEDURE);
  8452. END Procedure;
  8453. END Test.
  8454. positive: procedure with parameters of anonymous procedure type
  8455. MODULE Test;
  8456. PROCEDURE Procedure (a, b, c: PROCEDURE);
  8457. END Procedure;
  8458. END Test.
  8459. positive: procedure with a parameter of variable anonymous procedure type
  8460. MODULE Test;
  8461. PROCEDURE Procedure (VAR parameter: PROCEDURE);
  8462. END Procedure;
  8463. END Test.
  8464. positive: procedure with parameters of variable anonymous procedure type
  8465. MODULE Test;
  8466. PROCEDURE Procedure (VAR a, b, c: PROCEDURE);
  8467. END Procedure;
  8468. END Test.
  8469. positive: procedure with a parameter of constant anonymous procedure type
  8470. MODULE Test;
  8471. PROCEDURE Procedure (CONST parameter: PROCEDURE);
  8472. END Procedure;
  8473. END Test.
  8474. positive: procedure with parameters of constant anonymous procedure type
  8475. MODULE Test;
  8476. PROCEDURE Procedure (CONST a, b, c: PROCEDURE);
  8477. END Procedure;
  8478. END Test.
  8479. positive: procedure with intermixed parameters of anonymous procedure type
  8480. MODULE Test;
  8481. PROCEDURE Procedure (a: PROCEDURE; VAR b: PROCEDURE; CONST c: PROCEDURE);
  8482. END Procedure;
  8483. END Test.
  8484. negative: procedure with parameters of local type
  8485. MODULE Test;
  8486. PROCEDURE Procedure (parameter: Type);
  8487. TYPE Type = RECORD END;
  8488. END Procedure;
  8489. END Test.
  8490. negative: procedure with parameter and local constant with same name
  8491. MODULE Test;
  8492. PROCEDURE Procedure (parameter: SET);
  8493. CONST parameter = 10;
  8494. END Procedure;
  8495. END Test.
  8496. negative: procedure with parameter and local type with same name
  8497. MODULE Test;
  8498. PROCEDURE Procedure (parameter: SET);
  8499. TYPE parameter = RECORD END;
  8500. END Procedure;
  8501. END Test.
  8502. negative: procedure with parameter and local variable with same name
  8503. MODULE Test;
  8504. PROCEDURE Procedure (parameter: SET);
  8505. VAR parameter: LONGINT;
  8506. END Procedure;
  8507. END Test.
  8508. negative: procedure with parameter and nested procedure with same name
  8509. MODULE Test;
  8510. PROCEDURE Procedure (parameter: SET);
  8511. PROCEDURE parameter; END parameter;
  8512. END Procedure;
  8513. END Test.
  8514. positive: boolean parameter assignment
  8515. MODULE Test;
  8516. PROCEDURE Procedure (value: BOOLEAN); BEGIN value := value; END Procedure;
  8517. END Test.
  8518. positive: char parameter assignment
  8519. MODULE Test;
  8520. PROCEDURE Procedure (value: CHAR); BEGIN value := value; END Procedure;
  8521. END Test.
  8522. positive: short integer parameter assignment
  8523. MODULE Test;
  8524. PROCEDURE Procedure (value: SHORTINT); BEGIN value := value; END Procedure;
  8525. END Test.
  8526. positive: integer parameter assignment
  8527. MODULE Test;
  8528. PROCEDURE Procedure (VAR value: INTEGER); BEGIN value := value; END Procedure;
  8529. END Test.
  8530. positive: long integer parameter assignment
  8531. MODULE Test;
  8532. PROCEDURE Procedure (value: LONGINT); BEGIN value := value; END Procedure;
  8533. END Test.
  8534. positive: huge integer parameter assignment
  8535. MODULE Test;
  8536. PROCEDURE Procedure (value: HUGEINT); BEGIN value := value; END Procedure;
  8537. END Test.
  8538. positive: real parameter assignment
  8539. MODULE Test;
  8540. PROCEDURE Procedure (value: REAL); BEGIN value := value; END Procedure;
  8541. END Test.
  8542. positive: long real parameter assignment
  8543. MODULE Test;
  8544. PROCEDURE Procedure (value: LONGREAL); BEGIN value := value; END Procedure;
  8545. END Test.
  8546. positive: set parameter assignment
  8547. MODULE Test;
  8548. PROCEDURE Procedure (value: SET); BEGIN value := value; END Procedure;
  8549. END Test.
  8550. positive: array parameter assignment
  8551. MODULE Test;
  8552. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8553. END Test.
  8554. positive: array parameter element assignment
  8555. MODULE Test;
  8556. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8557. END Test.
  8558. negative: open array parameter assignment
  8559. MODULE Test;
  8560. PROCEDURE Procedure (value: ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8561. END Test.
  8562. positive: open array parameter element assignment
  8563. MODULE Test;
  8564. PROCEDURE Procedure (value: ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8565. END Test.
  8566. positive: record parameter assignment
  8567. MODULE Test;
  8568. PROCEDURE Procedure (value: RECORD END); BEGIN value := value; END Procedure;
  8569. END Test.
  8570. positive: record parameter member assignment
  8571. MODULE Test;
  8572. PROCEDURE Procedure (value: RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8573. END Test.
  8574. positive: object parameter assignment
  8575. MODULE Test;
  8576. PROCEDURE Procedure (value: OBJECT END); BEGIN value := value; END Procedure;
  8577. END Test.
  8578. positive: object parameter member assignment
  8579. MODULE Test;
  8580. PROCEDURE Procedure (value: OBJECT VAR member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8581. END Test.
  8582. positive: base object parameter assignment
  8583. MODULE Test;
  8584. PROCEDURE Procedure (value: OBJECT); BEGIN value := value; END Procedure;
  8585. END Test.
  8586. positive: pointer to array parameter assignment
  8587. MODULE Test;
  8588. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8589. END Test.
  8590. positive: pointer to array parameter element assignment
  8591. MODULE Test;
  8592. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8593. END Test.
  8594. positive: pointer to open array parameter assignment
  8595. MODULE Test;
  8596. PROCEDURE Procedure (value: POINTER TO ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8597. END Test.
  8598. positive: pointer to open array parameter element assignment
  8599. MODULE Test;
  8600. PROCEDURE Procedure (value: POINTER TO ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8601. END Test.
  8602. positive: pointer to record parameter assignment
  8603. MODULE Test;
  8604. PROCEDURE Procedure (value: POINTER TO RECORD END); BEGIN value := value; END Procedure;
  8605. END Test.
  8606. positive: pointer to record parameter member assignment
  8607. MODULE Test;
  8608. PROCEDURE Procedure (value: POINTER TO RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8609. END Test.
  8610. positive: procedure parameter assignment
  8611. MODULE Test;
  8612. PROCEDURE Procedure (value: PROCEDURE); BEGIN value := value; END Procedure;
  8613. END Test.
  8614. positive: variable boolean parameter assignment
  8615. MODULE Test;
  8616. PROCEDURE Procedure (VAR value: BOOLEAN); BEGIN value := value; END Procedure;
  8617. END Test.
  8618. positive: variable char parameter assignment
  8619. MODULE Test;
  8620. PROCEDURE Procedure (VAR value: CHAR); BEGIN value := value; END Procedure;
  8621. END Test.
  8622. positive: variable short integer parameter assignment
  8623. MODULE Test;
  8624. PROCEDURE Procedure (VAR value: SHORTINT); BEGIN value := value; END Procedure;
  8625. END Test.
  8626. positive: variable integer parameter assignment
  8627. MODULE Test;
  8628. PROCEDURE Procedure (VAR value: INTEGER); BEGIN value := value; END Procedure;
  8629. END Test.
  8630. positive: variable long integer parameter assignment
  8631. MODULE Test;
  8632. PROCEDURE Procedure (VAR value: LONGINT); BEGIN value := value; END Procedure;
  8633. END Test.
  8634. positive: variable huge integer parameter assignment
  8635. MODULE Test;
  8636. PROCEDURE Procedure (VAR value: HUGEINT); BEGIN value := value; END Procedure;
  8637. END Test.
  8638. positive: variable real parameter assignment
  8639. MODULE Test;
  8640. PROCEDURE Procedure (VAR value: REAL); BEGIN value := value; END Procedure;
  8641. END Test.
  8642. positive: variable long real parameter assignment
  8643. MODULE Test;
  8644. PROCEDURE Procedure (VAR value: LONGREAL); BEGIN value := value; END Procedure;
  8645. END Test.
  8646. positive: variable set parameter assignment
  8647. MODULE Test;
  8648. PROCEDURE Procedure (VAR value: SET); BEGIN value := value; END Procedure;
  8649. END Test.
  8650. positive: variable array parameter assignment
  8651. MODULE Test;
  8652. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8653. END Test.
  8654. positive: variable array parameter element assignment
  8655. MODULE Test;
  8656. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8657. END Test.
  8658. negative: variable open array parameter assignment
  8659. MODULE Test;
  8660. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8661. END Test.
  8662. positive: variable open array parameter element assignment
  8663. MODULE Test;
  8664. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8665. END Test.
  8666. positive: variable record parameter assignment
  8667. MODULE Test;
  8668. PROCEDURE Procedure (VAR value: RECORD END); BEGIN value := value; END Procedure;
  8669. END Test.
  8670. positive: variable record parameter member assignment
  8671. MODULE Test;
  8672. PROCEDURE Procedure (VAR value: RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8673. END Test.
  8674. positive: variable object parameter assignment
  8675. MODULE Test;
  8676. PROCEDURE Procedure (VAR value: OBJECT END); BEGIN value := value; END Procedure;
  8677. END Test.
  8678. positive: variable object parameter member assignment
  8679. MODULE Test;
  8680. PROCEDURE Procedure (VAR value: OBJECT VAR member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8681. END Test.
  8682. positive: variable base object parameter assignment
  8683. MODULE Test;
  8684. PROCEDURE Procedure (VAR value: OBJECT); BEGIN value := value; END Procedure;
  8685. END Test.
  8686. positive: variable pointer to array parameter assignment
  8687. MODULE Test;
  8688. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8689. END Test.
  8690. positive: variable pointer to array parameter element assignment
  8691. MODULE Test;
  8692. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8693. END Test.
  8694. positive: variable pointer to open array parameter assignment
  8695. MODULE Test;
  8696. PROCEDURE Procedure (VAR value: POINTER TO ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8697. END Test.
  8698. positive: variable pointer to open array parameter element assignment
  8699. MODULE Test;
  8700. PROCEDURE Procedure (VAR value: POINTER TO ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8701. END Test.
  8702. positive: variable pointer to record parameter assignment
  8703. MODULE Test;
  8704. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); BEGIN value := value; END Procedure;
  8705. END Test.
  8706. positive: variable pointer to record parameter member assignment
  8707. MODULE Test;
  8708. PROCEDURE Procedure (VAR value: POINTER TO RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8709. END Test.
  8710. positive: variable procedure parameter assignment
  8711. MODULE Test;
  8712. PROCEDURE Procedure (VAR value: PROCEDURE); BEGIN value := value; END Procedure;
  8713. END Test.
  8714. negative: constant boolean parameter assignment
  8715. MODULE Test;
  8716. PROCEDURE Procedure (CONST value: BOOLEAN); BEGIN value := value; END Procedure;
  8717. END Test.
  8718. negative: constant char parameter assignment
  8719. MODULE Test;
  8720. PROCEDURE Procedure (CONST value: CHAR); BEGIN value := value; END Procedure;
  8721. END Test.
  8722. negative: constant short integer parameter assignment
  8723. MODULE Test;
  8724. PROCEDURE Procedure (CONST value: SHORTINT); BEGIN value := value; END Procedure;
  8725. END Test.
  8726. negative: constant integer parameter assignment
  8727. MODULE Test;
  8728. PROCEDURE Procedure (CONST value: INTEGER); BEGIN value := value; END Procedure;
  8729. END Test.
  8730. negative: constant long integer parameter assignment
  8731. MODULE Test;
  8732. PROCEDURE Procedure (CONST value: LONGINT); BEGIN value := value; END Procedure;
  8733. END Test.
  8734. negative: constant huge integer parameter assignment
  8735. MODULE Test;
  8736. PROCEDURE Procedure (CONST value: HUGEINT); BEGIN value := value; END Procedure;
  8737. END Test.
  8738. negative: constant real parameter assignment
  8739. MODULE Test;
  8740. PROCEDURE Procedure (CONST value: REAL); BEGIN value := value; END Procedure;
  8741. END Test.
  8742. negative: constant long real parameter assignment
  8743. MODULE Test;
  8744. PROCEDURE Procedure (CONST value: LONGREAL); BEGIN value := value; END Procedure;
  8745. END Test.
  8746. negative: constant set parameter assignment
  8747. MODULE Test;
  8748. PROCEDURE Procedure (CONST value: SET); BEGIN value := value; END Procedure;
  8749. END Test.
  8750. negative: constant array parameter assignment
  8751. MODULE Test;
  8752. PROCEDURE Procedure (CONST value: ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8753. END Test.
  8754. negative: constant array parameter element assignment
  8755. MODULE Test;
  8756. PROCEDURE Procedure (CONST value: ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8757. END Test.
  8758. negative: constant open array parameter assignment
  8759. MODULE Test;
  8760. PROCEDURE Procedure (CONST value: ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8761. END Test.
  8762. negative: constant open array parameter element assignment
  8763. MODULE Test;
  8764. PROCEDURE Procedure (CONST value: ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8765. END Test.
  8766. negative: constant record parameter assignment
  8767. MODULE Test;
  8768. PROCEDURE Procedure (CONST value: RECORD END); BEGIN value := value; END Procedure;
  8769. END Test.
  8770. negative: constant record parameter member assignment
  8771. MODULE Test;
  8772. PROCEDURE Procedure (CONST value: RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8773. END Test.
  8774. negative: constant object parameter assignment
  8775. MODULE Test;
  8776. PROCEDURE Procedure (CONST value: OBJECT END); BEGIN value := value; END Procedure;
  8777. END Test.
  8778. positive: constant object parameter member assignment
  8779. MODULE Test;
  8780. PROCEDURE Procedure (CONST value: OBJECT VAR member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8781. END Test.
  8782. negative: constant base object parameter assignment
  8783. MODULE Test;
  8784. PROCEDURE Procedure (CONST value: OBJECT); BEGIN value := value; END Procedure;
  8785. END Test.
  8786. negative: constant pointer to array parameter assignment
  8787. MODULE Test;
  8788. PROCEDURE Procedure (CONST value: POINTER TO ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8789. END Test.
  8790. positive: constant pointer to array parameter element assignment
  8791. MODULE Test;
  8792. PROCEDURE Procedure (CONST value: POINTER TO ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8793. END Test.
  8794. negative: constant pointer to open array parameter assignment
  8795. MODULE Test;
  8796. PROCEDURE Procedure (CONST value: POINTER TO ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8797. END Test.
  8798. positive: constant pointer to open array parameter element assignment
  8799. MODULE Test;
  8800. PROCEDURE Procedure (CONST value: POINTER TO ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8801. END Test.
  8802. negative: constant pointer to record parameter assignment
  8803. MODULE Test;
  8804. PROCEDURE Procedure (CONST value: POINTER TO RECORD END); BEGIN value := value; END Procedure;
  8805. END Test.
  8806. positive: constant pointer to record parameter member assignment
  8807. MODULE Test;
  8808. PROCEDURE Procedure (CONST value: POINTER TO RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8809. END Test.
  8810. negative: constant procedure parameter assignment
  8811. MODULE Test;
  8812. PROCEDURE Procedure (CONST value: PROCEDURE); BEGIN value := value; END Procedure;
  8813. END Test.
  8814. positive: calling procedure with boolean parameter with boolean argument
  8815. MODULE Test;
  8816. VAR argument: BOOLEAN;
  8817. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8818. BEGIN Procedure (argument);
  8819. END Test.
  8820. negative: calling procedure with boolean parameter with character argument
  8821. MODULE Test;
  8822. VAR argument: CHAR;
  8823. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8824. BEGIN Procedure (argument);
  8825. END Test.
  8826. negative: calling procedure with boolean parameter with short integer argument
  8827. MODULE Test;
  8828. VAR argument: SHORTINT;
  8829. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8830. BEGIN Procedure (argument);
  8831. END Test.
  8832. negative: calling procedure with boolean parameter with integer argument
  8833. MODULE Test;
  8834. VAR argument: INTEGER;
  8835. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8836. BEGIN Procedure (argument);
  8837. END Test.
  8838. negative: calling procedure with boolean parameter with long integer argument
  8839. MODULE Test;
  8840. VAR argument: LONGINT;
  8841. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8842. BEGIN Procedure (argument);
  8843. END Test.
  8844. negative: calling procedure with boolean parameter with huge integer argument
  8845. MODULE Test;
  8846. VAR argument: HUGEINT;
  8847. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8848. BEGIN Procedure (argument);
  8849. END Test.
  8850. negative: calling procedure with boolean parameter with real argument
  8851. MODULE Test;
  8852. VAR argument: REAL;
  8853. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8854. BEGIN Procedure (argument);
  8855. END Test.
  8856. negative: calling procedure with boolean parameter with long real argument
  8857. MODULE Test;
  8858. VAR argument: LONGREAL;
  8859. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8860. BEGIN Procedure (argument);
  8861. END Test.
  8862. negative: calling procedure with boolean parameter with set argument
  8863. MODULE Test;
  8864. VAR argument: SET;
  8865. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8866. BEGIN Procedure (argument);
  8867. END Test.
  8868. negative: calling procedure with boolean parameter with array argument
  8869. MODULE Test;
  8870. VAR argument: ARRAY 10 OF CHAR;
  8871. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8872. BEGIN Procedure (argument);
  8873. END Test.
  8874. negative: calling procedure with boolean parameter with record argument
  8875. MODULE Test;
  8876. VAR argument: RECORD END;
  8877. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8878. BEGIN Procedure (argument);
  8879. END Test.
  8880. negative: calling procedure with boolean parameter with object argument
  8881. MODULE Test;
  8882. VAR argument: OBJECT END;
  8883. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8884. BEGIN Procedure (argument);
  8885. END Test.
  8886. negative: calling procedure with boolean parameter with base object argument
  8887. MODULE Test;
  8888. VAR argument: OBJECT;
  8889. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8890. BEGIN Procedure (argument);
  8891. END Test.
  8892. negative: calling procedure with boolean parameter with pointer to array argument
  8893. MODULE Test;
  8894. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  8895. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8896. BEGIN Procedure (argument);
  8897. END Test.
  8898. negative: calling procedure with boolean parameter with pointer to record argument
  8899. MODULE Test;
  8900. VAR argument: POINTER TO RECORD END;
  8901. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8902. BEGIN Procedure (argument);
  8903. END Test.
  8904. negative: calling procedure with boolean parameter with procedure argument
  8905. MODULE Test;
  8906. VAR argument: PROCEDURE;
  8907. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8908. BEGIN Procedure (argument);
  8909. END Test.
  8910. negative: calling procedure with character parameter with boolean argument
  8911. MODULE Test;
  8912. VAR argument: BOOLEAN;
  8913. PROCEDURE Procedure (value: CHAR); END Procedure;
  8914. BEGIN Procedure (argument);
  8915. END Test.
  8916. positive: calling procedure with character parameter with character argument
  8917. MODULE Test;
  8918. VAR argument: CHAR;
  8919. PROCEDURE Procedure (value: CHAR); END Procedure;
  8920. BEGIN Procedure (argument);
  8921. END Test.
  8922. negative: calling procedure with character parameter with short integer argument
  8923. MODULE Test;
  8924. VAR argument: SHORTINT;
  8925. PROCEDURE Procedure (value: CHAR); END Procedure;
  8926. BEGIN Procedure (argument);
  8927. END Test.
  8928. negative: calling procedure with character parameter with integer argument
  8929. MODULE Test;
  8930. VAR argument: INTEGER;
  8931. PROCEDURE Procedure (value: CHAR); END Procedure;
  8932. BEGIN Procedure (argument);
  8933. END Test.
  8934. negative: calling procedure with character parameter with long integer argument
  8935. MODULE Test;
  8936. VAR argument: LONGINT;
  8937. PROCEDURE Procedure (value: CHAR); END Procedure;
  8938. BEGIN Procedure (argument);
  8939. END Test.
  8940. negative: calling procedure with character parameter with huge integer argument
  8941. MODULE Test;
  8942. VAR argument: HUGEINT;
  8943. PROCEDURE Procedure (value: CHAR); END Procedure;
  8944. BEGIN Procedure (argument);
  8945. END Test.
  8946. negative: calling procedure with character parameter with real argument
  8947. MODULE Test;
  8948. VAR argument: REAL;
  8949. PROCEDURE Procedure (value: CHAR); END Procedure;
  8950. BEGIN Procedure (argument);
  8951. END Test.
  8952. negative: calling procedure with character parameter with long real argument
  8953. MODULE Test;
  8954. VAR argument: LONGREAL;
  8955. PROCEDURE Procedure (value: CHAR); END Procedure;
  8956. BEGIN Procedure (argument);
  8957. END Test.
  8958. negative: calling procedure with character parameter with set argument
  8959. MODULE Test;
  8960. VAR argument: SET;
  8961. PROCEDURE Procedure (value: CHAR); END Procedure;
  8962. BEGIN Procedure (argument);
  8963. END Test.
  8964. negative: calling procedure with character parameter with array argument
  8965. MODULE Test;
  8966. VAR argument: ARRAY 10 OF CHAR;
  8967. PROCEDURE Procedure (value: CHAR); END Procedure;
  8968. BEGIN Procedure (argument);
  8969. END Test.
  8970. negative: calling procedure with character parameter with record argument
  8971. MODULE Test;
  8972. VAR argument: RECORD END;
  8973. PROCEDURE Procedure (value: CHAR); END Procedure;
  8974. BEGIN Procedure (argument);
  8975. END Test.
  8976. negative: calling procedure with character parameter with object argument
  8977. MODULE Test;
  8978. VAR argument: OBJECT END;
  8979. PROCEDURE Procedure (value: CHAR); END Procedure;
  8980. BEGIN Procedure (argument);
  8981. END Test.
  8982. negative: calling procedure with character parameter with base object argument
  8983. MODULE Test;
  8984. VAR argument: OBJECT;
  8985. PROCEDURE Procedure (value: CHAR); END Procedure;
  8986. BEGIN Procedure (argument);
  8987. END Test.
  8988. negative: calling procedure with character parameter with pointer to array argument
  8989. MODULE Test;
  8990. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  8991. PROCEDURE Procedure (value: CHAR); END Procedure;
  8992. BEGIN Procedure (argument);
  8993. END Test.
  8994. negative: calling procedure with character parameter with pointer to record argument
  8995. MODULE Test;
  8996. VAR argument: POINTER TO RECORD END;
  8997. PROCEDURE Procedure (value: CHAR); END Procedure;
  8998. BEGIN Procedure (argument);
  8999. END Test.
  9000. negative: calling procedure with character parameter with procedure argument
  9001. MODULE Test;
  9002. VAR argument: PROCEDURE;
  9003. PROCEDURE Procedure (value: CHAR); END Procedure;
  9004. BEGIN Procedure (argument);
  9005. END Test.
  9006. negative: calling procedure with short integer parameter with boolean argument
  9007. MODULE Test;
  9008. VAR argument: BOOLEAN;
  9009. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9010. BEGIN Procedure (argument);
  9011. END Test.
  9012. negative: calling procedure with short integer parameter with character argument
  9013. MODULE Test;
  9014. VAR argument: CHAR;
  9015. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9016. BEGIN Procedure (argument);
  9017. END Test.
  9018. positive: calling procedure with short integer parameter with short integer argument
  9019. MODULE Test;
  9020. VAR argument: SHORTINT;
  9021. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9022. BEGIN Procedure (argument);
  9023. END Test.
  9024. negative: calling procedure with short integer parameter with integer argument
  9025. MODULE Test;
  9026. VAR argument: INTEGER;
  9027. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9028. BEGIN Procedure (argument);
  9029. END Test.
  9030. negative: calling procedure with short integer parameter with long integer argument
  9031. MODULE Test;
  9032. VAR argument: LONGINT;
  9033. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9034. BEGIN Procedure (argument);
  9035. END Test.
  9036. negative: calling procedure with short integer parameter with huge integer argument
  9037. MODULE Test;
  9038. VAR argument: HUGEINT;
  9039. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9040. BEGIN Procedure (argument);
  9041. END Test.
  9042. negative: calling procedure with short integer parameter with real argument
  9043. MODULE Test;
  9044. VAR argument: REAL;
  9045. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9046. BEGIN Procedure (argument);
  9047. END Test.
  9048. negative: calling procedure with short integer parameter with long real argument
  9049. MODULE Test;
  9050. VAR argument: LONGREAL;
  9051. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9052. BEGIN Procedure (argument);
  9053. END Test.
  9054. negative: calling procedure with short integer parameter with set argument
  9055. MODULE Test;
  9056. VAR argument: SET;
  9057. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9058. BEGIN Procedure (argument);
  9059. END Test.
  9060. negative: calling procedure with short integer parameter with array argument
  9061. MODULE Test;
  9062. VAR argument: ARRAY 10 OF CHAR;
  9063. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9064. BEGIN Procedure (argument);
  9065. END Test.
  9066. negative: calling procedure with short integer parameter with record argument
  9067. MODULE Test;
  9068. VAR argument: RECORD END;
  9069. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9070. BEGIN Procedure (argument);
  9071. END Test.
  9072. negative: calling procedure with short integer parameter with object argument
  9073. MODULE Test;
  9074. VAR argument: OBJECT END;
  9075. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9076. BEGIN Procedure (argument);
  9077. END Test.
  9078. negative: calling procedure with short integer parameter with base object argument
  9079. MODULE Test;
  9080. VAR argument: OBJECT;
  9081. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9082. BEGIN Procedure (argument);
  9083. END Test.
  9084. negative: calling procedure with short integer parameter with pointer to array argument
  9085. MODULE Test;
  9086. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9087. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9088. BEGIN Procedure (argument);
  9089. END Test.
  9090. negative: calling procedure with short integer parameter with pointer to record argument
  9091. MODULE Test;
  9092. VAR argument: POINTER TO RECORD END;
  9093. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9094. BEGIN Procedure (argument);
  9095. END Test.
  9096. negative: calling procedure with short integer parameter with procedure argument
  9097. MODULE Test;
  9098. VAR argument: PROCEDURE;
  9099. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9100. BEGIN Procedure (argument);
  9101. END Test.
  9102. negative: calling procedure with integer parameter with boolean argument
  9103. MODULE Test;
  9104. VAR argument: BOOLEAN;
  9105. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9106. BEGIN Procedure (argument);
  9107. END Test.
  9108. negative: calling procedure with integer parameter with character argument
  9109. MODULE Test;
  9110. VAR argument: CHAR;
  9111. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9112. BEGIN Procedure (argument);
  9113. END Test.
  9114. positive: calling procedure with integer parameter with short integer argument
  9115. MODULE Test;
  9116. VAR argument: SHORTINT;
  9117. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9118. BEGIN Procedure (argument);
  9119. END Test.
  9120. positive: calling procedure with integer parameter with integer argument
  9121. MODULE Test;
  9122. VAR argument: INTEGER;
  9123. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9124. BEGIN Procedure (argument);
  9125. END Test.
  9126. negative: calling procedure with integer parameter with long integer argument
  9127. MODULE Test;
  9128. VAR argument: LONGINT;
  9129. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9130. BEGIN Procedure (argument);
  9131. END Test.
  9132. negative: calling procedure with integer parameter with huge integer argument
  9133. MODULE Test;
  9134. VAR argument: HUGEINT;
  9135. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9136. BEGIN Procedure (argument);
  9137. END Test.
  9138. negative: calling procedure with integer parameter with real argument
  9139. MODULE Test;
  9140. VAR argument: REAL;
  9141. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9142. BEGIN Procedure (argument);
  9143. END Test.
  9144. negative: calling procedure with integer parameter with long real argument
  9145. MODULE Test;
  9146. VAR argument: LONGREAL;
  9147. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9148. BEGIN Procedure (argument);
  9149. END Test.
  9150. negative: calling procedure with integer parameter with set argument
  9151. MODULE Test;
  9152. VAR argument: SET;
  9153. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9154. BEGIN Procedure (argument);
  9155. END Test.
  9156. negative: calling procedure with integer parameter with array argument
  9157. MODULE Test;
  9158. VAR argument: ARRAY 10 OF CHAR;
  9159. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9160. BEGIN Procedure (argument);
  9161. END Test.
  9162. negative: calling procedure with integer parameter with record argument
  9163. MODULE Test;
  9164. VAR argument: RECORD END;
  9165. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9166. BEGIN Procedure (argument);
  9167. END Test.
  9168. negative: calling procedure with integer parameter with object argument
  9169. MODULE Test;
  9170. VAR argument: OBJECT END;
  9171. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9172. BEGIN Procedure (argument);
  9173. END Test.
  9174. negative: calling procedure with integer parameter with base object argument
  9175. MODULE Test;
  9176. VAR argument: OBJECT;
  9177. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9178. BEGIN Procedure (argument);
  9179. END Test.
  9180. negative: calling procedure with integer parameter with pointer to array argument
  9181. MODULE Test;
  9182. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9183. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9184. BEGIN Procedure (argument);
  9185. END Test.
  9186. negative: calling procedure with integer parameter with pointer to record argument
  9187. MODULE Test;
  9188. VAR argument: POINTER TO RECORD END;
  9189. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9190. BEGIN Procedure (argument);
  9191. END Test.
  9192. negative: calling procedure with integer parameter with procedure argument
  9193. MODULE Test;
  9194. VAR argument: PROCEDURE;
  9195. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9196. BEGIN Procedure (argument);
  9197. END Test.
  9198. negative: calling procedure with long integer parameter with boolean argument
  9199. MODULE Test;
  9200. VAR argument: BOOLEAN;
  9201. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9202. BEGIN Procedure (argument);
  9203. END Test.
  9204. negative: calling procedure with long integer parameter with character argument
  9205. MODULE Test;
  9206. VAR argument: CHAR;
  9207. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9208. BEGIN Procedure (argument);
  9209. END Test.
  9210. positive: calling procedure with long integer parameter with short integer argument
  9211. MODULE Test;
  9212. VAR argument: SHORTINT;
  9213. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9214. BEGIN Procedure (argument);
  9215. END Test.
  9216. positive: calling procedure with long integer parameter with integer argument
  9217. MODULE Test;
  9218. VAR argument: INTEGER;
  9219. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9220. BEGIN Procedure (argument);
  9221. END Test.
  9222. positive: calling procedure with long integer parameter with long integer argument
  9223. MODULE Test;
  9224. VAR argument: LONGINT;
  9225. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9226. BEGIN Procedure (argument);
  9227. END Test.
  9228. negative: calling procedure with long integer parameter with huge integer argument
  9229. MODULE Test;
  9230. VAR argument: HUGEINT;
  9231. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9232. BEGIN Procedure (argument);
  9233. END Test.
  9234. negative: calling procedure with long integer parameter with real argument
  9235. MODULE Test;
  9236. VAR argument: REAL;
  9237. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9238. BEGIN Procedure (argument);
  9239. END Test.
  9240. negative: calling procedure with long integer parameter with long real argument
  9241. MODULE Test;
  9242. VAR argument: LONGREAL;
  9243. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9244. BEGIN Procedure (argument);
  9245. END Test.
  9246. negative: calling procedure with long integer parameter with set argument
  9247. MODULE Test;
  9248. VAR argument: SET;
  9249. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9250. BEGIN Procedure (argument);
  9251. END Test.
  9252. negative: calling procedure with long integer parameter with array argument
  9253. MODULE Test;
  9254. VAR argument: ARRAY 10 OF CHAR;
  9255. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9256. BEGIN Procedure (argument);
  9257. END Test.
  9258. negative: calling procedure with long integer parameter with record argument
  9259. MODULE Test;
  9260. VAR argument: RECORD END;
  9261. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9262. BEGIN Procedure (argument);
  9263. END Test.
  9264. negative: calling procedure with long integer parameter with object argument
  9265. MODULE Test;
  9266. VAR argument: OBJECT END;
  9267. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9268. BEGIN Procedure (argument);
  9269. END Test.
  9270. negative: calling procedure with long integer parameter with base object argument
  9271. MODULE Test;
  9272. VAR argument: OBJECT;
  9273. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9274. BEGIN Procedure (argument);
  9275. END Test.
  9276. negative: calling procedure with long integer parameter with pointer to array argument
  9277. MODULE Test;
  9278. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9279. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9280. BEGIN Procedure (argument);
  9281. END Test.
  9282. negative: calling procedure with long integer parameter with pointer to record argument
  9283. MODULE Test;
  9284. VAR argument: POINTER TO RECORD END;
  9285. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9286. BEGIN Procedure (argument);
  9287. END Test.
  9288. negative: calling procedure with long integer parameter with procedure argument
  9289. MODULE Test;
  9290. VAR argument: PROCEDURE;
  9291. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9292. BEGIN Procedure (argument);
  9293. END Test.
  9294. negative: calling procedure with huge integer parameter with boolean argument
  9295. MODULE Test;
  9296. VAR argument: BOOLEAN;
  9297. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9298. BEGIN Procedure (argument);
  9299. END Test.
  9300. negative: calling procedure with huge integer parameter with character argument
  9301. MODULE Test;
  9302. VAR argument: CHAR;
  9303. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9304. BEGIN Procedure (argument);
  9305. END Test.
  9306. positive: calling procedure with huge integer parameter with short integer argument
  9307. MODULE Test;
  9308. VAR argument: SHORTINT;
  9309. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9310. BEGIN Procedure (argument);
  9311. END Test.
  9312. positive: calling procedure with huge integer parameter with integer argument
  9313. MODULE Test;
  9314. VAR argument: INTEGER;
  9315. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9316. BEGIN Procedure (argument);
  9317. END Test.
  9318. positive: calling procedure with huge integer parameter with long integer argument
  9319. MODULE Test;
  9320. VAR argument: LONGINT;
  9321. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9322. BEGIN Procedure (argument);
  9323. END Test.
  9324. positive: calling procedure with huge integer parameter with huge integer argument
  9325. MODULE Test;
  9326. VAR argument: HUGEINT;
  9327. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9328. BEGIN Procedure (argument);
  9329. END Test.
  9330. negative: calling procedure with huge integer parameter with real argument
  9331. MODULE Test;
  9332. VAR argument: REAL;
  9333. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9334. BEGIN Procedure (argument);
  9335. END Test.
  9336. negative: calling procedure with huge integer parameter with long real argument
  9337. MODULE Test;
  9338. VAR argument: LONGREAL;
  9339. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9340. BEGIN Procedure (argument);
  9341. END Test.
  9342. negative: calling procedure with huge integer parameter with set argument
  9343. MODULE Test;
  9344. VAR argument: SET;
  9345. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9346. BEGIN Procedure (argument);
  9347. END Test.
  9348. negative: calling procedure with huge integer parameter with array argument
  9349. MODULE Test;
  9350. VAR argument: ARRAY 10 OF CHAR;
  9351. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9352. BEGIN Procedure (argument);
  9353. END Test.
  9354. negative: calling procedure with huge integer parameter with record argument
  9355. MODULE Test;
  9356. VAR argument: RECORD END;
  9357. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9358. BEGIN Procedure (argument);
  9359. END Test.
  9360. negative: calling procedure with huge integer parameter with object argument
  9361. MODULE Test;
  9362. VAR argument: OBJECT END;
  9363. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9364. BEGIN Procedure (argument);
  9365. END Test.
  9366. negative: calling procedure with huge integer parameter with base object argument
  9367. MODULE Test;
  9368. VAR argument: OBJECT;
  9369. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9370. BEGIN Procedure (argument);
  9371. END Test.
  9372. negative: calling procedure with huge integer parameter with pointer to array argument
  9373. MODULE Test;
  9374. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9375. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9376. BEGIN Procedure (argument);
  9377. END Test.
  9378. negative: calling procedure with huge integer parameter with pointer to record argument
  9379. MODULE Test;
  9380. VAR argument: POINTER TO RECORD END;
  9381. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9382. BEGIN Procedure (argument);
  9383. END Test.
  9384. negative: calling procedure with huge integer parameter with procedure argument
  9385. MODULE Test;
  9386. VAR argument: PROCEDURE;
  9387. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9388. BEGIN Procedure (argument);
  9389. END Test.
  9390. negative: calling procedure with real parameter with boolean argument
  9391. MODULE Test;
  9392. VAR argument: BOOLEAN;
  9393. PROCEDURE Procedure (value: REAL); END Procedure;
  9394. BEGIN Procedure (argument);
  9395. END Test.
  9396. negative: calling procedure with real parameter with character argument
  9397. MODULE Test;
  9398. VAR argument: CHAR;
  9399. PROCEDURE Procedure (value: REAL); END Procedure;
  9400. BEGIN Procedure (argument);
  9401. END Test.
  9402. positive: calling procedure with real parameter with short integer argument
  9403. MODULE Test;
  9404. VAR argument: SHORTINT;
  9405. PROCEDURE Procedure (value: REAL); END Procedure;
  9406. BEGIN Procedure (argument);
  9407. END Test.
  9408. positive: calling procedure with real parameter with integer argument
  9409. MODULE Test;
  9410. VAR argument: INTEGER;
  9411. PROCEDURE Procedure (value: REAL); END Procedure;
  9412. BEGIN Procedure (argument);
  9413. END Test.
  9414. positive: calling procedure with real parameter with long integer argument
  9415. MODULE Test;
  9416. VAR argument: LONGINT;
  9417. PROCEDURE Procedure (value: REAL); END Procedure;
  9418. BEGIN Procedure (argument);
  9419. END Test.
  9420. positive: calling procedure with real parameter with huge integer argument
  9421. MODULE Test;
  9422. VAR argument: HUGEINT;
  9423. PROCEDURE Procedure (value: REAL); END Procedure;
  9424. BEGIN Procedure (argument);
  9425. END Test.
  9426. positive: calling procedure with real parameter with real argument
  9427. MODULE Test;
  9428. VAR argument: REAL;
  9429. PROCEDURE Procedure (value: REAL); END Procedure;
  9430. BEGIN Procedure (argument);
  9431. END Test.
  9432. negative: calling procedure with real parameter with long real argument
  9433. MODULE Test;
  9434. VAR argument: LONGREAL;
  9435. PROCEDURE Procedure (value: REAL); END Procedure;
  9436. BEGIN Procedure (argument);
  9437. END Test.
  9438. negative: calling procedure with real parameter with set argument
  9439. MODULE Test;
  9440. VAR argument: SET;
  9441. PROCEDURE Procedure (value: REAL); END Procedure;
  9442. BEGIN Procedure (argument);
  9443. END Test.
  9444. negative: calling procedure with real parameter with array argument
  9445. MODULE Test;
  9446. VAR argument: ARRAY 10 OF CHAR;
  9447. PROCEDURE Procedure (value: REAL); END Procedure;
  9448. BEGIN Procedure (argument);
  9449. END Test.
  9450. negative: calling procedure with real parameter with record argument
  9451. MODULE Test;
  9452. VAR argument: RECORD END;
  9453. PROCEDURE Procedure (value: REAL); END Procedure;
  9454. BEGIN Procedure (argument);
  9455. END Test.
  9456. negative: calling procedure with real parameter with object argument
  9457. MODULE Test;
  9458. VAR argument: OBJECT END;
  9459. PROCEDURE Procedure (value: REAL); END Procedure;
  9460. BEGIN Procedure (argument);
  9461. END Test.
  9462. negative: calling procedure with real parameter with base object argument
  9463. MODULE Test;
  9464. VAR argument: OBJECT;
  9465. PROCEDURE Procedure (value: REAL); END Procedure;
  9466. BEGIN Procedure (argument);
  9467. END Test.
  9468. negative: calling procedure with real parameter with pointer to array argument
  9469. MODULE Test;
  9470. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9471. PROCEDURE Procedure (value: REAL); END Procedure;
  9472. BEGIN Procedure (argument);
  9473. END Test.
  9474. negative: calling procedure with real parameter with pointer to record argument
  9475. MODULE Test;
  9476. VAR argument: POINTER TO RECORD END;
  9477. PROCEDURE Procedure (value: REAL); END Procedure;
  9478. BEGIN Procedure (argument);
  9479. END Test.
  9480. negative: calling procedure with real parameter with procedure argument
  9481. MODULE Test;
  9482. VAR argument: PROCEDURE;
  9483. PROCEDURE Procedure (value: REAL); END Procedure;
  9484. BEGIN Procedure (argument);
  9485. END Test.
  9486. negative: calling procedure with long real parameter with boolean argument
  9487. MODULE Test;
  9488. VAR argument: BOOLEAN;
  9489. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9490. BEGIN Procedure (argument);
  9491. END Test.
  9492. negative: calling procedure with long real parameter with character argument
  9493. MODULE Test;
  9494. VAR argument: CHAR;
  9495. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9496. BEGIN Procedure (argument);
  9497. END Test.
  9498. positive: calling procedure with long real parameter with short integer argument
  9499. MODULE Test;
  9500. VAR argument: SHORTINT;
  9501. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9502. BEGIN Procedure (argument);
  9503. END Test.
  9504. positive: calling procedure with long real parameter with integer argument
  9505. MODULE Test;
  9506. VAR argument: INTEGER;
  9507. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9508. BEGIN Procedure (argument);
  9509. END Test.
  9510. positive: calling procedure with long real parameter with long integer argument
  9511. MODULE Test;
  9512. VAR argument: LONGINT;
  9513. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9514. BEGIN Procedure (argument);
  9515. END Test.
  9516. positive: calling procedure with long real parameter with huge integer argument
  9517. MODULE Test;
  9518. VAR argument: HUGEINT;
  9519. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9520. BEGIN Procedure (argument);
  9521. END Test.
  9522. positive: calling procedure with long real parameter with real argument
  9523. MODULE Test;
  9524. VAR argument: REAL;
  9525. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9526. BEGIN Procedure (argument);
  9527. END Test.
  9528. positive: calling procedure with long real parameter with long real argument
  9529. MODULE Test;
  9530. VAR argument: LONGREAL;
  9531. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9532. BEGIN Procedure (argument);
  9533. END Test.
  9534. negative: calling procedure with long real parameter with set argument
  9535. MODULE Test;
  9536. VAR argument: SET;
  9537. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9538. BEGIN Procedure (argument);
  9539. END Test.
  9540. negative: calling procedure with long real parameter with array argument
  9541. MODULE Test;
  9542. VAR argument: ARRAY 10 OF CHAR;
  9543. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9544. BEGIN Procedure (argument);
  9545. END Test.
  9546. negative: calling procedure with long real parameter with record argument
  9547. MODULE Test;
  9548. VAR argument: RECORD END;
  9549. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9550. BEGIN Procedure (argument);
  9551. END Test.
  9552. negative: calling procedure with long real parameter with object argument
  9553. MODULE Test;
  9554. VAR argument: OBJECT END;
  9555. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9556. BEGIN Procedure (argument);
  9557. END Test.
  9558. negative: calling procedure with long real parameter with base object argument
  9559. MODULE Test;
  9560. VAR argument: OBJECT;
  9561. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9562. BEGIN Procedure (argument);
  9563. END Test.
  9564. negative: calling procedure with long real parameter with pointer to array argument
  9565. MODULE Test;
  9566. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9567. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9568. BEGIN Procedure (argument);
  9569. END Test.
  9570. negative: calling procedure with long real parameter with pointer to record argument
  9571. MODULE Test;
  9572. VAR argument: POINTER TO RECORD END;
  9573. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9574. BEGIN Procedure (argument);
  9575. END Test.
  9576. negative: calling procedure with long real parameter with procedure argument
  9577. MODULE Test;
  9578. VAR argument: PROCEDURE;
  9579. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9580. BEGIN Procedure (argument);
  9581. END Test.
  9582. negative: calling procedure with set parameter with boolean argument
  9583. MODULE Test;
  9584. VAR argument: BOOLEAN;
  9585. PROCEDURE Procedure (value: SET); END Procedure;
  9586. BEGIN Procedure (argument);
  9587. END Test.
  9588. negative: calling procedure with set parameter with character argument
  9589. MODULE Test;
  9590. VAR argument: CHAR;
  9591. PROCEDURE Procedure (value: SET); END Procedure;
  9592. BEGIN Procedure (argument);
  9593. END Test.
  9594. negative: calling procedure with set parameter with short integer argument
  9595. MODULE Test;
  9596. VAR argument: SHORTINT;
  9597. PROCEDURE Procedure (value: SET); END Procedure;
  9598. BEGIN Procedure (argument);
  9599. END Test.
  9600. negative: calling procedure with set parameter with integer argument
  9601. MODULE Test;
  9602. VAR argument: INTEGER;
  9603. PROCEDURE Procedure (value: SET); END Procedure;
  9604. BEGIN Procedure (argument);
  9605. END Test.
  9606. negative: calling procedure with set parameter with long integer argument
  9607. MODULE Test;
  9608. VAR argument: LONGINT;
  9609. PROCEDURE Procedure (value: SET); END Procedure;
  9610. BEGIN Procedure (argument);
  9611. END Test.
  9612. negative: calling procedure with set parameter with huge integer argument
  9613. MODULE Test;
  9614. VAR argument: HUGEINT;
  9615. PROCEDURE Procedure (value: SET); END Procedure;
  9616. BEGIN Procedure (argument);
  9617. END Test.
  9618. negative: calling procedure with set parameter with real argument
  9619. MODULE Test;
  9620. VAR argument: REAL;
  9621. PROCEDURE Procedure (value: SET); END Procedure;
  9622. BEGIN Procedure (argument);
  9623. END Test.
  9624. negative: calling procedure with set parameter with long real argument
  9625. MODULE Test;
  9626. VAR argument: LONGREAL;
  9627. PROCEDURE Procedure (value: SET); END Procedure;
  9628. BEGIN Procedure (argument);
  9629. END Test.
  9630. positive: calling procedure with set parameter with set argument
  9631. MODULE Test;
  9632. VAR argument: SET;
  9633. PROCEDURE Procedure (value: SET); END Procedure;
  9634. BEGIN Procedure (argument);
  9635. END Test.
  9636. negative: calling procedure with set parameter with array argument
  9637. MODULE Test;
  9638. VAR argument: ARRAY 10 OF CHAR;
  9639. PROCEDURE Procedure (value: SET); END Procedure;
  9640. BEGIN Procedure (argument);
  9641. END Test.
  9642. negative: calling procedure with set parameter with record argument
  9643. MODULE Test;
  9644. VAR argument: RECORD END;
  9645. PROCEDURE Procedure (value: SET); END Procedure;
  9646. BEGIN Procedure (argument);
  9647. END Test.
  9648. negative: calling procedure with set parameter with object argument
  9649. MODULE Test;
  9650. VAR argument: OBJECT END;
  9651. PROCEDURE Procedure (value: SET); END Procedure;
  9652. BEGIN Procedure (argument);
  9653. END Test.
  9654. negative: calling procedure with set parameter with base object argument
  9655. MODULE Test;
  9656. VAR argument: OBJECT;
  9657. PROCEDURE Procedure (value: SET); END Procedure;
  9658. BEGIN Procedure (argument);
  9659. END Test.
  9660. negative: calling procedure with set parameter with pointer to array argument
  9661. MODULE Test;
  9662. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9663. PROCEDURE Procedure (value: SET); END Procedure;
  9664. BEGIN Procedure (argument);
  9665. END Test.
  9666. negative: calling procedure with set parameter with pointer to record argument
  9667. MODULE Test;
  9668. VAR argument: POINTER TO RECORD END;
  9669. PROCEDURE Procedure (value: SET); END Procedure;
  9670. BEGIN Procedure (argument);
  9671. END Test.
  9672. negative: calling procedure with set parameter with procedure argument
  9673. MODULE Test;
  9674. VAR argument: PROCEDURE;
  9675. PROCEDURE Procedure (value: SET); END Procedure;
  9676. BEGIN Procedure (argument);
  9677. END Test.
  9678. negative: calling procedure with array parameter with boolean argument
  9679. MODULE Test;
  9680. VAR argument: BOOLEAN;
  9681. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9682. BEGIN Procedure (argument);
  9683. END Test.
  9684. negative: calling procedure with array parameter with character argument
  9685. MODULE Test;
  9686. VAR argument: CHAR;
  9687. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9688. BEGIN Procedure (argument);
  9689. END Test.
  9690. negative: calling procedure with array parameter with short integer argument
  9691. MODULE Test;
  9692. VAR argument: SHORTINT;
  9693. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9694. BEGIN Procedure (argument);
  9695. END Test.
  9696. negative: calling procedure with array parameter with integer argument
  9697. MODULE Test;
  9698. VAR argument: INTEGER;
  9699. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9700. BEGIN Procedure (argument);
  9701. END Test.
  9702. negative: calling procedure with array parameter with long integer argument
  9703. MODULE Test;
  9704. VAR argument: LONGINT;
  9705. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9706. BEGIN Procedure (argument);
  9707. END Test.
  9708. negative: calling procedure with array parameter with huge integer argument
  9709. MODULE Test;
  9710. VAR argument: HUGEINT;
  9711. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9712. BEGIN Procedure (argument);
  9713. END Test.
  9714. negative: calling procedure with array parameter with real argument
  9715. MODULE Test;
  9716. VAR argument: REAL;
  9717. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9718. BEGIN Procedure (argument);
  9719. END Test.
  9720. negative: calling procedure with array parameter with long real argument
  9721. MODULE Test;
  9722. VAR argument: LONGREAL;
  9723. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9724. BEGIN Procedure (argument);
  9725. END Test.
  9726. negative: calling procedure with array parameter with set argument
  9727. MODULE Test;
  9728. VAR argument: SET;
  9729. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9730. BEGIN Procedure (argument);
  9731. END Test.
  9732. positive: calling procedure with array parameter with array argument
  9733. MODULE Test;
  9734. VAR argument: ARRAY 10 OF CHAR;
  9735. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9736. BEGIN Procedure (argument);
  9737. END Test.
  9738. negative: calling procedure with array parameter with longer array argument
  9739. MODULE Test;
  9740. VAR argument: ARRAY 20 OF CHAR;
  9741. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9742. BEGIN Procedure (argument);
  9743. END Test.
  9744. negative: calling procedure with array parameter with shorter array argument
  9745. MODULE Test;
  9746. VAR argument: ARRAY 10 OF CHAR;
  9747. PROCEDURE Procedure (value: ARRAY 20 OF CHAR); END Procedure;
  9748. BEGIN Procedure (argument);
  9749. END Test.
  9750. negative: calling procedure with array parameter with open array argument
  9751. MODULE Test;
  9752. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9753. PROCEDURE Test (argument: ARRAY OF CHAR); BEGIN Procedure (argument); END Test;
  9754. END Test.
  9755. negative: calling procedure with array parameter with record argument
  9756. MODULE Test;
  9757. VAR argument: RECORD END;
  9758. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9759. BEGIN Procedure (argument);
  9760. END Test.
  9761. negative: calling procedure with array parameter with object argument
  9762. MODULE Test;
  9763. VAR argument: OBJECT END;
  9764. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9765. BEGIN Procedure (argument);
  9766. END Test.
  9767. negative: calling procedure with array parameter with base object argument
  9768. MODULE Test;
  9769. VAR argument: OBJECT;
  9770. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9771. BEGIN Procedure (argument);
  9772. END Test.
  9773. negative: calling procedure with array parameter with pointer to array argument
  9774. MODULE Test;
  9775. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9776. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9777. BEGIN Procedure (argument);
  9778. END Test.
  9779. negative: calling procedure with array parameter with pointer to record argument
  9780. MODULE Test;
  9781. VAR argument: POINTER TO RECORD END;
  9782. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9783. BEGIN Procedure (argument);
  9784. END Test.
  9785. negative: calling procedure with array parameter with procedure argument
  9786. MODULE Test;
  9787. VAR argument: PROCEDURE;
  9788. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9789. BEGIN Procedure (argument);
  9790. END Test.
  9791. negative: calling procedure with open array parameter with boolean argument
  9792. MODULE Test;
  9793. VAR argument: BOOLEAN;
  9794. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9795. BEGIN Procedure (argument);
  9796. END Test.
  9797. negative: calling procedure with open array parameter with character argument
  9798. MODULE Test;
  9799. VAR argument: CHAR;
  9800. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9801. BEGIN Procedure (argument);
  9802. END Test.
  9803. negative: calling procedure with open array parameter with short integer argument
  9804. MODULE Test;
  9805. VAR argument: SHORTINT;
  9806. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9807. BEGIN Procedure (argument);
  9808. END Test.
  9809. negative: calling procedure with open array parameter with integer argument
  9810. MODULE Test;
  9811. VAR argument: INTEGER;
  9812. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9813. BEGIN Procedure (argument);
  9814. END Test.
  9815. negative: calling procedure with open array parameter with long integer argument
  9816. MODULE Test;
  9817. VAR argument: LONGINT;
  9818. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9819. BEGIN Procedure (argument);
  9820. END Test.
  9821. negative: calling procedure with open array parameter with huge integer argument
  9822. MODULE Test;
  9823. VAR argument: HUGEINT;
  9824. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9825. BEGIN Procedure (argument);
  9826. END Test.
  9827. negative: calling procedure with open array parameter with real argument
  9828. MODULE Test;
  9829. VAR argument: REAL;
  9830. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9831. BEGIN Procedure (argument);
  9832. END Test.
  9833. negative: calling procedure with open array parameter with long real argument
  9834. MODULE Test;
  9835. VAR argument: LONGREAL;
  9836. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9837. BEGIN Procedure (argument);
  9838. END Test.
  9839. negative: calling procedure with open array parameter with set argument
  9840. MODULE Test;
  9841. VAR argument: SET;
  9842. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9843. BEGIN Procedure (argument);
  9844. END Test.
  9845. positive: calling procedure with open array parameter with array argument
  9846. MODULE Test;
  9847. VAR argument: ARRAY 10 OF CHAR;
  9848. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9849. BEGIN Procedure (argument);
  9850. END Test.
  9851. positive: calling procedure with open array parameter with open array argument
  9852. MODULE Test;
  9853. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9854. PROCEDURE Test (argument: ARRAY OF CHAR); BEGIN Procedure (argument); END Test;
  9855. END Test.
  9856. negative: calling procedure with open array parameter with record argument
  9857. MODULE Test;
  9858. VAR argument: RECORD END;
  9859. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9860. BEGIN Procedure (argument);
  9861. END Test.
  9862. negative: calling procedure with open array parameter with object argument
  9863. MODULE Test;
  9864. VAR argument: OBJECT END;
  9865. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9866. BEGIN Procedure (argument);
  9867. END Test.
  9868. negative: calling procedure with open array parameter with base object argument
  9869. MODULE Test;
  9870. VAR argument: OBJECT;
  9871. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9872. BEGIN Procedure (argument);
  9873. END Test.
  9874. negative: calling procedure with open array parameter with pointer to array argument
  9875. MODULE Test;
  9876. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9877. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9878. BEGIN Procedure (argument);
  9879. END Test.
  9880. negative: calling procedure with open array parameter with pointer to record argument
  9881. MODULE Test;
  9882. VAR argument: POINTER TO RECORD END;
  9883. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9884. BEGIN Procedure (argument);
  9885. END Test.
  9886. negative: calling procedure with open array parameter with procedure argument
  9887. MODULE Test;
  9888. VAR argument: PROCEDURE;
  9889. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9890. BEGIN Procedure (argument);
  9891. END Test.
  9892. negative: calling procedure with record parameter with boolean argument
  9893. MODULE Test;
  9894. VAR argument: BOOLEAN;
  9895. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9896. BEGIN Procedure (argument);
  9897. END Test.
  9898. negative: calling procedure with record parameter with character argument
  9899. MODULE Test;
  9900. VAR argument: CHAR;
  9901. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9902. BEGIN Procedure (argument);
  9903. END Test.
  9904. negative: calling procedure with record parameter with short integer argument
  9905. MODULE Test;
  9906. VAR argument: SHORTINT;
  9907. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9908. BEGIN Procedure (argument);
  9909. END Test.
  9910. negative: calling procedure with record parameter with integer argument
  9911. MODULE Test;
  9912. VAR argument: INTEGER;
  9913. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9914. BEGIN Procedure (argument);
  9915. END Test.
  9916. negative: calling procedure with record parameter with long integer argument
  9917. MODULE Test;
  9918. VAR argument: LONGINT;
  9919. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9920. BEGIN Procedure (argument);
  9921. END Test.
  9922. negative: calling procedure with record parameter with huge integer argument
  9923. MODULE Test;
  9924. VAR argument: HUGEINT;
  9925. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9926. BEGIN Procedure (argument);
  9927. END Test.
  9928. negative: calling procedure with record parameter with real argument
  9929. MODULE Test;
  9930. VAR argument: REAL;
  9931. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9932. BEGIN Procedure (argument);
  9933. END Test.
  9934. negative: calling procedure with record parameter with long real argument
  9935. MODULE Test;
  9936. VAR argument: LONGREAL;
  9937. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9938. BEGIN Procedure (argument);
  9939. END Test.
  9940. negative: calling procedure with record parameter with set argument
  9941. MODULE Test;
  9942. VAR argument: SET;
  9943. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9944. BEGIN Procedure (argument);
  9945. END Test.
  9946. negative: calling procedure with record parameter with array argument
  9947. MODULE Test;
  9948. VAR argument: ARRAY 10 OF CHAR;
  9949. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9950. BEGIN Procedure (argument);
  9951. END Test.
  9952. positive: calling procedure with record parameter with record argument
  9953. MODULE Test;
  9954. TYPE Record = RECORD END;
  9955. VAR argument: Record;
  9956. PROCEDURE Procedure (value: Record); END Procedure;
  9957. BEGIN Procedure (argument);
  9958. END Test.
  9959. positive: calling procedure with record parameter with compatible record argument
  9960. MODULE Test;
  9961. TYPE Record = RECORD END;
  9962. VAR argument: RECORD (Record) END;
  9963. PROCEDURE Procedure (value: Record); END Procedure;
  9964. BEGIN Procedure (argument);
  9965. END Test.
  9966. negative: calling procedure with record parameter with incompatible record argument
  9967. MODULE Test;
  9968. TYPE Record = RECORD END;
  9969. VAR argument: Record;
  9970. PROCEDURE Procedure (value: RECORD (Record) END); END Procedure;
  9971. BEGIN Procedure (argument);
  9972. END Test.
  9973. negative: calling procedure with record parameter with object argument
  9974. MODULE Test;
  9975. VAR argument: OBJECT END;
  9976. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9977. BEGIN Procedure (argument);
  9978. END Test.
  9979. negative: calling procedure with record parameter with base object argument
  9980. MODULE Test;
  9981. VAR argument: OBJECT;
  9982. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9983. BEGIN Procedure (argument);
  9984. END Test.
  9985. negative: calling procedure with record parameter with pointer to array argument
  9986. MODULE Test;
  9987. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9988. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9989. BEGIN Procedure (argument);
  9990. END Test.
  9991. negative: calling procedure with record parameter with pointer to record argument
  9992. MODULE Test;
  9993. VAR argument: POINTER TO RECORD END;
  9994. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9995. BEGIN Procedure (argument);
  9996. END Test.
  9997. negative: calling procedure with record parameter with procedure argument
  9998. MODULE Test;
  9999. VAR argument: PROCEDURE;
  10000. PROCEDURE Procedure (value: RECORD END); END Procedure;
  10001. BEGIN Procedure (argument);
  10002. END Test.
  10003. negative: calling procedure with object parameter with boolean argument
  10004. MODULE Test;
  10005. VAR argument: BOOLEAN;
  10006. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10007. BEGIN Procedure (argument);
  10008. END Test.
  10009. negative: calling procedure with object parameter with character argument
  10010. MODULE Test;
  10011. VAR argument: CHAR;
  10012. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10013. BEGIN Procedure (argument);
  10014. END Test.
  10015. negative: calling procedure with object parameter with short integer argument
  10016. MODULE Test;
  10017. VAR argument: SHORTINT;
  10018. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10019. BEGIN Procedure (argument);
  10020. END Test.
  10021. negative: calling procedure with object parameter with integer argument
  10022. MODULE Test;
  10023. VAR argument: INTEGER;
  10024. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10025. BEGIN Procedure (argument);
  10026. END Test.
  10027. negative: calling procedure with object parameter with long integer argument
  10028. MODULE Test;
  10029. VAR argument: LONGINT;
  10030. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10031. BEGIN Procedure (argument);
  10032. END Test.
  10033. negative: calling procedure with object parameter with huge integer argument
  10034. MODULE Test;
  10035. VAR argument: HUGEINT;
  10036. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10037. BEGIN Procedure (argument);
  10038. END Test.
  10039. negative: calling procedure with object parameter with real argument
  10040. MODULE Test;
  10041. VAR argument: REAL;
  10042. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10043. BEGIN Procedure (argument);
  10044. END Test.
  10045. negative: calling procedure with object parameter with long real argument
  10046. MODULE Test;
  10047. VAR argument: LONGREAL;
  10048. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10049. BEGIN Procedure (argument);
  10050. END Test.
  10051. negative: calling procedure with object parameter with set argument
  10052. MODULE Test;
  10053. VAR argument: SET;
  10054. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10055. BEGIN Procedure (argument);
  10056. END Test.
  10057. negative: calling procedure with object parameter with array argument
  10058. MODULE Test;
  10059. VAR argument: ARRAY 10 OF CHAR;
  10060. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10061. BEGIN Procedure (argument);
  10062. END Test.
  10063. negative: calling procedure with object parameter with record argument
  10064. MODULE Test;
  10065. VAR argument: RECORD END;
  10066. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10067. BEGIN Procedure (argument);
  10068. END Test.
  10069. positive: calling procedure with object parameter with object argument
  10070. MODULE Test;
  10071. TYPE Object = OBJECT END Object;
  10072. VAR argument: Object;
  10073. PROCEDURE Procedure (value: Object); END Procedure;
  10074. BEGIN Procedure (argument);
  10075. END Test.
  10076. positive: calling procedure with object parameter with compatible object argument
  10077. MODULE Test;
  10078. TYPE Object = OBJECT END Object;
  10079. VAR argument: OBJECT (Object) END;
  10080. PROCEDURE Procedure (value: Object); END Procedure;
  10081. BEGIN Procedure (argument);
  10082. END Test.
  10083. negative: calling procedure with object parameter with incompatible object argument
  10084. MODULE Test;
  10085. TYPE Object = OBJECT END Object;
  10086. VAR argument: Object;
  10087. PROCEDURE Procedure (value: OBJECT (Object) END); END Procedure;
  10088. BEGIN Procedure (argument);
  10089. END Test.
  10090. negative: calling procedure with object parameter with base object argument
  10091. MODULE Test;
  10092. VAR argument: OBJECT;
  10093. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10094. BEGIN Procedure (argument);
  10095. END Test.
  10096. negative: calling procedure with object parameter with pointer to array argument
  10097. MODULE Test;
  10098. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10099. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10100. BEGIN Procedure (argument);
  10101. END Test.
  10102. negative: calling procedure with object parameter with pointer to record argument
  10103. MODULE Test;
  10104. VAR argument: POINTER TO RECORD END;
  10105. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10106. BEGIN Procedure (argument);
  10107. END Test.
  10108. negative: calling procedure with object parameter with procedure argument
  10109. MODULE Test;
  10110. VAR argument: PROCEDURE;
  10111. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10112. BEGIN Procedure (argument);
  10113. END Test.
  10114. negative: calling procedure with base object parameter with boolean argument
  10115. MODULE Test;
  10116. VAR argument: BOOLEAN;
  10117. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10118. BEGIN Procedure (argument);
  10119. END Test.
  10120. negative: calling procedure with base object parameter with character argument
  10121. MODULE Test;
  10122. VAR argument: CHAR;
  10123. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10124. BEGIN Procedure (argument);
  10125. END Test.
  10126. negative: calling procedure with base object parameter with short integer argument
  10127. MODULE Test;
  10128. VAR argument: SHORTINT;
  10129. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10130. BEGIN Procedure (argument);
  10131. END Test.
  10132. negative: calling procedure with base object parameter with integer argument
  10133. MODULE Test;
  10134. VAR argument: INTEGER;
  10135. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10136. BEGIN Procedure (argument);
  10137. END Test.
  10138. negative: calling procedure with base object parameter with long integer argument
  10139. MODULE Test;
  10140. VAR argument: LONGINT;
  10141. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10142. BEGIN Procedure (argument);
  10143. END Test.
  10144. negative: calling procedure with base object parameter with huge integer argument
  10145. MODULE Test;
  10146. VAR argument: HUGEINT;
  10147. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10148. BEGIN Procedure (argument);
  10149. END Test.
  10150. negative: calling procedure with base object parameter with real argument
  10151. MODULE Test;
  10152. VAR argument: REAL;
  10153. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10154. BEGIN Procedure (argument);
  10155. END Test.
  10156. negative: calling procedure with base object parameter with long real argument
  10157. MODULE Test;
  10158. VAR argument: LONGREAL;
  10159. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10160. BEGIN Procedure (argument);
  10161. END Test.
  10162. negative: calling procedure with base object parameter with set argument
  10163. MODULE Test;
  10164. VAR argument: SET;
  10165. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10166. BEGIN Procedure (argument);
  10167. END Test.
  10168. negative: calling procedure with base object parameter with array argument
  10169. MODULE Test;
  10170. VAR argument: ARRAY 10 OF CHAR;
  10171. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10172. BEGIN Procedure (argument);
  10173. END Test.
  10174. negative: calling procedure with base object parameter with record argument
  10175. MODULE Test;
  10176. VAR argument: RECORD END;
  10177. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10178. BEGIN Procedure (argument);
  10179. END Test.
  10180. positive: calling procedure with base object parameter with object argument
  10181. MODULE Test;
  10182. VAR argument: OBJECT END;
  10183. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10184. BEGIN Procedure (argument);
  10185. END Test.
  10186. positive: calling procedure with base object parameter with base object argument
  10187. MODULE Test;
  10188. VAR argument: OBJECT;
  10189. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10190. BEGIN Procedure (argument);
  10191. END Test.
  10192. positive: calling procedure with base object parameter with pointer to record argument
  10193. MODULE Test;
  10194. VAR argument: POINTER TO RECORD END;
  10195. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10196. BEGIN Procedure (argument);
  10197. END Test.
  10198. negative: calling procedure with base object parameter with pointer to array argument
  10199. MODULE Test;
  10200. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10201. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10202. BEGIN Procedure (argument);
  10203. END Test.
  10204. negative: calling procedure with base object parameter with procedure argument
  10205. MODULE Test;
  10206. VAR argument: PROCEDURE;
  10207. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10208. BEGIN Procedure (argument);
  10209. END Test.
  10210. negative: calling procedure with pointer to array parameter with boolean argument
  10211. MODULE Test;
  10212. VAR argument: BOOLEAN;
  10213. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10214. BEGIN Procedure (argument);
  10215. END Test.
  10216. negative: calling procedure with pointer to array parameter with character argument
  10217. MODULE Test;
  10218. VAR argument: CHAR;
  10219. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10220. BEGIN Procedure (argument);
  10221. END Test.
  10222. negative: calling procedure with pointer to array parameter with short integer argument
  10223. MODULE Test;
  10224. VAR argument: SHORTINT;
  10225. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10226. BEGIN Procedure (argument);
  10227. END Test.
  10228. negative: calling procedure with pointer to array parameter with integer argument
  10229. MODULE Test;
  10230. VAR argument: INTEGER;
  10231. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10232. BEGIN Procedure (argument);
  10233. END Test.
  10234. negative: calling procedure with pointer to array parameter with long integer argument
  10235. MODULE Test;
  10236. VAR argument: LONGINT;
  10237. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10238. BEGIN Procedure (argument);
  10239. END Test.
  10240. negative: calling procedure with pointer to array parameter with huge integer argument
  10241. MODULE Test;
  10242. VAR argument: HUGEINT;
  10243. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10244. BEGIN Procedure (argument);
  10245. END Test.
  10246. negative: calling procedure with pointer to array parameter with real argument
  10247. MODULE Test;
  10248. VAR argument: REAL;
  10249. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10250. BEGIN Procedure (argument);
  10251. END Test.
  10252. negative: calling procedure with pointer to array parameter with long real argument
  10253. MODULE Test;
  10254. VAR argument: LONGREAL;
  10255. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10256. BEGIN Procedure (argument);
  10257. END Test.
  10258. negative: calling procedure with pointer to array parameter with set argument
  10259. MODULE Test;
  10260. VAR argument: SET;
  10261. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10262. BEGIN Procedure (argument);
  10263. END Test.
  10264. negative: calling procedure with pointer to array parameter with array argument
  10265. MODULE Test;
  10266. VAR argument: ARRAY 10 OF CHAR;
  10267. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10268. BEGIN Procedure (argument);
  10269. END Test.
  10270. negative: calling procedure with pointer to array parameter with record argument
  10271. MODULE Test;
  10272. VAR argument: RECORD END;
  10273. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10274. BEGIN Procedure (argument);
  10275. END Test.
  10276. negative: calling procedure with pointer to array parameter with object argument
  10277. MODULE Test;
  10278. VAR argument: OBJECT END;
  10279. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10280. BEGIN Procedure (argument);
  10281. END Test.
  10282. negative: calling procedure with pointer to array parameter with base object argument
  10283. MODULE Test;
  10284. VAR argument: OBJECT;
  10285. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10286. BEGIN Procedure (argument);
  10287. END Test.
  10288. positive: calling procedure with pointer to array parameter with pointer to array argument
  10289. MODULE Test;
  10290. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10291. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10292. BEGIN Procedure (argument);
  10293. END Test.
  10294. negative: calling procedure with pointer to array parameter with pointer to record argument
  10295. MODULE Test;
  10296. VAR argument: POINTER TO RECORD END;
  10297. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10298. BEGIN Procedure (argument);
  10299. END Test.
  10300. negative: calling procedure with pointer to array parameter with procedure argument
  10301. MODULE Test;
  10302. VAR argument: PROCEDURE;
  10303. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10304. BEGIN Procedure (argument);
  10305. END Test.
  10306. negative: calling procedure with pointer to record parameter with boolean argument
  10307. MODULE Test;
  10308. VAR argument: BOOLEAN;
  10309. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10310. BEGIN Procedure (argument);
  10311. END Test.
  10312. negative: calling procedure with pointer to record parameter with character argument
  10313. MODULE Test;
  10314. VAR argument: CHAR;
  10315. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10316. BEGIN Procedure (argument);
  10317. END Test.
  10318. negative: calling procedure with pointer to record parameter with short integer argument
  10319. MODULE Test;
  10320. VAR argument: SHORTINT;
  10321. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10322. BEGIN Procedure (argument);
  10323. END Test.
  10324. negative: calling procedure with pointer to record parameter with integer argument
  10325. MODULE Test;
  10326. VAR argument: INTEGER;
  10327. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10328. BEGIN Procedure (argument);
  10329. END Test.
  10330. negative: calling procedure with pointer to record parameter with long integer argument
  10331. MODULE Test;
  10332. VAR argument: LONGINT;
  10333. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10334. BEGIN Procedure (argument);
  10335. END Test.
  10336. negative: calling procedure with pointer to record parameter with huge integer argument
  10337. MODULE Test;
  10338. VAR argument: HUGEINT;
  10339. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10340. BEGIN Procedure (argument);
  10341. END Test.
  10342. negative: calling procedure with pointer to record parameter with real argument
  10343. MODULE Test;
  10344. VAR argument: REAL;
  10345. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10346. BEGIN Procedure (argument);
  10347. END Test.
  10348. negative: calling procedure with pointer to record parameter with long real argument
  10349. MODULE Test;
  10350. VAR argument: LONGREAL;
  10351. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10352. BEGIN Procedure (argument);
  10353. END Test.
  10354. negative: calling procedure with pointer to record parameter with set argument
  10355. MODULE Test;
  10356. VAR argument: SET;
  10357. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10358. BEGIN Procedure (argument);
  10359. END Test.
  10360. negative: calling procedure with pointer to record parameter with array argument
  10361. MODULE Test;
  10362. VAR argument: ARRAY 10 OF CHAR;
  10363. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10364. BEGIN Procedure (argument);
  10365. END Test.
  10366. negative: calling procedure with pointer to record parameter with record argument
  10367. MODULE Test;
  10368. VAR argument: RECORD END;
  10369. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10370. BEGIN Procedure (argument);
  10371. END Test.
  10372. negative: calling procedure with pointer to record parameter with object argument
  10373. MODULE Test;
  10374. VAR argument: OBJECT END;
  10375. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10376. BEGIN Procedure (argument);
  10377. END Test.
  10378. negative: calling procedure with pointer to record parameter with base object argument
  10379. MODULE Test;
  10380. VAR argument: OBJECT;
  10381. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10382. BEGIN Procedure (argument);
  10383. END Test.
  10384. negative: calling procedure with pointer to record parameter with pointer to array argument
  10385. MODULE Test;
  10386. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10387. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10388. BEGIN Procedure (argument);
  10389. END Test.
  10390. positive: calling procedure with pointer to record parameter with pointer to record argument
  10391. MODULE Test;
  10392. TYPE Record = RECORD END;
  10393. VAR argument: POINTER TO Record;
  10394. PROCEDURE Procedure (value: POINTER TO Record); END Procedure;
  10395. BEGIN Procedure (argument);
  10396. END Test.
  10397. positive: calling procedure with pointer to record parameter with compatible pointer to record argument
  10398. MODULE Test;
  10399. TYPE Record = RECORD END;
  10400. VAR argument: POINTER TO RECORD (Record) END;
  10401. PROCEDURE Procedure (value: POINTER TO Record); END Procedure;
  10402. BEGIN Procedure (argument);
  10403. END Test.
  10404. negative: calling procedure with pointer to record parameter with incompatible pointer to record argument
  10405. MODULE Test;
  10406. TYPE Record = RECORD END;
  10407. VAR argument: POINTER TO Record;
  10408. PROCEDURE Procedure (value: POINTER TO RECORD (Record) END); END Procedure;
  10409. BEGIN Procedure (argument);
  10410. END Test.
  10411. negative: calling procedure with pointer to record parameter with procedure argument
  10412. MODULE Test;
  10413. VAR argument: PROCEDURE;
  10414. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10415. BEGIN Procedure (argument);
  10416. END Test.
  10417. negative: calling procedure with procedure parameter with boolean argument
  10418. MODULE Test;
  10419. VAR argument: BOOLEAN;
  10420. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10421. BEGIN Procedure (argument);
  10422. END Test.
  10423. negative: calling procedure with procedure parameter with character argument
  10424. MODULE Test;
  10425. VAR argument: CHAR;
  10426. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10427. BEGIN Procedure (argument);
  10428. END Test.
  10429. negative: calling procedure with procedure parameter with short integer argument
  10430. MODULE Test;
  10431. VAR argument: SHORTINT;
  10432. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10433. BEGIN Procedure (argument);
  10434. END Test.
  10435. negative: calling procedure with procedure parameter with integer argument
  10436. MODULE Test;
  10437. VAR argument: INTEGER;
  10438. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10439. BEGIN Procedure (argument);
  10440. END Test.
  10441. negative: calling procedure with procedure parameter with long integer argument
  10442. MODULE Test;
  10443. VAR argument: LONGINT;
  10444. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10445. BEGIN Procedure (argument);
  10446. END Test.
  10447. negative: calling procedure with procedure parameter with huge integer argument
  10448. MODULE Test;
  10449. VAR argument: HUGEINT;
  10450. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10451. BEGIN Procedure (argument);
  10452. END Test.
  10453. negative: calling procedure with procedure parameter with real argument
  10454. MODULE Test;
  10455. VAR argument: REAL;
  10456. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10457. BEGIN Procedure (argument);
  10458. END Test.
  10459. negative: calling procedure with procedure parameter with long real argument
  10460. MODULE Test;
  10461. VAR argument: LONGREAL;
  10462. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10463. BEGIN Procedure (argument);
  10464. END Test.
  10465. negative: calling procedure with procedure parameter with set argument
  10466. MODULE Test;
  10467. VAR argument: SET;
  10468. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10469. BEGIN Procedure (argument);
  10470. END Test.
  10471. negative: calling procedure with procedure parameter with array argument
  10472. MODULE Test;
  10473. VAR argument: ARRAY 10 OF CHAR;
  10474. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10475. BEGIN Procedure (argument);
  10476. END Test.
  10477. negative: calling procedure with procedure parameter with record argument
  10478. MODULE Test;
  10479. VAR argument: RECORD END;
  10480. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10481. BEGIN Procedure (argument);
  10482. END Test.
  10483. negative: calling procedure with procedure parameter with object argument
  10484. MODULE Test;
  10485. VAR argument: OBJECT END;
  10486. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10487. BEGIN Procedure (argument);
  10488. END Test.
  10489. negative: calling procedure with procedure parameter with base object argument
  10490. MODULE Test;
  10491. VAR argument: OBJECT;
  10492. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10493. BEGIN Procedure (argument);
  10494. END Test.
  10495. negative: calling procedure with procedure parameter with pointer to array argument
  10496. MODULE Test;
  10497. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10498. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10499. BEGIN Procedure (argument);
  10500. END Test.
  10501. negative: calling procedure with procedure parameter with pointer to record argument
  10502. MODULE Test;
  10503. VAR argument: POINTER TO RECORD END;
  10504. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10505. BEGIN Procedure (argument);
  10506. END Test.
  10507. positive: calling procedure with procedure parameter with procedure argument
  10508. MODULE Test;
  10509. VAR argument: PROCEDURE;
  10510. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10511. BEGIN Procedure (argument);
  10512. END Test.
  10513. positive: calling procedure with boolean variable parameter with boolean argument
  10514. MODULE Test;
  10515. VAR argument: BOOLEAN;
  10516. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10517. BEGIN Procedure (argument);
  10518. END Test.
  10519. negative: calling procedure with boolean variable parameter with character argument
  10520. MODULE Test;
  10521. VAR argument: CHAR;
  10522. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10523. BEGIN Procedure (argument);
  10524. END Test.
  10525. negative: calling procedure with boolean variable parameter with short integer argument
  10526. MODULE Test;
  10527. VAR argument: SHORTINT;
  10528. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10529. BEGIN Procedure (argument);
  10530. END Test.
  10531. negative: calling procedure with boolean variable parameter with integer argument
  10532. MODULE Test;
  10533. VAR argument: INTEGER;
  10534. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10535. BEGIN Procedure (argument);
  10536. END Test.
  10537. negative: calling procedure with boolean variable parameter with long integer argument
  10538. MODULE Test;
  10539. VAR argument: LONGINT;
  10540. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10541. BEGIN Procedure (argument);
  10542. END Test.
  10543. negative: calling procedure with boolean variable parameter with huge integer argument
  10544. MODULE Test;
  10545. VAR argument: HUGEINT;
  10546. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10547. BEGIN Procedure (argument);
  10548. END Test.
  10549. negative: calling procedure with boolean variable parameter with real argument
  10550. MODULE Test;
  10551. VAR argument: REAL;
  10552. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10553. BEGIN Procedure (argument);
  10554. END Test.
  10555. negative: calling procedure with boolean variable parameter with long real argument
  10556. MODULE Test;
  10557. VAR argument: LONGREAL;
  10558. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10559. BEGIN Procedure (argument);
  10560. END Test.
  10561. negative: calling procedure with boolean variable parameter with set argument
  10562. MODULE Test;
  10563. VAR argument: SET;
  10564. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10565. BEGIN Procedure (argument);
  10566. END Test.
  10567. negative: calling procedure with boolean variable parameter with array argument
  10568. MODULE Test;
  10569. VAR argument: ARRAY 10 OF CHAR;
  10570. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10571. BEGIN Procedure (argument);
  10572. END Test.
  10573. negative: calling procedure with boolean variable parameter with record argument
  10574. MODULE Test;
  10575. VAR argument: RECORD END;
  10576. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10577. BEGIN Procedure (argument);
  10578. END Test.
  10579. negative: calling procedure with boolean variable parameter with object argument
  10580. MODULE Test;
  10581. VAR argument: OBJECT END;
  10582. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10583. BEGIN Procedure (argument);
  10584. END Test.
  10585. negative: calling procedure with boolean variable parameter with base object argument
  10586. MODULE Test;
  10587. VAR argument: OBJECT;
  10588. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10589. BEGIN Procedure (argument);
  10590. END Test.
  10591. negative: calling procedure with boolean variable parameter with pointer to array argument
  10592. MODULE Test;
  10593. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10594. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10595. BEGIN Procedure (argument);
  10596. END Test.
  10597. negative: calling procedure with boolean variable parameter with pointer to record argument
  10598. MODULE Test;
  10599. VAR argument: POINTER TO RECORD END;
  10600. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10601. BEGIN Procedure (argument);
  10602. END Test.
  10603. negative: calling procedure with boolean variable parameter with procedure argument
  10604. MODULE Test;
  10605. VAR argument: PROCEDURE;
  10606. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10607. BEGIN Procedure (argument);
  10608. END Test.
  10609. negative: calling procedure with character variable parameter with boolean argument
  10610. MODULE Test;
  10611. VAR argument: BOOLEAN;
  10612. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10613. BEGIN Procedure (argument);
  10614. END Test.
  10615. positive: calling procedure with character variable parameter with character argument
  10616. MODULE Test;
  10617. VAR argument: CHAR;
  10618. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10619. BEGIN Procedure (argument);
  10620. END Test.
  10621. negative: calling procedure with character variable parameter with short integer argument
  10622. MODULE Test;
  10623. VAR argument: SHORTINT;
  10624. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10625. BEGIN Procedure (argument);
  10626. END Test.
  10627. negative: calling procedure with character variable parameter with integer argument
  10628. MODULE Test;
  10629. VAR argument: INTEGER;
  10630. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10631. BEGIN Procedure (argument);
  10632. END Test.
  10633. negative: calling procedure with character variable parameter with long integer argument
  10634. MODULE Test;
  10635. VAR argument: LONGINT;
  10636. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10637. BEGIN Procedure (argument);
  10638. END Test.
  10639. negative: calling procedure with character variable parameter with huge integer argument
  10640. MODULE Test;
  10641. VAR argument: HUGEINT;
  10642. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10643. BEGIN Procedure (argument);
  10644. END Test.
  10645. negative: calling procedure with character variable parameter with real argument
  10646. MODULE Test;
  10647. VAR argument: REAL;
  10648. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10649. BEGIN Procedure (argument);
  10650. END Test.
  10651. negative: calling procedure with character variable parameter with long real argument
  10652. MODULE Test;
  10653. VAR argument: LONGREAL;
  10654. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10655. BEGIN Procedure (argument);
  10656. END Test.
  10657. negative: calling procedure with character variable parameter with set argument
  10658. MODULE Test;
  10659. VAR argument: SET;
  10660. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10661. BEGIN Procedure (argument);
  10662. END Test.
  10663. negative: calling procedure with character variable parameter with array argument
  10664. MODULE Test;
  10665. VAR argument: ARRAY 10 OF CHAR;
  10666. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10667. BEGIN Procedure (argument);
  10668. END Test.
  10669. negative: calling procedure with character variable parameter with record argument
  10670. MODULE Test;
  10671. VAR argument: RECORD END;
  10672. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10673. BEGIN Procedure (argument);
  10674. END Test.
  10675. negative: calling procedure with character variable parameter with object argument
  10676. MODULE Test;
  10677. VAR argument: OBJECT END;
  10678. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10679. BEGIN Procedure (argument);
  10680. END Test.
  10681. negative: calling procedure with character variable parameter with base object argument
  10682. MODULE Test;
  10683. VAR argument: OBJECT;
  10684. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10685. BEGIN Procedure (argument);
  10686. END Test.
  10687. negative: calling procedure with character variable parameter with pointer to array argument
  10688. MODULE Test;
  10689. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10690. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10691. BEGIN Procedure (argument);
  10692. END Test.
  10693. negative: calling procedure with character variable parameter with pointer to record argument
  10694. MODULE Test;
  10695. VAR argument: POINTER TO RECORD END;
  10696. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10697. BEGIN Procedure (argument);
  10698. END Test.
  10699. negative: calling procedure with character variable parameter with procedure argument
  10700. MODULE Test;
  10701. VAR argument: PROCEDURE;
  10702. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10703. BEGIN Procedure (argument);
  10704. END Test.
  10705. negative: calling procedure with short integer variable parameter with boolean argument
  10706. MODULE Test;
  10707. VAR argument: BOOLEAN;
  10708. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10709. BEGIN Procedure (argument);
  10710. END Test.
  10711. negative: calling procedure with short integer variable parameter with character argument
  10712. MODULE Test;
  10713. VAR argument: CHAR;
  10714. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10715. BEGIN Procedure (argument);
  10716. END Test.
  10717. positive: calling procedure with short integer variable parameter with short integer argument
  10718. MODULE Test;
  10719. VAR argument: SHORTINT;
  10720. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10721. BEGIN Procedure (argument);
  10722. END Test.
  10723. negative: calling procedure with short integer variable parameter with integer argument
  10724. MODULE Test;
  10725. VAR argument: INTEGER;
  10726. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10727. BEGIN Procedure (argument);
  10728. END Test.
  10729. negative: calling procedure with short integer variable parameter with long integer argument
  10730. MODULE Test;
  10731. VAR argument: LONGINT;
  10732. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10733. BEGIN Procedure (argument);
  10734. END Test.
  10735. negative: calling procedure with short integer variable parameter with huge integer argument
  10736. MODULE Test;
  10737. VAR argument: HUGEINT;
  10738. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10739. BEGIN Procedure (argument);
  10740. END Test.
  10741. negative: calling procedure with short integer variable parameter with real argument
  10742. MODULE Test;
  10743. VAR argument: REAL;
  10744. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10745. BEGIN Procedure (argument);
  10746. END Test.
  10747. negative: calling procedure with short integer variable parameter with long real argument
  10748. MODULE Test;
  10749. VAR argument: LONGREAL;
  10750. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10751. BEGIN Procedure (argument);
  10752. END Test.
  10753. negative: calling procedure with short integer variable parameter with set argument
  10754. MODULE Test;
  10755. VAR argument: SET;
  10756. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10757. BEGIN Procedure (argument);
  10758. END Test.
  10759. negative: calling procedure with short integer variable parameter with array argument
  10760. MODULE Test;
  10761. VAR argument: ARRAY 10 OF CHAR;
  10762. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10763. BEGIN Procedure (argument);
  10764. END Test.
  10765. negative: calling procedure with short integer variable parameter with record argument
  10766. MODULE Test;
  10767. VAR argument: RECORD END;
  10768. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10769. BEGIN Procedure (argument);
  10770. END Test.
  10771. negative: calling procedure with short integer variable parameter with object argument
  10772. MODULE Test;
  10773. VAR argument: OBJECT END;
  10774. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10775. BEGIN Procedure (argument);
  10776. END Test.
  10777. negative: calling procedure with short integer variable parameter with base object argument
  10778. MODULE Test;
  10779. VAR argument: OBJECT;
  10780. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10781. BEGIN Procedure (argument);
  10782. END Test.
  10783. negative: calling procedure with short integer variable parameter with pointer to array argument
  10784. MODULE Test;
  10785. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10786. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10787. BEGIN Procedure (argument);
  10788. END Test.
  10789. negative: calling procedure with short integer variable parameter with pointer to record argument
  10790. MODULE Test;
  10791. VAR argument: POINTER TO RECORD END;
  10792. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10793. BEGIN Procedure (argument);
  10794. END Test.
  10795. negative: calling procedure with short integer variable parameter with procedure argument
  10796. MODULE Test;
  10797. VAR argument: PROCEDURE;
  10798. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10799. BEGIN Procedure (argument);
  10800. END Test.
  10801. negative: calling procedure with integer variable parameter with boolean argument
  10802. MODULE Test;
  10803. VAR argument: BOOLEAN;
  10804. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10805. BEGIN Procedure (argument);
  10806. END Test.
  10807. negative: calling procedure with integer variable parameter with character argument
  10808. MODULE Test;
  10809. VAR argument: CHAR;
  10810. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10811. BEGIN Procedure (argument);
  10812. END Test.
  10813. negative: calling procedure with integer variable parameter with short integer argument
  10814. MODULE Test;
  10815. VAR argument: SHORTINT;
  10816. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10817. BEGIN Procedure (argument);
  10818. END Test.
  10819. positive: calling procedure with integer variable parameter with integer argument
  10820. MODULE Test;
  10821. VAR argument: INTEGER;
  10822. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10823. BEGIN Procedure (argument);
  10824. END Test.
  10825. negative: calling procedure with integer variable parameter with long integer argument
  10826. MODULE Test;
  10827. VAR argument: LONGINT;
  10828. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10829. BEGIN Procedure (argument);
  10830. END Test.
  10831. negative: calling procedure with integer variable parameter with huge integer argument
  10832. MODULE Test;
  10833. VAR argument: HUGEINT;
  10834. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10835. BEGIN Procedure (argument);
  10836. END Test.
  10837. negative: calling procedure with integer variable parameter with real argument
  10838. MODULE Test;
  10839. VAR argument: REAL;
  10840. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10841. BEGIN Procedure (argument);
  10842. END Test.
  10843. negative: calling procedure with integer variable parameter with long real argument
  10844. MODULE Test;
  10845. VAR argument: LONGREAL;
  10846. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10847. BEGIN Procedure (argument);
  10848. END Test.
  10849. negative: calling procedure with integer variable parameter with set argument
  10850. MODULE Test;
  10851. VAR argument: SET;
  10852. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10853. BEGIN Procedure (argument);
  10854. END Test.
  10855. negative: calling procedure with integer variable parameter with array argument
  10856. MODULE Test;
  10857. VAR argument: ARRAY 10 OF CHAR;
  10858. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10859. BEGIN Procedure (argument);
  10860. END Test.
  10861. negative: calling procedure with integer variable parameter with record argument
  10862. MODULE Test;
  10863. VAR argument: RECORD END;
  10864. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10865. BEGIN Procedure (argument);
  10866. END Test.
  10867. negative: calling procedure with integer variable parameter with object argument
  10868. MODULE Test;
  10869. VAR argument: OBJECT END;
  10870. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10871. BEGIN Procedure (argument);
  10872. END Test.
  10873. negative: calling procedure with integer variable parameter with base object argument
  10874. MODULE Test;
  10875. VAR argument: OBJECT;
  10876. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10877. BEGIN Procedure (argument);
  10878. END Test.
  10879. negative: calling procedure with integer variable parameter with pointer to array argument
  10880. MODULE Test;
  10881. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10882. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10883. BEGIN Procedure (argument);
  10884. END Test.
  10885. negative: calling procedure with integer variable parameter with pointer to record argument
  10886. MODULE Test;
  10887. VAR argument: POINTER TO RECORD END;
  10888. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10889. BEGIN Procedure (argument);
  10890. END Test.
  10891. negative: calling procedure with integer variable parameter with procedure argument
  10892. MODULE Test;
  10893. VAR argument: PROCEDURE;
  10894. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10895. BEGIN Procedure (argument);
  10896. END Test.
  10897. negative: calling procedure with long integer variable parameter with boolean argument
  10898. MODULE Test;
  10899. VAR argument: BOOLEAN;
  10900. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10901. BEGIN Procedure (argument);
  10902. END Test.
  10903. negative: calling procedure with long integer variable parameter with character argument
  10904. MODULE Test;
  10905. VAR argument: CHAR;
  10906. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10907. BEGIN Procedure (argument);
  10908. END Test.
  10909. negative: calling procedure with long integer variable parameter with short integer argument
  10910. MODULE Test;
  10911. VAR argument: SHORTINT;
  10912. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10913. BEGIN Procedure (argument);
  10914. END Test.
  10915. negative: calling procedure with long integer variable parameter with integer argument
  10916. MODULE Test;
  10917. VAR argument: INTEGER;
  10918. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10919. BEGIN Procedure (argument);
  10920. END Test.
  10921. positive: calling procedure with long integer variable parameter with long integer argument
  10922. MODULE Test;
  10923. VAR argument: LONGINT;
  10924. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10925. BEGIN Procedure (argument);
  10926. END Test.
  10927. negative: calling procedure with long integer variable parameter with huge integer argument
  10928. MODULE Test;
  10929. VAR argument: HUGEINT;
  10930. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10931. BEGIN Procedure (argument);
  10932. END Test.
  10933. negative: calling procedure with long integer variable parameter with real argument
  10934. MODULE Test;
  10935. VAR argument: REAL;
  10936. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10937. BEGIN Procedure (argument);
  10938. END Test.
  10939. negative: calling procedure with long integer variable parameter with long real argument
  10940. MODULE Test;
  10941. VAR argument: LONGREAL;
  10942. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10943. BEGIN Procedure (argument);
  10944. END Test.
  10945. negative: calling procedure with long integer variable parameter with set argument
  10946. MODULE Test;
  10947. VAR argument: SET;
  10948. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10949. BEGIN Procedure (argument);
  10950. END Test.
  10951. negative: calling procedure with long integer variable parameter with array argument
  10952. MODULE Test;
  10953. VAR argument: ARRAY 10 OF CHAR;
  10954. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10955. BEGIN Procedure (argument);
  10956. END Test.
  10957. negative: calling procedure with long integer variable parameter with record argument
  10958. MODULE Test;
  10959. VAR argument: RECORD END;
  10960. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10961. BEGIN Procedure (argument);
  10962. END Test.
  10963. negative: calling procedure with long integer variable parameter with object argument
  10964. MODULE Test;
  10965. VAR argument: OBJECT END;
  10966. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10967. BEGIN Procedure (argument);
  10968. END Test.
  10969. negative: calling procedure with long integer variable parameter with base object argument
  10970. MODULE Test;
  10971. VAR argument: OBJECT;
  10972. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10973. BEGIN Procedure (argument);
  10974. END Test.
  10975. negative: calling procedure with long integer variable parameter with pointer to array argument
  10976. MODULE Test;
  10977. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10978. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10979. BEGIN Procedure (argument);
  10980. END Test.
  10981. negative: calling procedure with long integer variable parameter with pointer to record argument
  10982. MODULE Test;
  10983. VAR argument: POINTER TO RECORD END;
  10984. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10985. BEGIN Procedure (argument);
  10986. END Test.
  10987. negative: calling procedure with long integer variable parameter with procedure argument
  10988. MODULE Test;
  10989. VAR argument: PROCEDURE;
  10990. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10991. BEGIN Procedure (argument);
  10992. END Test.
  10993. negative: calling procedure with huge integer variable parameter with boolean argument
  10994. MODULE Test;
  10995. VAR argument: BOOLEAN;
  10996. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  10997. BEGIN Procedure (argument);
  10998. END Test.
  10999. negative: calling procedure with huge integer variable parameter with character argument
  11000. MODULE Test;
  11001. VAR argument: CHAR;
  11002. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11003. BEGIN Procedure (argument);
  11004. END Test.
  11005. negative: calling procedure with huge integer variable parameter with short integer argument
  11006. MODULE Test;
  11007. VAR argument: SHORTINT;
  11008. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11009. BEGIN Procedure (argument);
  11010. END Test.
  11011. negative: calling procedure with huge integer variable parameter with integer argument
  11012. MODULE Test;
  11013. VAR argument: INTEGER;
  11014. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11015. BEGIN Procedure (argument);
  11016. END Test.
  11017. negative: calling procedure with huge integer variable parameter with long integer argument
  11018. MODULE Test;
  11019. VAR argument: LONGINT;
  11020. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11021. BEGIN Procedure (argument);
  11022. END Test.
  11023. positive: calling procedure with huge integer variable parameter with huge integer argument
  11024. MODULE Test;
  11025. VAR argument: HUGEINT;
  11026. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11027. BEGIN Procedure (argument);
  11028. END Test.
  11029. negative: calling procedure with huge integer variable parameter with real argument
  11030. MODULE Test;
  11031. VAR argument: REAL;
  11032. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11033. BEGIN Procedure (argument);
  11034. END Test.
  11035. negative: calling procedure with huge integer variable parameter with long real argument
  11036. MODULE Test;
  11037. VAR argument: LONGREAL;
  11038. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11039. BEGIN Procedure (argument);
  11040. END Test.
  11041. negative: calling procedure with huge integer variable parameter with set argument
  11042. MODULE Test;
  11043. VAR argument: SET;
  11044. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11045. BEGIN Procedure (argument);
  11046. END Test.
  11047. negative: calling procedure with huge integer variable parameter with array argument
  11048. MODULE Test;
  11049. VAR argument: ARRAY 10 OF CHAR;
  11050. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11051. BEGIN Procedure (argument);
  11052. END Test.
  11053. negative: calling procedure with huge integer variable parameter with record argument
  11054. MODULE Test;
  11055. VAR argument: RECORD END;
  11056. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11057. BEGIN Procedure (argument);
  11058. END Test.
  11059. negative: calling procedure with huge integer variable parameter with object argument
  11060. MODULE Test;
  11061. VAR argument: OBJECT END;
  11062. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11063. BEGIN Procedure (argument);
  11064. END Test.
  11065. negative: calling procedure with huge integer variable parameter with base object argument
  11066. MODULE Test;
  11067. VAR argument: OBJECT;
  11068. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11069. BEGIN Procedure (argument);
  11070. END Test.
  11071. negative: calling procedure with huge integer variable parameter with pointer to array argument
  11072. MODULE Test;
  11073. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11074. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11075. BEGIN Procedure (argument);
  11076. END Test.
  11077. negative: calling procedure with huge integer variable parameter with pointer to record argument
  11078. MODULE Test;
  11079. VAR argument: POINTER TO RECORD END;
  11080. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11081. BEGIN Procedure (argument);
  11082. END Test.
  11083. negative: calling procedure with huge integer variable parameter with procedure argument
  11084. MODULE Test;
  11085. VAR argument: PROCEDURE;
  11086. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11087. BEGIN Procedure (argument);
  11088. END Test.
  11089. negative: calling procedure with real variable parameter with boolean argument
  11090. MODULE Test;
  11091. VAR argument: BOOLEAN;
  11092. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11093. BEGIN Procedure (argument);
  11094. END Test.
  11095. negative: calling procedure with real variable parameter with character argument
  11096. MODULE Test;
  11097. VAR argument: CHAR;
  11098. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11099. BEGIN Procedure (argument);
  11100. END Test.
  11101. negative: calling procedure with real variable parameter with short integer argument
  11102. MODULE Test;
  11103. VAR argument: SHORTINT;
  11104. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11105. BEGIN Procedure (argument);
  11106. END Test.
  11107. negative: calling procedure with real variable parameter with integer argument
  11108. MODULE Test;
  11109. VAR argument: INTEGER;
  11110. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11111. BEGIN Procedure (argument);
  11112. END Test.
  11113. negative: calling procedure with real variable parameter with long integer argument
  11114. MODULE Test;
  11115. VAR argument: LONGINT;
  11116. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11117. BEGIN Procedure (argument);
  11118. END Test.
  11119. negative: calling procedure with real variable parameter with huge integer argument
  11120. MODULE Test;
  11121. VAR argument: HUGEINT;
  11122. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11123. BEGIN Procedure (argument);
  11124. END Test.
  11125. positive: calling procedure with real variable parameter with real argument
  11126. MODULE Test;
  11127. VAR argument: REAL;
  11128. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11129. BEGIN Procedure (argument);
  11130. END Test.
  11131. negative: calling procedure with real variable parameter with long real argument
  11132. MODULE Test;
  11133. VAR argument: LONGREAL;
  11134. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11135. BEGIN Procedure (argument);
  11136. END Test.
  11137. negative: calling procedure with real variable parameter with set argument
  11138. MODULE Test;
  11139. VAR argument: SET;
  11140. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11141. BEGIN Procedure (argument);
  11142. END Test.
  11143. negative: calling procedure with real variable parameter with array argument
  11144. MODULE Test;
  11145. VAR argument: ARRAY 10 OF CHAR;
  11146. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11147. BEGIN Procedure (argument);
  11148. END Test.
  11149. negative: calling procedure with real variable parameter with record argument
  11150. MODULE Test;
  11151. VAR argument: RECORD END;
  11152. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11153. BEGIN Procedure (argument);
  11154. END Test.
  11155. negative: calling procedure with real variable parameter with object argument
  11156. MODULE Test;
  11157. VAR argument: OBJECT END;
  11158. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11159. BEGIN Procedure (argument);
  11160. END Test.
  11161. negative: calling procedure with real variable parameter with base object argument
  11162. MODULE Test;
  11163. VAR argument: OBJECT;
  11164. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11165. BEGIN Procedure (argument);
  11166. END Test.
  11167. negative: calling procedure with real variable parameter with pointer to array argument
  11168. MODULE Test;
  11169. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11170. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11171. BEGIN Procedure (argument);
  11172. END Test.
  11173. negative: calling procedure with real variable parameter with pointer to record argument
  11174. MODULE Test;
  11175. VAR argument: POINTER TO RECORD END;
  11176. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11177. BEGIN Procedure (argument);
  11178. END Test.
  11179. negative: calling procedure with real variable parameter with procedure argument
  11180. MODULE Test;
  11181. VAR argument: PROCEDURE;
  11182. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11183. BEGIN Procedure (argument);
  11184. END Test.
  11185. negative: calling procedure with long real variable parameter with boolean argument
  11186. MODULE Test;
  11187. VAR argument: BOOLEAN;
  11188. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11189. BEGIN Procedure (argument);
  11190. END Test.
  11191. negative: calling procedure with long real variable parameter with character argument
  11192. MODULE Test;
  11193. VAR argument: CHAR;
  11194. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11195. BEGIN Procedure (argument);
  11196. END Test.
  11197. negative: calling procedure with long real variable parameter with short integer argument
  11198. MODULE Test;
  11199. VAR argument: SHORTINT;
  11200. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11201. BEGIN Procedure (argument);
  11202. END Test.
  11203. negative: calling procedure with long real variable parameter with integer argument
  11204. MODULE Test;
  11205. VAR argument: INTEGER;
  11206. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11207. BEGIN Procedure (argument);
  11208. END Test.
  11209. negative: calling procedure with long real variable parameter with long integer argument
  11210. MODULE Test;
  11211. VAR argument: LONGINT;
  11212. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11213. BEGIN Procedure (argument);
  11214. END Test.
  11215. negative: calling procedure with long real variable parameter with huge integer argument
  11216. MODULE Test;
  11217. VAR argument: HUGEINT;
  11218. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11219. BEGIN Procedure (argument);
  11220. END Test.
  11221. negative: calling procedure with long real variable parameter with real argument
  11222. MODULE Test;
  11223. VAR argument: REAL;
  11224. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11225. BEGIN Procedure (argument);
  11226. END Test.
  11227. positive: calling procedure with long real variable parameter with long real argument
  11228. MODULE Test;
  11229. VAR argument: LONGREAL;
  11230. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11231. BEGIN Procedure (argument);
  11232. END Test.
  11233. negative: calling procedure with long real variable parameter with set argument
  11234. MODULE Test;
  11235. VAR argument: SET;
  11236. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11237. BEGIN Procedure (argument);
  11238. END Test.
  11239. negative: calling procedure with long real variable parameter with array argument
  11240. MODULE Test;
  11241. VAR argument: ARRAY 10 OF CHAR;
  11242. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11243. BEGIN Procedure (argument);
  11244. END Test.
  11245. negative: calling procedure with long real variable parameter with record argument
  11246. MODULE Test;
  11247. VAR argument: RECORD END;
  11248. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11249. BEGIN Procedure (argument);
  11250. END Test.
  11251. negative: calling procedure with long real variable parameter with object argument
  11252. MODULE Test;
  11253. VAR argument: OBJECT END;
  11254. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11255. BEGIN Procedure (argument);
  11256. END Test.
  11257. negative: calling procedure with long real variable parameter with base object argument
  11258. MODULE Test;
  11259. VAR argument: OBJECT;
  11260. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11261. BEGIN Procedure (argument);
  11262. END Test.
  11263. negative: calling procedure with long real variable parameter with pointer to array argument
  11264. MODULE Test;
  11265. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11266. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11267. BEGIN Procedure (argument);
  11268. END Test.
  11269. negative: calling procedure with long real variable parameter with pointer to record argument
  11270. MODULE Test;
  11271. VAR argument: POINTER TO RECORD END;
  11272. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11273. BEGIN Procedure (argument);
  11274. END Test.
  11275. negative: calling procedure with long real variable parameter with procedure argument
  11276. MODULE Test;
  11277. VAR argument: PROCEDURE;
  11278. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11279. BEGIN Procedure (argument);
  11280. END Test.
  11281. negative: calling procedure with set variable parameter with boolean argument
  11282. MODULE Test;
  11283. VAR argument: BOOLEAN;
  11284. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11285. BEGIN Procedure (argument);
  11286. END Test.
  11287. negative: calling procedure with set variable parameter with character argument
  11288. MODULE Test;
  11289. VAR argument: CHAR;
  11290. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11291. BEGIN Procedure (argument);
  11292. END Test.
  11293. negative: calling procedure with set variable parameter with short integer argument
  11294. MODULE Test;
  11295. VAR argument: SHORTINT;
  11296. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11297. BEGIN Procedure (argument);
  11298. END Test.
  11299. negative: calling procedure with set variable parameter with integer argument
  11300. MODULE Test;
  11301. VAR argument: INTEGER;
  11302. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11303. BEGIN Procedure (argument);
  11304. END Test.
  11305. negative: calling procedure with set variable parameter with long integer argument
  11306. MODULE Test;
  11307. VAR argument: LONGINT;
  11308. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11309. BEGIN Procedure (argument);
  11310. END Test.
  11311. negative: calling procedure with set variable parameter with huge integer argument
  11312. MODULE Test;
  11313. VAR argument: HUGEINT;
  11314. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11315. BEGIN Procedure (argument);
  11316. END Test.
  11317. negative: calling procedure with set variable parameter with real argument
  11318. MODULE Test;
  11319. VAR argument: REAL;
  11320. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11321. BEGIN Procedure (argument);
  11322. END Test.
  11323. negative: calling procedure with set variable parameter with long real argument
  11324. MODULE Test;
  11325. VAR argument: LONGREAL;
  11326. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11327. BEGIN Procedure (argument);
  11328. END Test.
  11329. positive: calling procedure with set variable parameter with set argument
  11330. MODULE Test;
  11331. VAR argument: SET;
  11332. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11333. BEGIN Procedure (argument);
  11334. END Test.
  11335. negative: calling procedure with set variable parameter with array argument
  11336. MODULE Test;
  11337. VAR argument: ARRAY 10 OF CHAR;
  11338. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11339. BEGIN Procedure (argument);
  11340. END Test.
  11341. negative: calling procedure with set variable parameter with record argument
  11342. MODULE Test;
  11343. VAR argument: RECORD END;
  11344. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11345. BEGIN Procedure (argument);
  11346. END Test.
  11347. negative: calling procedure with set variable parameter with object argument
  11348. MODULE Test;
  11349. VAR argument: OBJECT END;
  11350. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11351. BEGIN Procedure (argument);
  11352. END Test.
  11353. negative: calling procedure with set variable parameter with base object argument
  11354. MODULE Test;
  11355. VAR argument: OBJECT;
  11356. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11357. BEGIN Procedure (argument);
  11358. END Test.
  11359. negative: calling procedure with set variable parameter with pointer to array argument
  11360. MODULE Test;
  11361. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11362. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11363. BEGIN Procedure (argument);
  11364. END Test.
  11365. negative: calling procedure with set variable parameter with pointer to record argument
  11366. MODULE Test;
  11367. VAR argument: POINTER TO RECORD END;
  11368. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11369. BEGIN Procedure (argument);
  11370. END Test.
  11371. negative: calling procedure with set variable parameter with procedure argument
  11372. MODULE Test;
  11373. VAR argument: PROCEDURE;
  11374. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11375. BEGIN Procedure (argument);
  11376. END Test.
  11377. negative: calling procedure with array variable parameter with boolean argument
  11378. MODULE Test;
  11379. VAR argument: BOOLEAN;
  11380. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11381. BEGIN Procedure (argument);
  11382. END Test.
  11383. negative: calling procedure with array variable parameter with character argument
  11384. MODULE Test;
  11385. VAR argument: CHAR;
  11386. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11387. BEGIN Procedure (argument);
  11388. END Test.
  11389. negative: calling procedure with array variable parameter with short integer argument
  11390. MODULE Test;
  11391. VAR argument: SHORTINT;
  11392. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11393. BEGIN Procedure (argument);
  11394. END Test.
  11395. negative: calling procedure with array variable parameter with integer argument
  11396. MODULE Test;
  11397. VAR argument: INTEGER;
  11398. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11399. BEGIN Procedure (argument);
  11400. END Test.
  11401. negative: calling procedure with array variable parameter with long integer argument
  11402. MODULE Test;
  11403. VAR argument: LONGINT;
  11404. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11405. BEGIN Procedure (argument);
  11406. END Test.
  11407. negative: calling procedure with array variable parameter with huge integer argument
  11408. MODULE Test;
  11409. VAR argument: HUGEINT;
  11410. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11411. BEGIN Procedure (argument);
  11412. END Test.
  11413. negative: calling procedure with array variable parameter with real argument
  11414. MODULE Test;
  11415. VAR argument: REAL;
  11416. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11417. BEGIN Procedure (argument);
  11418. END Test.
  11419. negative: calling procedure with array variable parameter with long real argument
  11420. MODULE Test;
  11421. VAR argument: LONGREAL;
  11422. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11423. BEGIN Procedure (argument);
  11424. END Test.
  11425. negative: calling procedure with array variable parameter with set argument
  11426. MODULE Test;
  11427. VAR argument: SET;
  11428. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11429. BEGIN Procedure (argument);
  11430. END Test.
  11431. positive: calling procedure with array variable parameter with array argument
  11432. MODULE Test;
  11433. VAR argument: ARRAY 10 OF CHAR;
  11434. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11435. BEGIN Procedure (argument);
  11436. END Test.
  11437. negative: calling procedure with array variable parameter with longer array argument
  11438. MODULE Test;
  11439. VAR argument: ARRAY 20 OF CHAR;
  11440. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11441. BEGIN Procedure (argument);
  11442. END Test.
  11443. negative: calling procedure with array variable parameter with record argument
  11444. MODULE Test;
  11445. VAR argument: RECORD END;
  11446. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11447. BEGIN Procedure (argument);
  11448. END Test.
  11449. negative: calling procedure with array variable parameter with object argument
  11450. MODULE Test;
  11451. VAR argument: OBJECT END;
  11452. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11453. BEGIN Procedure (argument);
  11454. END Test.
  11455. negative: calling procedure with array variable parameter with base object argument
  11456. MODULE Test;
  11457. VAR argument: OBJECT;
  11458. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11459. BEGIN Procedure (argument);
  11460. END Test.
  11461. negative: calling procedure with array variable parameter with pointer to array argument
  11462. MODULE Test;
  11463. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11464. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11465. BEGIN Procedure (argument);
  11466. END Test.
  11467. negative: calling procedure with array variable parameter with pointer to record argument
  11468. MODULE Test;
  11469. VAR argument: POINTER TO RECORD END;
  11470. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11471. BEGIN Procedure (argument);
  11472. END Test.
  11473. negative: calling procedure with array variable parameter with procedure argument
  11474. MODULE Test;
  11475. VAR argument: PROCEDURE;
  11476. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11477. BEGIN Procedure (argument);
  11478. END Test.
  11479. negative: calling procedure with open array variable parameter with boolean argument
  11480. MODULE Test;
  11481. VAR argument: BOOLEAN;
  11482. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11483. BEGIN Procedure (argument);
  11484. END Test.
  11485. negative: calling procedure with open array variable parameter with character argument
  11486. MODULE Test;
  11487. VAR argument: CHAR;
  11488. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11489. BEGIN Procedure (argument);
  11490. END Test.
  11491. negative: calling procedure with open array variable parameter with short integer argument
  11492. MODULE Test;
  11493. VAR argument: SHORTINT;
  11494. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11495. BEGIN Procedure (argument);
  11496. END Test.
  11497. negative: calling procedure with open array variable parameter with integer argument
  11498. MODULE Test;
  11499. VAR argument: INTEGER;
  11500. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11501. BEGIN Procedure (argument);
  11502. END Test.
  11503. negative: calling procedure with open array variable parameter with long integer argument
  11504. MODULE Test;
  11505. VAR argument: LONGINT;
  11506. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11507. BEGIN Procedure (argument);
  11508. END Test.
  11509. negative: calling procedure with open array variable parameter with huge integer argument
  11510. MODULE Test;
  11511. VAR argument: HUGEINT;
  11512. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11513. BEGIN Procedure (argument);
  11514. END Test.
  11515. negative: calling procedure with open array variable parameter with real argument
  11516. MODULE Test;
  11517. VAR argument: REAL;
  11518. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11519. BEGIN Procedure (argument);
  11520. END Test.
  11521. negative: calling procedure with open array variable parameter with long real argument
  11522. MODULE Test;
  11523. VAR argument: LONGREAL;
  11524. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11525. BEGIN Procedure (argument);
  11526. END Test.
  11527. negative: calling procedure with open array variable parameter with set argument
  11528. MODULE Test;
  11529. VAR argument: SET;
  11530. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11531. BEGIN Procedure (argument);
  11532. END Test.
  11533. positive: calling procedure with open array variable parameter with array argument
  11534. MODULE Test;
  11535. VAR argument: ARRAY 10 OF CHAR;
  11536. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11537. BEGIN Procedure (argument);
  11538. END Test.
  11539. negative: calling procedure with open array variable parameter with record argument
  11540. MODULE Test;
  11541. VAR argument: RECORD END;
  11542. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11543. BEGIN Procedure (argument);
  11544. END Test.
  11545. negative: calling procedure with open array variable parameter with object argument
  11546. MODULE Test;
  11547. VAR argument: OBJECT END;
  11548. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11549. BEGIN Procedure (argument);
  11550. END Test.
  11551. negative: calling procedure with open array variable parameter with base object argument
  11552. MODULE Test;
  11553. VAR argument: OBJECT;
  11554. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11555. BEGIN Procedure (argument);
  11556. END Test.
  11557. negative: calling procedure with open array variable parameter with pointer to array argument
  11558. MODULE Test;
  11559. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11560. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11561. BEGIN Procedure (argument);
  11562. END Test.
  11563. negative: calling procedure with open array variable parameter with pointer to record argument
  11564. MODULE Test;
  11565. VAR argument: POINTER TO RECORD END;
  11566. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11567. BEGIN Procedure (argument);
  11568. END Test.
  11569. negative: calling procedure with open array variable parameter with procedure argument
  11570. MODULE Test;
  11571. VAR argument: PROCEDURE;
  11572. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11573. BEGIN Procedure (argument);
  11574. END Test.
  11575. negative: calling procedure with record variable parameter with boolean argument
  11576. MODULE Test;
  11577. VAR argument: BOOLEAN;
  11578. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11579. BEGIN Procedure (argument);
  11580. END Test.
  11581. negative: calling procedure with record variable parameter with character argument
  11582. MODULE Test;
  11583. VAR argument: CHAR;
  11584. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11585. BEGIN Procedure (argument);
  11586. END Test.
  11587. negative: calling procedure with record variable parameter with short integer argument
  11588. MODULE Test;
  11589. VAR argument: SHORTINT;
  11590. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11591. BEGIN Procedure (argument);
  11592. END Test.
  11593. negative: calling procedure with record variable parameter with integer argument
  11594. MODULE Test;
  11595. VAR argument: INTEGER;
  11596. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11597. BEGIN Procedure (argument);
  11598. END Test.
  11599. negative: calling procedure with record variable parameter with long integer argument
  11600. MODULE Test;
  11601. VAR argument: LONGINT;
  11602. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11603. BEGIN Procedure (argument);
  11604. END Test.
  11605. negative: calling procedure with record variable parameter with huge integer argument
  11606. MODULE Test;
  11607. VAR argument: HUGEINT;
  11608. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11609. BEGIN Procedure (argument);
  11610. END Test.
  11611. negative: calling procedure with record variable parameter with real argument
  11612. MODULE Test;
  11613. VAR argument: REAL;
  11614. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11615. BEGIN Procedure (argument);
  11616. END Test.
  11617. negative: calling procedure with record variable parameter with long real argument
  11618. MODULE Test;
  11619. VAR argument: LONGREAL;
  11620. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11621. BEGIN Procedure (argument);
  11622. END Test.
  11623. negative: calling procedure with record variable parameter with set argument
  11624. MODULE Test;
  11625. VAR argument: SET;
  11626. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11627. BEGIN Procedure (argument);
  11628. END Test.
  11629. negative: calling procedure with record variable parameter with array argument
  11630. MODULE Test;
  11631. VAR argument: ARRAY 10 OF CHAR;
  11632. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11633. BEGIN Procedure (argument);
  11634. END Test.
  11635. positive: calling procedure with record variable parameter with record argument
  11636. MODULE Test;
  11637. TYPE Record = RECORD END;
  11638. VAR argument: Record;
  11639. PROCEDURE Procedure (VAR value: Record); END Procedure;
  11640. BEGIN Procedure (argument);
  11641. END Test.
  11642. positive: calling procedure with record variable parameter with compatible record argument
  11643. MODULE Test;
  11644. TYPE Record = RECORD END;
  11645. VAR argument: RECORD (Record) END;
  11646. PROCEDURE Procedure (VAR value: Record); END Procedure;
  11647. BEGIN Procedure (argument);
  11648. END Test.
  11649. negative: calling procedure with record variable parameter with incompatible record argument
  11650. MODULE Test;
  11651. TYPE Record = RECORD END;
  11652. VAR argument: Record;
  11653. PROCEDURE Procedure (VAR value: RECORD (Record) END); END Procedure;
  11654. BEGIN Procedure (argument);
  11655. END Test.
  11656. negative: calling procedure with record variable parameter with object argument
  11657. MODULE Test;
  11658. VAR argument: OBJECT END;
  11659. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11660. BEGIN Procedure (argument);
  11661. END Test.
  11662. negative: calling procedure with record variable parameter with base object argument
  11663. MODULE Test;
  11664. VAR argument: OBJECT;
  11665. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11666. BEGIN Procedure (argument);
  11667. END Test.
  11668. negative: calling procedure with record variable parameter with pointer to array argument
  11669. MODULE Test;
  11670. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11671. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11672. BEGIN Procedure (argument);
  11673. END Test.
  11674. negative: calling procedure with record variable parameter with pointer to record argument
  11675. MODULE Test;
  11676. VAR argument: POINTER TO RECORD END;
  11677. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11678. BEGIN Procedure (argument);
  11679. END Test.
  11680. negative: calling procedure with record variable parameter with procedure argument
  11681. MODULE Test;
  11682. VAR argument: PROCEDURE;
  11683. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11684. BEGIN Procedure (argument);
  11685. END Test.
  11686. negative: calling procedure with object variable parameter with boolean argument
  11687. MODULE Test;
  11688. VAR argument: BOOLEAN;
  11689. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11690. BEGIN Procedure (argument);
  11691. END Test.
  11692. negative: calling procedure with object variable parameter with character argument
  11693. MODULE Test;
  11694. VAR argument: CHAR;
  11695. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11696. BEGIN Procedure (argument);
  11697. END Test.
  11698. negative: calling procedure with object variable parameter with short integer argument
  11699. MODULE Test;
  11700. VAR argument: SHORTINT;
  11701. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11702. BEGIN Procedure (argument);
  11703. END Test.
  11704. negative: calling procedure with object variable parameter with integer argument
  11705. MODULE Test;
  11706. VAR argument: INTEGER;
  11707. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11708. BEGIN Procedure (argument);
  11709. END Test.
  11710. negative: calling procedure with object variable parameter with long integer argument
  11711. MODULE Test;
  11712. VAR argument: LONGINT;
  11713. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11714. BEGIN Procedure (argument);
  11715. END Test.
  11716. negative: calling procedure with object variable parameter with huge integer argument
  11717. MODULE Test;
  11718. VAR argument: HUGEINT;
  11719. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11720. BEGIN Procedure (argument);
  11721. END Test.
  11722. negative: calling procedure with object variable parameter with real argument
  11723. MODULE Test;
  11724. VAR argument: REAL;
  11725. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11726. BEGIN Procedure (argument);
  11727. END Test.
  11728. negative: calling procedure with object variable parameter with long real argument
  11729. MODULE Test;
  11730. VAR argument: LONGREAL;
  11731. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11732. BEGIN Procedure (argument);
  11733. END Test.
  11734. negative: calling procedure with object variable parameter with set argument
  11735. MODULE Test;
  11736. VAR argument: SET;
  11737. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11738. BEGIN Procedure (argument);
  11739. END Test.
  11740. negative: calling procedure with object variable parameter with array argument
  11741. MODULE Test;
  11742. VAR argument: ARRAY 10 OF CHAR;
  11743. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11744. BEGIN Procedure (argument);
  11745. END Test.
  11746. negative: calling procedure with object variable parameter with record argument
  11747. MODULE Test;
  11748. VAR argument: RECORD END;
  11749. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11750. BEGIN Procedure (argument);
  11751. END Test.
  11752. positive: calling procedure with object variable parameter with object argument
  11753. MODULE Test;
  11754. TYPE Object = OBJECT END Object;
  11755. VAR argument: Object;
  11756. PROCEDURE Procedure (VAR value: Object); END Procedure;
  11757. BEGIN Procedure (argument);
  11758. END Test.
  11759. negative: calling procedure with object variable parameter with compatible object argument
  11760. MODULE Test;
  11761. TYPE Object = OBJECT END Object;
  11762. VAR argument: OBJECT (Object) END;
  11763. PROCEDURE Procedure (VAR value: Object); END Procedure;
  11764. BEGIN Procedure (argument);
  11765. END Test.
  11766. negative: calling procedure with object variable parameter with incompatible object argument
  11767. MODULE Test;
  11768. TYPE Object = OBJECT END Object;
  11769. VAR argument: Object;
  11770. PROCEDURE Procedure (VAR value: OBJECT (Object) END); END Procedure;
  11771. BEGIN Procedure (argument);
  11772. END Test.
  11773. negative: calling procedure with object variable parameter with base object argument
  11774. MODULE Test;
  11775. VAR argument: OBJECT;
  11776. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11777. BEGIN Procedure (argument);
  11778. END Test.
  11779. negative: calling procedure with object variable parameter with pointer to array argument
  11780. MODULE Test;
  11781. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11782. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11783. BEGIN Procedure (argument);
  11784. END Test.
  11785. negative: calling procedure with object variable parameter with pointer to record argument
  11786. MODULE Test;
  11787. VAR argument: POINTER TO RECORD END;
  11788. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11789. BEGIN Procedure (argument);
  11790. END Test.
  11791. negative: calling procedure with object variable parameter with procedure argument
  11792. MODULE Test;
  11793. VAR argument: PROCEDURE;
  11794. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11795. BEGIN Procedure (argument);
  11796. END Test.
  11797. negative: calling procedure with base object variable parameter with boolean argument
  11798. MODULE Test;
  11799. VAR argument: BOOLEAN;
  11800. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11801. BEGIN Procedure (argument);
  11802. END Test.
  11803. negative: calling procedure with base object variable parameter with character argument
  11804. MODULE Test;
  11805. VAR argument: CHAR;
  11806. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11807. BEGIN Procedure (argument);
  11808. END Test.
  11809. negative: calling procedure with base object variable parameter with short integer argument
  11810. MODULE Test;
  11811. VAR argument: SHORTINT;
  11812. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11813. BEGIN Procedure (argument);
  11814. END Test.
  11815. negative: calling procedure with base object variable parameter with integer argument
  11816. MODULE Test;
  11817. VAR argument: INTEGER;
  11818. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11819. BEGIN Procedure (argument);
  11820. END Test.
  11821. negative: calling procedure with base object variable parameter with long integer argument
  11822. MODULE Test;
  11823. VAR argument: LONGINT;
  11824. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11825. BEGIN Procedure (argument);
  11826. END Test.
  11827. negative: calling procedure with base object variable parameter with huge integer argument
  11828. MODULE Test;
  11829. VAR argument: HUGEINT;
  11830. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11831. BEGIN Procedure (argument);
  11832. END Test.
  11833. negative: calling procedure with base object variable parameter with real argument
  11834. MODULE Test;
  11835. VAR argument: REAL;
  11836. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11837. BEGIN Procedure (argument);
  11838. END Test.
  11839. negative: calling procedure with base object variable parameter with long real argument
  11840. MODULE Test;
  11841. VAR argument: LONGREAL;
  11842. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11843. BEGIN Procedure (argument);
  11844. END Test.
  11845. negative: calling procedure with base object variable parameter with set argument
  11846. MODULE Test;
  11847. VAR argument: SET;
  11848. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11849. BEGIN Procedure (argument);
  11850. END Test.
  11851. negative: calling procedure with base object variable parameter with array argument
  11852. MODULE Test;
  11853. VAR argument: ARRAY 10 OF CHAR;
  11854. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11855. BEGIN Procedure (argument);
  11856. END Test.
  11857. negative: calling procedure with base object variable parameter with record argument
  11858. MODULE Test;
  11859. VAR argument: RECORD END;
  11860. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11861. BEGIN Procedure (argument);
  11862. END Test.
  11863. negative: calling procedure with base object variable parameter with object argument
  11864. MODULE Test;
  11865. VAR argument: OBJECT END;
  11866. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11867. BEGIN Procedure (argument);
  11868. END Test.
  11869. positive: calling procedure with base object variable parameter with base object argument
  11870. MODULE Test;
  11871. VAR argument: OBJECT;
  11872. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11873. BEGIN Procedure (argument);
  11874. END Test.
  11875. negative: calling procedure with base object variable parameter with pointer to array argument
  11876. MODULE Test;
  11877. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11878. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11879. BEGIN Procedure (argument);
  11880. END Test.
  11881. negative: calling procedure with base object variable parameter with pointer to record argument
  11882. MODULE Test;
  11883. VAR argument: POINTER TO RECORD END;
  11884. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11885. BEGIN Procedure (argument);
  11886. END Test.
  11887. negative: calling procedure with base object variable parameter with procedure argument
  11888. MODULE Test;
  11889. VAR argument: PROCEDURE;
  11890. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11891. BEGIN Procedure (argument);
  11892. END Test.
  11893. negative: calling procedure with pointer to array variable parameter with boolean argument
  11894. MODULE Test;
  11895. VAR argument: BOOLEAN;
  11896. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11897. BEGIN Procedure (argument);
  11898. END Test.
  11899. negative: calling procedure with pointer to array variable parameter with character argument
  11900. MODULE Test;
  11901. VAR argument: CHAR;
  11902. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11903. BEGIN Procedure (argument);
  11904. END Test.
  11905. negative: calling procedure with pointer to array variable parameter with short integer argument
  11906. MODULE Test;
  11907. VAR argument: SHORTINT;
  11908. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11909. BEGIN Procedure (argument);
  11910. END Test.
  11911. negative: calling procedure with pointer to array variable parameter with integer argument
  11912. MODULE Test;
  11913. VAR argument: INTEGER;
  11914. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11915. BEGIN Procedure (argument);
  11916. END Test.
  11917. negative: calling procedure with pointer to array variable parameter with long integer argument
  11918. MODULE Test;
  11919. VAR argument: LONGINT;
  11920. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11921. BEGIN Procedure (argument);
  11922. END Test.
  11923. negative: calling procedure with pointer to array variable parameter with huge integer argument
  11924. MODULE Test;
  11925. VAR argument: HUGEINT;
  11926. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11927. BEGIN Procedure (argument);
  11928. END Test.
  11929. negative: calling procedure with pointer to array variable parameter with real argument
  11930. MODULE Test;
  11931. VAR argument: REAL;
  11932. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11933. BEGIN Procedure (argument);
  11934. END Test.
  11935. negative: calling procedure with pointer to array variable parameter with long real argument
  11936. MODULE Test;
  11937. VAR argument: LONGREAL;
  11938. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11939. BEGIN Procedure (argument);
  11940. END Test.
  11941. negative: calling procedure with pointer to array variable parameter with set argument
  11942. MODULE Test;
  11943. VAR argument: SET;
  11944. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11945. BEGIN Procedure (argument);
  11946. END Test.
  11947. negative: calling procedure with pointer to array variable parameter with array argument
  11948. MODULE Test;
  11949. VAR argument: ARRAY 10 OF CHAR;
  11950. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11951. BEGIN Procedure (argument);
  11952. END Test.
  11953. negative: calling procedure with pointer to array variable parameter with record argument
  11954. MODULE Test;
  11955. VAR argument: RECORD END;
  11956. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11957. BEGIN Procedure (argument);
  11958. END Test.
  11959. negative: calling procedure with pointer to array variable parameter with object argument
  11960. MODULE Test;
  11961. VAR argument: OBJECT END;
  11962. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11963. BEGIN Procedure (argument);
  11964. END Test.
  11965. negative: calling procedure with pointer to array variable parameter with base object argument
  11966. MODULE Test;
  11967. VAR argument: OBJECT;
  11968. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11969. BEGIN Procedure (argument);
  11970. END Test.
  11971. positive: calling procedure with pointer to array variable parameter with pointer to array argument
  11972. MODULE Test;
  11973. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11974. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11975. BEGIN Procedure (argument);
  11976. END Test.
  11977. negative: calling procedure with pointer to array variable parameter with pointer to record argument
  11978. MODULE Test;
  11979. VAR argument: POINTER TO RECORD END;
  11980. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11981. BEGIN Procedure (argument);
  11982. END Test.
  11983. negative: calling procedure with pointer to array variable parameter with procedure argument
  11984. MODULE Test;
  11985. VAR argument: PROCEDURE;
  11986. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11987. BEGIN Procedure (argument);
  11988. END Test.
  11989. negative: calling procedure with pointer to record variable parameter with boolean argument
  11990. MODULE Test;
  11991. VAR argument: BOOLEAN;
  11992. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  11993. BEGIN Procedure (argument);
  11994. END Test.
  11995. negative: calling procedure with pointer to record variable parameter with character argument
  11996. MODULE Test;
  11997. VAR argument: CHAR;
  11998. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  11999. BEGIN Procedure (argument);
  12000. END Test.
  12001. negative: calling procedure with pointer to record variable parameter with short integer argument
  12002. MODULE Test;
  12003. VAR argument: SHORTINT;
  12004. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12005. BEGIN Procedure (argument);
  12006. END Test.
  12007. negative: calling procedure with pointer to record variable parameter with integer argument
  12008. MODULE Test;
  12009. VAR argument: INTEGER;
  12010. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12011. BEGIN Procedure (argument);
  12012. END Test.
  12013. negative: calling procedure with pointer to record variable parameter with long integer argument
  12014. MODULE Test;
  12015. VAR argument: LONGINT;
  12016. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12017. BEGIN Procedure (argument);
  12018. END Test.
  12019. negative: calling procedure with pointer to record variable parameter with huge integer argument
  12020. MODULE Test;
  12021. VAR argument: HUGEINT;
  12022. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12023. BEGIN Procedure (argument);
  12024. END Test.
  12025. negative: calling procedure with pointer to record variable parameter with real argument
  12026. MODULE Test;
  12027. VAR argument: REAL;
  12028. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12029. BEGIN Procedure (argument);
  12030. END Test.
  12031. negative: calling procedure with pointer to record variable parameter with long real argument
  12032. MODULE Test;
  12033. VAR argument: LONGREAL;
  12034. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12035. BEGIN Procedure (argument);
  12036. END Test.
  12037. negative: calling procedure with pointer to record variable parameter with set argument
  12038. MODULE Test;
  12039. VAR argument: SET;
  12040. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12041. BEGIN Procedure (argument);
  12042. END Test.
  12043. negative: calling procedure with pointer to record variable parameter with array argument
  12044. MODULE Test;
  12045. VAR argument: ARRAY 10 OF CHAR;
  12046. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12047. BEGIN Procedure (argument);
  12048. END Test.
  12049. negative: calling procedure with pointer to record variable parameter with record argument
  12050. MODULE Test;
  12051. VAR argument: RECORD END;
  12052. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12053. BEGIN Procedure (argument);
  12054. END Test.
  12055. negative: calling procedure with pointer to record variable parameter with object argument
  12056. MODULE Test;
  12057. VAR argument: OBJECT END;
  12058. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12059. BEGIN Procedure (argument);
  12060. END Test.
  12061. negative: calling procedure with pointer to record variable parameter with base object argument
  12062. MODULE Test;
  12063. VAR argument: OBJECT;
  12064. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12065. BEGIN Procedure (argument);
  12066. END Test.
  12067. negative: calling procedure with pointer to record variable parameter with pointer to array argument
  12068. MODULE Test;
  12069. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  12070. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12071. BEGIN Procedure (argument);
  12072. END Test.
  12073. positive: calling procedure with pointer to record variable parameter with pointer to record argument
  12074. MODULE Test;
  12075. TYPE Record = RECORD END;
  12076. VAR argument: POINTER TO Record;
  12077. PROCEDURE Procedure (VAR value: POINTER TO Record); END Procedure;
  12078. BEGIN Procedure (argument);
  12079. END Test.
  12080. negative: calling procedure with pointer to record variable parameter with compatible pointer to record argument
  12081. MODULE Test;
  12082. TYPE Record = RECORD END;
  12083. VAR argument: POINTER TO RECORD (Record) END;
  12084. PROCEDURE Procedure (VAR value: POINTER TO Record); END Procedure;
  12085. BEGIN Procedure (argument);
  12086. END Test.
  12087. negative: calling procedure with pointer to record variable parameter with incompatible pointer to record argument
  12088. MODULE Test;
  12089. TYPE Record = RECORD END;
  12090. VAR argument: POINTER TO Record;
  12091. PROCEDURE Procedure (VAR value: POINTER TO RECORD (Record) END); END Procedure;
  12092. BEGIN Procedure (argument);
  12093. END Test.
  12094. negative: calling procedure with pointer to record variable parameter with procedure argument
  12095. MODULE Test;
  12096. VAR argument: PROCEDURE;
  12097. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12098. BEGIN Procedure (argument);
  12099. END Test.
  12100. negative: calling procedure with procedure variable parameter with boolean argument
  12101. MODULE Test;
  12102. VAR argument: BOOLEAN;
  12103. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12104. BEGIN Procedure (argument);
  12105. END Test.
  12106. negative: calling procedure with procedure variable parameter with character argument
  12107. MODULE Test;
  12108. VAR argument: CHAR;
  12109. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12110. BEGIN Procedure (argument);
  12111. END Test.
  12112. negative: calling procedure with procedure variable parameter with short integer argument
  12113. MODULE Test;
  12114. VAR argument: SHORTINT;
  12115. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12116. BEGIN Procedure (argument);
  12117. END Test.
  12118. negative: calling procedure with procedure variable parameter with integer argument
  12119. MODULE Test;
  12120. VAR argument: INTEGER;
  12121. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12122. BEGIN Procedure (argument);
  12123. END Test.
  12124. negative: calling procedure with procedure variable parameter with long integer argument
  12125. MODULE Test;
  12126. VAR argument: LONGINT;
  12127. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12128. BEGIN Procedure (argument);
  12129. END Test.
  12130. negative: calling procedure with procedure variable parameter with huge integer argument
  12131. MODULE Test;
  12132. VAR argument: HUGEINT;
  12133. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12134. BEGIN Procedure (argument);
  12135. END Test.
  12136. negative: calling procedure with procedure variable parameter with real argument
  12137. MODULE Test;
  12138. VAR argument: REAL;
  12139. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12140. BEGIN Procedure (argument);
  12141. END Test.
  12142. negative: calling procedure with procedure variable parameter with long real argument
  12143. MODULE Test;
  12144. VAR argument: LONGREAL;
  12145. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12146. BEGIN Procedure (argument);
  12147. END Test.
  12148. negative: calling procedure with procedure variable parameter with set argument
  12149. MODULE Test;
  12150. VAR argument: SET;
  12151. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12152. BEGIN Procedure (argument);
  12153. END Test.
  12154. negative: calling procedure with procedure variable parameter with array argument
  12155. MODULE Test;
  12156. VAR argument: ARRAY 10 OF CHAR;
  12157. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12158. BEGIN Procedure (argument);
  12159. END Test.
  12160. negative: calling procedure with procedure variable parameter with record argument
  12161. MODULE Test;
  12162. VAR argument: RECORD END;
  12163. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12164. BEGIN Procedure (argument);
  12165. END Test.
  12166. negative: calling procedure with procedure variable parameter with object argument
  12167. MODULE Test;
  12168. VAR argument: OBJECT END;
  12169. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12170. BEGIN Procedure (argument);
  12171. END Test.
  12172. negative: calling procedure with procedure variable parameter with base object argument
  12173. MODULE Test;
  12174. VAR argument: OBJECT;
  12175. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12176. BEGIN Procedure (argument);
  12177. END Test.
  12178. negative: calling procedure with procedure variable parameter with pointer to array argument
  12179. MODULE Test;
  12180. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  12181. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12182. BEGIN Procedure (argument);
  12183. END Test.
  12184. negative: calling procedure with procedure variable parameter with pointer to record argument
  12185. MODULE Test;
  12186. VAR argument: POINTER TO RECORD END;
  12187. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12188. BEGIN Procedure (argument);
  12189. END Test.
  12190. positive: calling procedure with procedure variable parameter with procedure argument
  12191. MODULE Test;
  12192. VAR argument: PROCEDURE;
  12193. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12194. BEGIN Procedure (argument);
  12195. END Test.
  12196. negative: calling procedure returning boolean
  12197. MODULE Test;
  12198. PROCEDURE Procedure (): BOOLEAN; END Procedure;
  12199. BEGIN Procedure
  12200. END Test.
  12201. negative: calling procedure returning character
  12202. MODULE Test;
  12203. PROCEDURE Procedure (): CHAR; END Procedure;
  12204. BEGIN Procedure
  12205. END Test.
  12206. negative: calling procedure returning integer
  12207. MODULE Test;
  12208. PROCEDURE Procedure (): INTEGER; END Procedure;
  12209. BEGIN Procedure
  12210. END Test.
  12211. negative: calling procedure returning real
  12212. MODULE Test;
  12213. PROCEDURE Procedure (): REAL; END Procedure;
  12214. BEGIN Procedure
  12215. END Test.
  12216. negative: calling procedure returning set
  12217. MODULE Test;
  12218. PROCEDURE Procedure (): SET; END Procedure;
  12219. BEGIN Procedure
  12220. END Test.
  12221. negative: calling procedure returning array
  12222. MODULE Test;
  12223. PROCEDURE Procedure (): ARRAY 10 OF CHAR; END Procedure;
  12224. BEGIN Procedure
  12225. END Test.
  12226. negative: calling procedure returning record
  12227. MODULE Test;
  12228. PROCEDURE Procedure (): RECORD END; END Procedure;
  12229. BEGIN Procedure
  12230. END Test.
  12231. negative: calling procedure returning object
  12232. MODULE Test;
  12233. PROCEDURE Procedure (): OBJECT END; END Procedure;
  12234. BEGIN Procedure
  12235. END Test.
  12236. negative: calling procedure returning base object
  12237. MODULE Test;
  12238. PROCEDURE Procedure (): OBJECT; END Procedure;
  12239. BEGIN Procedure
  12240. END Test.
  12241. negative: calling procedure returning pointer to array
  12242. MODULE Test;
  12243. PROCEDURE Procedure (): POINTER TO ARRAY 10 OF CHAR; END Procedure;
  12244. BEGIN Procedure
  12245. END Test.
  12246. negative: calling procedure returning pointer to record
  12247. MODULE Test;
  12248. PROCEDURE Procedure (): POINTER TO ARRAY 10 OF RECORD END; END Procedure;
  12249. BEGIN Procedure
  12250. END Test.
  12251. negative: calling procedure returning procedure
  12252. MODULE Test;
  12253. PROCEDURE Procedure (): PROCEDURE; END Procedure;
  12254. BEGIN Procedure
  12255. END Test.
  12256. # initializers
  12257. negative: initializer within module
  12258. MODULE Test;
  12259. PROCEDURE &Initializer; END Initializer;
  12260. END Test.
  12261. negative: initializer within procedure
  12262. MODULE Test;
  12263. PROCEDURE Procedure;
  12264. PROCEDURE &Initializer; END Initializer;
  12265. END Procedure;
  12266. END Test.
  12267. negative: initializer within nested procedure
  12268. MODULE Test;
  12269. PROCEDURE Procedure;
  12270. PROCEDURE Procedure;
  12271. PROCEDURE &Initializer; END Initializer;
  12272. END Procedure;
  12273. END Procedure;
  12274. END Test.
  12275. positive: initializer within object
  12276. MODULE Test;
  12277. TYPE Object = OBJECT
  12278. PROCEDURE &Initializer; END Initializer;
  12279. END Object;
  12280. END Test.
  12281. positive: initializer within object in procedure
  12282. MODULE Test;
  12283. PROCEDURE Procedure;
  12284. TYPE Object = OBJECT
  12285. PROCEDURE &Initializer; END Initializer;
  12286. END Object;
  12287. END Procedure;
  12288. END Test.
  12289. negative: initializer within procedure in object
  12290. MODULE Test;
  12291. TYPE Object = OBJECT
  12292. PROCEDURE Procedure;
  12293. PROCEDURE &Initializer; END Initializer;
  12294. END Procedure;
  12295. END Object;
  12296. END Test.
  12297. negative: initializer within nested procedure in object
  12298. MODULE Test;
  12299. TYPE Object = OBJECT
  12300. PROCEDURE Procedure;
  12301. PROCEDURE Procedure;
  12302. PROCEDURE &Initializer; END Initializer;
  12303. END Procedure;
  12304. END Procedure;
  12305. END Object;
  12306. END Test.
  12307. negative: two initializers in object
  12308. MODULE Test;
  12309. TYPE Object = OBJECT
  12310. PROCEDURE &Initializer1; END Initializer1;
  12311. PROCEDURE &Initializer2; END Initializer2;
  12312. END Object;
  12313. END Test.
  12314. negative: two initializers in object with same name
  12315. MODULE Test;
  12316. TYPE Object = OBJECT
  12317. PROCEDURE &Initializer; END Initializer;
  12318. PROCEDURE &Initializer; END Initializer;
  12319. END Object;
  12320. END Test.
  12321. positive: initializer without return type
  12322. MODULE Test;
  12323. TYPE Object = OBJECT
  12324. PROCEDURE &Initializer; END Initializer;
  12325. END Object;
  12326. END Test.
  12327. negative: initializer with return type
  12328. MODULE Test;
  12329. TYPE Object = OBJECT
  12330. PROCEDURE &Initializer (): Object; END Initializer;
  12331. END Object;
  12332. END Test.
  12333. positive: initializer with parameter
  12334. MODULE Test;
  12335. TYPE Object = OBJECT
  12336. PROCEDURE &Initializer (object: Object); END Initializer;
  12337. END Object;
  12338. END Test.
  12339. positive: initializer with parameters
  12340. MODULE Test;
  12341. TYPE Object = OBJECT
  12342. PROCEDURE &Initializer (a, b: Object); END Initializer;
  12343. END Object;
  12344. END Test.
  12345. # statement blocks
  12346. negative: invalid block modifier notag
  12347. MODULE Test;
  12348. BEGIN {NOTAG};
  12349. END Test.
  12350. negative: invalid block modifier delegate
  12351. MODULE Test;
  12352. BEGIN {DELEGATE};
  12353. END Test.
  12354. negative: repeated exclusive block modifier
  12355. MODULE Test;
  12356. BEGIN {EXCLUSIVE, EXCLUSIVE};
  12357. END Test.
  12358. negative: repeated active block modifier
  12359. MODULE Test;
  12360. TYPE Object = OBJECT
  12361. BEGIN {ACTIVE,ACTIVE}
  12362. END Object;
  12363. END Test.
  12364. positive: exclusive module body
  12365. MODULE Test;
  12366. BEGIN {EXCLUSIVE}
  12367. END Test.
  12368. positive: nested exclusive module body
  12369. MODULE Test;
  12370. BEGIN BEGIN {EXCLUSIVE} END
  12371. END Test.
  12372. negative: exclusive block in exclusive module body
  12373. MODULE Test;
  12374. BEGIN {EXCLUSIVE} BEGIN {EXCLUSIVE} END
  12375. END Test.
  12376. negative: exclusive block in active module body
  12377. MODULE Test;
  12378. BEGIN {ACTIVE} BEGIN {EXCLUSIVE} END
  12379. END Test.
  12380. positive: exclusive object body
  12381. MODULE Test;
  12382. TYPE Object = OBJECT
  12383. BEGIN {EXCLUSIVE}
  12384. END Object;
  12385. END Test.
  12386. positive: nested exclusive object body
  12387. MODULE Test;
  12388. TYPE Object = OBJECT
  12389. BEGIN BEGIN {EXCLUSIVE} END
  12390. END Object;
  12391. END Test.
  12392. negative: exclusive block in exclusive object body
  12393. MODULE Test;
  12394. TYPE Object = OBJECT
  12395. BEGIN {EXCLUSIVE} BEGIN {EXCLUSIVE} END
  12396. END Object;
  12397. END Test.
  12398. positive: exclusive block in active object body
  12399. MODULE Test;
  12400. TYPE Object = OBJECT
  12401. BEGIN {ACTIVE} BEGIN {EXCLUSIVE} END
  12402. END Object;
  12403. END Test.
  12404. positive: exclusive procedure body within module
  12405. MODULE Test;
  12406. PROCEDURE Procedure;
  12407. BEGIN {EXCLUSIVE}
  12408. END Procedure;
  12409. END Test.
  12410. positive: nested exclusive procedure body within module
  12411. MODULE Test;
  12412. PROCEDURE Procedure;
  12413. BEGIN BEGIN {EXCLUSIVE} END
  12414. END Procedure;
  12415. END Test.
  12416. negative: exclusive block in exclusive procedure body within module
  12417. MODULE Test;
  12418. PROCEDURE Procedure;
  12419. BEGIN {EXCLUSIVE} BEGIN {EXCLUSIVE} END
  12420. END Procedure;
  12421. END Test.
  12422. negative: exclusive block in active procedure body within module
  12423. MODULE Test;
  12424. PROCEDURE Procedure;
  12425. BEGIN {ACTIVE} BEGIN {EXCLUSIVE} END
  12426. END Procedure;
  12427. END Test.
  12428. positive: exclusive procedure body within object
  12429. MODULE Test;
  12430. TYPE Object = OBJECT
  12431. PROCEDURE Procedure;
  12432. BEGIN {EXCLUSIVE}
  12433. END Procedure;
  12434. END Object;
  12435. END Test.
  12436. positive: exclusive nested procedure body within object
  12437. MODULE Test;
  12438. TYPE Object = OBJECT
  12439. PROCEDURE Procedure;
  12440. BEGIN BEGIN {EXCLUSIVE} END
  12441. END Procedure;
  12442. END Object;
  12443. END Test.
  12444. negative: exclusive block in exclusive procedure body within object
  12445. MODULE Test;
  12446. TYPE Object = OBJECT
  12447. PROCEDURE Procedure;
  12448. BEGIN {EXCLUSIVE} BEGIN {EXCLUSIVE} END
  12449. END Procedure;
  12450. END Object;
  12451. END Test.
  12452. negative: exclusive block in active procedure body within object
  12453. MODULE Test;
  12454. TYPE Object = OBJECT
  12455. PROCEDURE Procedure;
  12456. BEGIN {ACTIVE} BEGIN {EXCLUSIVE} END
  12457. END Procedure;
  12458. END Object;
  12459. END Test.
  12460. negative: active module body
  12461. MODULE Test;
  12462. BEGIN {ACTIVE}
  12463. END Test.
  12464. negative: nested active module body
  12465. MODULE Test;
  12466. BEGIN BEGIN {ACTIVE} END
  12467. END Test.
  12468. negative: active block in active module body
  12469. MODULE Test;
  12470. BEGIN {ACTIVE} BEGIN {ACTIVE} END
  12471. END Test.
  12472. negative: active block in exclusive module body
  12473. MODULE Test;
  12474. BEGIN {EXCLUSIVE} BEGIN {ACTIVE} END
  12475. END Test.
  12476. positive: active object body
  12477. MODULE Test;
  12478. TYPE Object = OBJECT
  12479. BEGIN {ACTIVE}
  12480. END Object;
  12481. END Test.
  12482. negative: nested active object body
  12483. MODULE Test;
  12484. TYPE Object = OBJECT
  12485. BEGIN BEGIN {ACTIVE} END
  12486. END Object;
  12487. END Test.
  12488. negative: active block in active object body
  12489. MODULE Test;
  12490. TYPE Object = OBJECT
  12491. BEGIN {ACTIVE} BEGIN {ACTIVE} END
  12492. END Object;
  12493. END Test.
  12494. negative: active block in exclusive object body
  12495. MODULE Test;
  12496. TYPE Object = OBJECT
  12497. BEGIN {EXCLUSIVE} BEGIN {ACTIVE} END
  12498. END Object;
  12499. END Test.
  12500. negative: active procedure body within module
  12501. MODULE Test;
  12502. PROCEDURE Procedure;
  12503. BEGIN {ACTIVE}
  12504. END Procedure;
  12505. END Test.
  12506. negative: nested active procedure body within module
  12507. MODULE Test;
  12508. PROCEDURE Procedure;
  12509. BEGIN BEGIN {ACTIVE} END
  12510. END Procedure;
  12511. END Test.
  12512. negative: active block in active procedure body within module
  12513. MODULE Test;
  12514. PROCEDURE Procedure;
  12515. BEGIN {ACTIVE} BEGIN {ACTIVE} END
  12516. END Procedure;
  12517. END Test.
  12518. negative: active block in exclusive procedure body within module
  12519. MODULE Test;
  12520. PROCEDURE Procedure;
  12521. BEGIN {EXCLUSIVE} BEGIN {ACTIVE} END
  12522. END Procedure;
  12523. END Test.
  12524. negative: active procedure body within object
  12525. MODULE Test;
  12526. TYPE Object = OBJECT
  12527. PROCEDURE Procedure;
  12528. BEGIN {ACTIVE}
  12529. END Procedure;
  12530. END Object;
  12531. END Test.
  12532. negative: active nested procedure body within object
  12533. MODULE Test;
  12534. TYPE Object = OBJECT
  12535. PROCEDURE Procedure;
  12536. BEGIN BEGIN {ACTIVE} END
  12537. END Procedure;
  12538. END Object;
  12539. END Test.
  12540. negative: active block in active procedure body within object
  12541. MODULE Test;
  12542. TYPE Object = OBJECT
  12543. PROCEDURE Procedure;
  12544. BEGIN {ACTIVE} BEGIN {ACTIVE} END
  12545. END Procedure;
  12546. END Object;
  12547. END Test.
  12548. negative: active block in exclusive procedure body within object
  12549. MODULE Test;
  12550. TYPE Object = OBJECT
  12551. PROCEDURE Procedure;
  12552. BEGIN {EXCLUSIVE} BEGIN {ACTIVE} END
  12553. END Procedure;
  12554. END Object;
  12555. END Test.
  12556. negative: exclusive and active module body
  12557. MODULE Test;
  12558. BEGIN {EXCLUSIVE, ACTIVE}
  12559. END Test.
  12560. negative: nested exclusive and active module body
  12561. MODULE Test;
  12562. BEGIN BEGIN {EXCLUSIVE, ACTIVE} END
  12563. END Test.
  12564. negative: exclusive and active block in exclusive and active module body
  12565. MODULE Test;
  12566. BEGIN {EXCLUSIVE, ACTIVE} BEGIN {EXCLUSIVE, ACTIVE} END
  12567. END Test.
  12568. positive: exclusive and active object body
  12569. MODULE Test;
  12570. TYPE Object = OBJECT
  12571. BEGIN {EXCLUSIVE, ACTIVE}
  12572. END Object;
  12573. END Test.
  12574. negative: nested exclusive and active object body
  12575. MODULE Test;
  12576. TYPE Object = OBJECT
  12577. BEGIN BEGIN {EXCLUSIVE, ACTIVE} END
  12578. END Object;
  12579. END Test.
  12580. negative: exclusive and active block in exclusive and active object body
  12581. MODULE Test;
  12582. TYPE Object = OBJECT
  12583. BEGIN {EXCLUSIVE, ACTIVE} BEGIN {EXCLUSIVE, ACTIVE} END
  12584. END Object;
  12585. END Test.
  12586. negative: exclusive and active procedure body within module
  12587. MODULE Test;
  12588. PROCEDURE Procedure;
  12589. BEGIN {EXCLUSIVE, ACTIVE}
  12590. END Procedure;
  12591. END Test.
  12592. negative: nested exclusive and active procedure body within module
  12593. MODULE Test;
  12594. PROCEDURE Procedure;
  12595. BEGIN BEGIN {EXCLUSIVE, ACTIVE} END
  12596. END Procedure;
  12597. END Test.
  12598. negative: exclusive and active block in exclusive and active procedure body within module
  12599. MODULE Test;
  12600. PROCEDURE Procedure;
  12601. BEGIN {EXCLUSIVE, ACTIVE} BEGIN {EXCLUSIVE, ACTIVE} END
  12602. END Procedure;
  12603. END Test.
  12604. negative: exclusive and active procedure body within object
  12605. MODULE Test;
  12606. TYPE Object = OBJECT
  12607. PROCEDURE Procedure;
  12608. BEGIN {EXCLUSIVE, ACTIVE}
  12609. END Procedure;
  12610. END Object;
  12611. END Test.
  12612. negative: exclusive and active nested procedure body within object
  12613. MODULE Test;
  12614. TYPE Object = OBJECT
  12615. PROCEDURE Procedure;
  12616. BEGIN BEGIN {EXCLUSIVE, ACTIVE} END
  12617. END Procedure;
  12618. END Object;
  12619. END Test.
  12620. negative: exclusive and active block in exclusive and active procedure body within object
  12621. MODULE Test;
  12622. TYPE Object = OBJECT
  12623. PROCEDURE Procedure;
  12624. BEGIN {EXCLUSIVE, ACTIVE} BEGIN {EXCLUSIVE, ACTIVE} END
  12625. END Procedure;
  12626. END Object;
  12627. END Test.
  12628. # while statement
  12629. positive: while statement with constant true condition
  12630. MODULE Test;
  12631. BEGIN WHILE TRUE DO END;
  12632. END Test.
  12633. positive: while statement with constant false condition
  12634. MODULE Test;
  12635. BEGIN WHILE FALSE DO END;
  12636. END Test.
  12637. negative: while statement with constant condition of type character
  12638. MODULE Test;
  12639. BEGIN WHILE 'a' DO END;
  12640. END Test.
  12641. negative: while statement with constant condition of type integer
  12642. MODULE Test;
  12643. BEGIN WHILE 5 DO END;
  12644. END Test.
  12645. negative: while statement with constant condition of type real
  12646. MODULE Test;
  12647. BEGIN WHILE 4.5 DO END;
  12648. END Test.
  12649. negative: while statement with constant condition of type set
  12650. MODULE Test;
  12651. BEGIN WHILE {5} DO END;
  12652. END Test.
  12653. negative: while statement with constant condition of type string
  12654. MODULE Test;
  12655. BEGIN WHILE "condition" DO END;
  12656. END Test.
  12657. negative: while statement with constant condition of type nil pointer
  12658. MODULE Test;
  12659. BEGIN WHILE NIL DO END;
  12660. END Test.
  12661. positive: while statement with condition of type boolean
  12662. MODULE Test;
  12663. VAR condition: BOOLEAN;
  12664. BEGIN WHILE condition DO END;
  12665. END Test.
  12666. negative: while statement with condition of type character
  12667. MODULE Test;
  12668. VAR condition: CHAR;
  12669. BEGIN WHILE condition DO END;
  12670. END Test.
  12671. negative: while statement with condition of type short integer
  12672. MODULE Test;
  12673. VAR condition: SHORTINT;
  12674. BEGIN WHILE condition DO END;
  12675. END Test.
  12676. negative: while statement with condition of type integer
  12677. MODULE Test;
  12678. VAR condition: INTEGER;
  12679. BEGIN WHILE condition DO END;
  12680. END Test.
  12681. negative: while statement with condition of type long integer
  12682. MODULE Test;
  12683. VAR condition: LONGINT;
  12684. BEGIN WHILE condition DO END;
  12685. END Test.
  12686. negative: while statement with condition of type huge integer
  12687. MODULE Test;
  12688. VAR condition: HUGEINT;
  12689. BEGIN WHILE condition DO END;
  12690. END Test.
  12691. negative: while statement with condition of type real
  12692. MODULE Test;
  12693. VAR condition: REAL;
  12694. BEGIN WHILE condition DO END;
  12695. END Test.
  12696. negative: while statement with condition of type long real
  12697. MODULE Test;
  12698. VAR condition: LONGREAL;
  12699. BEGIN WHILE condition DO END;
  12700. END Test.
  12701. negative: while statement with condition of type set
  12702. MODULE Test;
  12703. VAR condition: SET;
  12704. BEGIN WHILE condition DO END;
  12705. END Test.
  12706. negative: while statement with condition of type array
  12707. MODULE Test;
  12708. VAR condition: ARRAY 10 OF CHAR;
  12709. BEGIN WHILE condition DO END;
  12710. END Test.
  12711. negative: while statement with condition of type record
  12712. MODULE Test;
  12713. VAR condition: RECORD END;
  12714. BEGIN WHILE condition DO END;
  12715. END Test.
  12716. negative: while statement with condition of type object
  12717. MODULE Test;
  12718. VAR condition: OBJECT;
  12719. BEGIN WHILE condition DO END;
  12720. END Test.
  12721. negative: while statement with condition of type pointer
  12722. MODULE Test;
  12723. VAR condition: POINTER TO RECORD END;
  12724. BEGIN WHILE condition DO END;
  12725. END Test.
  12726. negative: while statement with condition of type procedure
  12727. MODULE Test;
  12728. VAR condition: PROCEDURE;
  12729. BEGIN WHILE condition DO END;
  12730. END Test.
  12731. negative: while statement with import as condition
  12732. MODULE Test;
  12733. IMPORT condition := Dummy;
  12734. BEGIN WHILE condition DO END;
  12735. END Test.
  12736. negative: while statement with type as condition
  12737. MODULE Test;
  12738. TYPE condition = BOOLEAN;
  12739. BEGIN WHILE condition DO END;
  12740. END Test.
  12741. # repeat statement
  12742. positive: repeat statement with constant true condition
  12743. MODULE Test;
  12744. BEGIN REPEAT UNTIL TRUE;
  12745. END Test.
  12746. positive: repeat statement with constant false condition
  12747. MODULE Test;
  12748. BEGIN REPEAT UNTIL FALSE;
  12749. END Test.
  12750. negative: repeat statement with constant condition of type character
  12751. MODULE Test;
  12752. BEGIN REPEAT UNTIL 'a';
  12753. END Test.
  12754. negative: repeat statement with constant condition of type integer
  12755. MODULE Test;
  12756. BEGIN REPEAT UNTIL 5;
  12757. END Test.
  12758. negative: repeat statement with constant condition of type real
  12759. MODULE Test;
  12760. BEGIN REPEAT UNTIL 4.5;
  12761. END Test.
  12762. negative: repeat statement with constant condition of type set
  12763. MODULE Test;
  12764. BEGIN REPEAT UNTIL {5};
  12765. END Test.
  12766. negative: repeat statement with constant condition of type string
  12767. MODULE Test;
  12768. BEGIN REPEAT UNTIL "condition";
  12769. END Test.
  12770. negative: repeat statement with constant condition of type nil pointer
  12771. MODULE Test;
  12772. BEGIN REPEAT UNTIL NIL;
  12773. END Test.
  12774. positive: repeat statement with condition of type boolean
  12775. MODULE Test;
  12776. VAR condition: BOOLEAN;
  12777. BEGIN REPEAT UNTIL condition;
  12778. END Test.
  12779. negative: repeat statement with condition of type character
  12780. MODULE Test;
  12781. VAR condition: CHAR;
  12782. BEGIN REPEAT UNTIL condition;
  12783. END Test.
  12784. negative: repeat statement with condition of type short integer
  12785. MODULE Test;
  12786. VAR condition: SHORTINT;
  12787. BEGIN REPEAT UNTIL condition;
  12788. END Test.
  12789. negative: repeat statement with condition of type integer
  12790. MODULE Test;
  12791. VAR condition: INTEGER;
  12792. BEGIN REPEAT UNTIL condition;
  12793. END Test.
  12794. negative: repeat statement with condition of type long integer
  12795. MODULE Test;
  12796. VAR condition: LONGINT;
  12797. BEGIN REPEAT UNTIL condition;
  12798. END Test.
  12799. negative: repeat statement with condition of type huge integer
  12800. MODULE Test;
  12801. VAR condition: HUGEINT;
  12802. BEGIN REPEAT UNTIL condition;
  12803. END Test.
  12804. negative: repeat statement with condition of type real
  12805. MODULE Test;
  12806. VAR condition: REAL;
  12807. BEGIN REPEAT UNTIL condition;
  12808. END Test.
  12809. negative: repeat statement with condition of type long real
  12810. MODULE Test;
  12811. VAR condition: LONGREAL;
  12812. BEGIN REPEAT UNTIL condition;
  12813. END Test.
  12814. negative: repeat statement with condition of type set
  12815. MODULE Test;
  12816. VAR condition: SET;
  12817. BEGIN REPEAT UNTIL condition;
  12818. END Test.
  12819. negative: repeat statement with condition of type array
  12820. MODULE Test;
  12821. VAR condition: ARRAY 10 OF CHAR;
  12822. BEGIN REPEAT UNTIL condition;
  12823. END Test.
  12824. negative: repeat statement with condition of type record
  12825. MODULE Test;
  12826. VAR condition: RECORD END;
  12827. BEGIN REPEAT UNTIL condition;
  12828. END Test.
  12829. negative: repeat statement with condition of type object
  12830. MODULE Test;
  12831. VAR condition: OBJECT;
  12832. BEGIN REPEAT UNTIL condition;
  12833. END Test.
  12834. negative: repeat statement with condition of type pointer
  12835. MODULE Test;
  12836. VAR condition: POINTER TO RECORD END;
  12837. BEGIN REPEAT UNTIL condition;
  12838. END Test.
  12839. negative: repeat statement with condition of type procedure
  12840. MODULE Test;
  12841. VAR condition: PROCEDURE;
  12842. BEGIN REPEAT UNTIL condition;
  12843. END Test.
  12844. negative: repeat statement with import as condition
  12845. MODULE Test;
  12846. IMPORT condition := Dummy;
  12847. BEGIN REPEAT UNTIL condition;
  12848. END Test.
  12849. negative: repeat statement with type as condition
  12850. MODULE Test;
  12851. TYPE condition = BOOLEAN;
  12852. BEGIN REPEAT UNTIL condition;
  12853. END Test.
  12854. # await statement
  12855. positive: await statement in non-exclusive block
  12856. MODULE Test;
  12857. VAR condition: BOOLEAN;
  12858. BEGIN AWAIT (condition);
  12859. END Test.
  12860. positive: await statement in nested non-exclusive block
  12861. MODULE Test;
  12862. VAR condition: BOOLEAN;
  12863. BEGIN BEGIN AWAIT (condition) END;
  12864. END Test.
  12865. positive: await statement in exclusive block
  12866. MODULE Test;
  12867. VAR condition: BOOLEAN;
  12868. BEGIN {EXCLUSIVE} AWAIT (condition);
  12869. END Test.
  12870. positive: await statement in nested exclusive block
  12871. MODULE Test;
  12872. VAR condition: BOOLEAN;
  12873. BEGIN BEGIN {EXCLUSIVE} AWAIT (condition) END;
  12874. END Test.
  12875. positive: await statement within nested exclusive block
  12876. MODULE Test;
  12877. VAR condition: BOOLEAN;
  12878. BEGIN {EXCLUSIVE} BEGIN AWAIT (condition) END;
  12879. END Test.
  12880. negative: await statement with constant true condition
  12881. MODULE Test;
  12882. BEGIN {EXCLUSIVE} AWAIT (TRUE);
  12883. END Test.
  12884. negative: await statement with constant false condition
  12885. MODULE Test;
  12886. BEGIN {EXCLUSIVE} AWAIT (FALSE);
  12887. END Test.
  12888. negative: await statement with constant condition of type character
  12889. MODULE Test;
  12890. BEGIN {EXCLUSIVE} AWAIT ('a');
  12891. END Test.
  12892. negative: await statement with constant condition of type integer
  12893. MODULE Test;
  12894. BEGIN {EXCLUSIVE} AWAIT (5);
  12895. END Test.
  12896. negative: await statement with constant condition of type real
  12897. MODULE Test;
  12898. BEGIN {EXCLUSIVE} AWAIT (4.5);
  12899. END Test.
  12900. negative: await statement with constant condition of type set
  12901. MODULE Test;
  12902. BEGIN {EXCLUSIVE} AWAIT ({5});
  12903. END Test.
  12904. negative: await statement with constant condition of type string
  12905. MODULE Test;
  12906. BEGIN {EXCLUSIVE} AWAIT ("condition");
  12907. END Test.
  12908. negative: await statement with constant condition of type nil pointer
  12909. MODULE Test;
  12910. BEGIN {EXCLUSIVE} AWAIT (NIL);
  12911. END Test.
  12912. positive: await statement with condition of type boolean
  12913. MODULE Test;
  12914. VAR condition: BOOLEAN;
  12915. BEGIN {EXCLUSIVE} AWAIT (condition);
  12916. END Test.
  12917. negative: await statement with condition of type character
  12918. MODULE Test;
  12919. VAR condition: CHAR;
  12920. BEGIN {EXCLUSIVE} AWAIT (condition);
  12921. END Test.
  12922. negative: await statement with condition of type short integer
  12923. MODULE Test;
  12924. VAR condition: SHORTINT;
  12925. BEGIN {EXCLUSIVE} AWAIT (condition);
  12926. END Test.
  12927. negative: await statement with condition of type integer
  12928. MODULE Test;
  12929. VAR condition: INTEGER;
  12930. BEGIN {EXCLUSIVE} AWAIT (condition);
  12931. END Test.
  12932. negative: await statement with condition of type long integer
  12933. MODULE Test;
  12934. VAR condition: LONGINT;
  12935. BEGIN {EXCLUSIVE} AWAIT (condition);
  12936. END Test.
  12937. negative: await statement with condition of type huge integer
  12938. MODULE Test;
  12939. VAR condition: HUGEINT;
  12940. BEGIN {EXCLUSIVE} AWAIT (condition);
  12941. END Test.
  12942. negative: await statement with condition of type real
  12943. MODULE Test;
  12944. VAR condition: REAL;
  12945. BEGIN {EXCLUSIVE} AWAIT (condition);
  12946. END Test.
  12947. negative: await statement with condition of type long real
  12948. MODULE Test;
  12949. VAR condition: LONGREAL;
  12950. BEGIN {EXCLUSIVE} AWAIT (condition);
  12951. END Test.
  12952. negative: await statement with condition of type set
  12953. MODULE Test;
  12954. VAR condition: SET;
  12955. BEGIN {EXCLUSIVE} AWAIT (condition);
  12956. END Test.
  12957. negative: await statement with condition of type array
  12958. MODULE Test;
  12959. VAR condition: ARRAY 10 OF CHAR;
  12960. BEGIN {EXCLUSIVE} AWAIT (condition);
  12961. END Test.
  12962. negative: await statement with condition of type record
  12963. MODULE Test;
  12964. VAR condition: RECORD END;
  12965. BEGIN {EXCLUSIVE} AWAIT (condition);
  12966. END Test.
  12967. negative: await statement with condition of type object
  12968. MODULE Test;
  12969. VAR condition: OBJECT;
  12970. BEGIN {EXCLUSIVE} AWAIT (condition);
  12971. END Test.
  12972. negative: await statement with condition of type pointer
  12973. MODULE Test;
  12974. VAR condition: POINTER TO RECORD END;
  12975. BEGIN {EXCLUSIVE} AWAIT (condition);
  12976. END Test.
  12977. negative: await statement with condition of type procedure
  12978. MODULE Test;
  12979. VAR condition: PROCEDURE;
  12980. BEGIN {EXCLUSIVE} AWAIT (condition);
  12981. END Test.
  12982. negative: await statement with import as condition
  12983. MODULE Test;
  12984. IMPORT condition := Dummy;
  12985. BEGIN {EXCLUSIVE} AWAIT (condition);
  12986. END Test.
  12987. negative: await statement with type as condition
  12988. MODULE Test;
  12989. TYPE condition = BOOLEAN;
  12990. BEGIN {EXCLUSIVE} AWAIT (condition);
  12991. END Test.
  12992. # assignment statement
  12993. positive: constant boolean to variable boolean assignment
  12994. MODULE Test;
  12995. VAR result: BOOLEAN;
  12996. BEGIN result := TRUE;
  12997. END Test.
  12998. negative: constant boolean to temporary boolean assignment
  12999. MODULE Test;
  13000. VAR result: PROCEDURE (): BOOLEAN;
  13001. BEGIN result () := TRUE;
  13002. END Test.
  13003. negative: constant character to variable boolean assignment
  13004. MODULE Test;
  13005. VAR result: BOOLEAN;
  13006. BEGIN result := 'f';
  13007. END Test.
  13008. negative: constant short integer to variable boolean assignment
  13009. MODULE Test;
  13010. VAR result: BOOLEAN;
  13011. BEGIN result := 10H;
  13012. END Test.
  13013. negative: constant integer to variable boolean assignment
  13014. MODULE Test;
  13015. VAR result: BOOLEAN;
  13016. BEGIN result := 1000H;
  13017. END Test.
  13018. negative: constant long integer to variable boolean assignment
  13019. MODULE Test;
  13020. VAR result: BOOLEAN;
  13021. BEGIN result := 100000H;
  13022. END Test.
  13023. negative: constant huge integer to variable boolean assignment
  13024. MODULE Test;
  13025. VAR result: BOOLEAN;
  13026. BEGIN result := 10000000000H;
  13027. END Test.
  13028. negative: constant real to variable boolean assignment
  13029. MODULE Test;
  13030. VAR result: BOOLEAN;
  13031. BEGIN result := 5.4;
  13032. END Test.
  13033. negative: constant long real to variable boolean assignment
  13034. MODULE Test;
  13035. VAR result: BOOLEAN;
  13036. BEGIN result := 5.4D100;
  13037. END Test.
  13038. negative: constant set to variable boolean assignment
  13039. MODULE Test;
  13040. VAR result: BOOLEAN;
  13041. BEGIN result := {5};
  13042. END Test.
  13043. negative: string to variable boolean assignment
  13044. MODULE Test;
  13045. VAR result: BOOLEAN;
  13046. BEGIN result := "string";
  13047. END Test.
  13048. negative: nil pointer to variable boolean assignment
  13049. MODULE Test;
  13050. VAR result: BOOLEAN;
  13051. BEGIN result := NIL;
  13052. END Test.
  13053. negative: procedure to variable boolean assignment
  13054. MODULE Test;
  13055. VAR result: BOOLEAN;
  13056. PROCEDURE Procedure; END Procedure;
  13057. BEGIN result := Procedure;
  13058. END Test.
  13059. negative: constant boolean to variable character assignment
  13060. MODULE Test;
  13061. VAR result: CHAR;
  13062. BEGIN result := TRUE;
  13063. END Test.
  13064. positive: constant character to variable character assignment
  13065. MODULE Test;
  13066. VAR result: CHAR;
  13067. BEGIN result := 'f';
  13068. END Test.
  13069. negative: constant character to temporary character assignment
  13070. MODULE Test;
  13071. VAR result: PROCEDURE (): CHAR;
  13072. BEGIN result () := 'u';
  13073. END Test.
  13074. negative: constant short integer to variable character assignment
  13075. MODULE Test;
  13076. VAR result: CHAR;
  13077. BEGIN result := 10H;
  13078. END Test.
  13079. negative: constant integer to variable character assignment
  13080. MODULE Test;
  13081. VAR result: CHAR;
  13082. BEGIN result := 1000H;
  13083. END Test.
  13084. negative: constant long integer to variable character assignment
  13085. MODULE Test;
  13086. VAR result: CHAR;
  13087. BEGIN result := 100000H;
  13088. END Test.
  13089. negative: constant huge integer to variable character assignment
  13090. MODULE Test;
  13091. VAR result: CHAR;
  13092. BEGIN result := 10000000000H;
  13093. END Test.
  13094. negative: constant real to variable character assignment
  13095. MODULE Test;
  13096. VAR result: CHAR;
  13097. BEGIN result := 5.4;
  13098. END Test.
  13099. negative: constant long real to variable character assignment
  13100. MODULE Test;
  13101. VAR result: CHAR;
  13102. BEGIN result := 5.4D100;
  13103. END Test.
  13104. negative: constant set to variable character assignment
  13105. MODULE Test;
  13106. VAR result: CHAR;
  13107. BEGIN result := {5};
  13108. END Test.
  13109. negative: string to variable character assignment
  13110. MODULE Test;
  13111. VAR result: CHAR;
  13112. BEGIN result := "string";
  13113. END Test.
  13114. negative: nil pointer to variable character assignment
  13115. MODULE Test;
  13116. VAR result: CHAR;
  13117. BEGIN result := NIL;
  13118. END Test.
  13119. negative: procedure to variable character assignment
  13120. MODULE Test;
  13121. VAR result: CHAR;
  13122. PROCEDURE Procedure; END Procedure;
  13123. BEGIN result := Procedure;
  13124. END Test.
  13125. negative: constant boolean to variable short integer assignment
  13126. MODULE Test;
  13127. VAR result: SHORTINT;
  13128. BEGIN result := TRUE;
  13129. END Test.
  13130. negative: constant character to variable short integer assignment
  13131. MODULE Test;
  13132. VAR result: SHORTINT;
  13133. BEGIN result := 'f';
  13134. END Test.
  13135. positive: constant short integer to variable short integer assignment
  13136. MODULE Test;
  13137. VAR result: SHORTINT;
  13138. BEGIN result := 10H;
  13139. END Test.
  13140. negative: constant short integer to temporary short integer assignment
  13141. MODULE Test;
  13142. VAR result: PROCEDURE (): SHORTINT;
  13143. BEGIN result () := 10H;
  13144. END Test.
  13145. negative: constant integer to variable short integer assignment
  13146. MODULE Test;
  13147. VAR result: SHORTINT;
  13148. BEGIN result := 1000H;
  13149. END Test.
  13150. negative: constant long integer to variable short integer assignment
  13151. MODULE Test;
  13152. VAR result: SHORTINT;
  13153. BEGIN result := 100000H;
  13154. END Test.
  13155. negative: constant huge integer to variable short integer assignment
  13156. MODULE Test;
  13157. VAR result: SHORTINT;
  13158. BEGIN result := 10000000000H;
  13159. END Test.
  13160. negative: constant real to variable short integer assignment
  13161. MODULE Test;
  13162. VAR result: SHORTINT;
  13163. BEGIN result := 5.4;
  13164. END Test.
  13165. negative: constant long real to variable short integer assignment
  13166. MODULE Test;
  13167. VAR result: SHORTINT;
  13168. BEGIN result := 5.4D100;
  13169. END Test.
  13170. negative: constant set to variable short integer assignment
  13171. MODULE Test;
  13172. VAR result: SHORTINT;
  13173. BEGIN result := {5};
  13174. END Test.
  13175. negative: string to variable short integer assignment
  13176. MODULE Test;
  13177. VAR result: SHORTINT;
  13178. BEGIN result := "string";
  13179. END Test.
  13180. negative: nil pointer to variable short integer assignment
  13181. MODULE Test;
  13182. VAR result: SHORTINT;
  13183. BEGIN result := NIL;
  13184. END Test.
  13185. negative: procedure to variable short integer assignment
  13186. MODULE Test;
  13187. VAR result: SHORTINT;
  13188. PROCEDURE Procedure; END Procedure;
  13189. BEGIN result := Procedure;
  13190. END Test.
  13191. negative: constant boolean to variable integer assignment
  13192. MODULE Test;
  13193. VAR result: INTEGER;
  13194. BEGIN result := TRUE;
  13195. END Test.
  13196. negative: constant character to variable integer assignment
  13197. MODULE Test;
  13198. VAR result: INTEGER;
  13199. BEGIN result := 'f';
  13200. END Test.
  13201. positive: constant short integer to variable integer assignment
  13202. MODULE Test;
  13203. VAR result: INTEGER;
  13204. BEGIN result := 10H;
  13205. END Test.
  13206. negative: constant short integer to temporary integer assignment
  13207. MODULE Test;
  13208. VAR result: PROCEDURE (): INTEGER;
  13209. BEGIN result () := 10H;
  13210. END Test.
  13211. positive: constant integer to variable integer assignment
  13212. MODULE Test;
  13213. VAR result: INTEGER;
  13214. BEGIN result := 1000H;
  13215. END Test.
  13216. negative: constant integer to temporary integer assignment
  13217. MODULE Test;
  13218. VAR result: PROCEDURE (): INTEGER;
  13219. BEGIN result () := 1000H;
  13220. END Test.
  13221. negative: constant long integer to variable integer assignment
  13222. MODULE Test;
  13223. VAR result: INTEGER;
  13224. BEGIN result := 100000H;
  13225. END Test.
  13226. negative: constant huge integer to variable integer assignment
  13227. MODULE Test;
  13228. VAR result: INTEGER;
  13229. BEGIN result := 10000000000H;
  13230. END Test.
  13231. negative: constant real to variable integer assignment
  13232. MODULE Test;
  13233. VAR result: INTEGER;
  13234. BEGIN result := 5.4;
  13235. END Test.
  13236. negative: constant long real to variable integer assignment
  13237. MODULE Test;
  13238. VAR result: INTEGER;
  13239. BEGIN result := 5.4D100;
  13240. END Test.
  13241. negative: constant set to variable integer assignment
  13242. MODULE Test;
  13243. VAR result: INTEGER;
  13244. BEGIN result := {5};
  13245. END Test.
  13246. negative: string to variable integer assignment
  13247. MODULE Test;
  13248. VAR result: INTEGER;
  13249. BEGIN result := "string";
  13250. END Test.
  13251. negative: nil pointer to variable integer assignment
  13252. MODULE Test;
  13253. VAR result: INTEGER;
  13254. BEGIN result := NIL;
  13255. END Test.
  13256. negative: procedure to variable integer assignment
  13257. MODULE Test;
  13258. VAR result: INTEGER;
  13259. PROCEDURE Procedure; END Procedure;
  13260. BEGIN result := Procedure;
  13261. END Test.
  13262. negative: constant boolean to variable long integer assignment
  13263. MODULE Test;
  13264. VAR result: LONGINT;
  13265. BEGIN result := TRUE;
  13266. END Test.
  13267. negative: constant character to variable long integer assignment
  13268. MODULE Test;
  13269. VAR result: LONGINT;
  13270. BEGIN result := 'f';
  13271. END Test.
  13272. positive: constant short integer to variable long integer assignment
  13273. MODULE Test;
  13274. VAR result: LONGINT;
  13275. BEGIN result := 10H;
  13276. END Test.
  13277. negative: constant short integer to temporary long integer assignment
  13278. MODULE Test;
  13279. VAR result: PROCEDURE (): LONGINT;
  13280. BEGIN result () := 10H;
  13281. END Test.
  13282. positive: constant integer to variable long integer assignment
  13283. MODULE Test;
  13284. VAR result: LONGINT;
  13285. BEGIN result := 1000H;
  13286. END Test.
  13287. negative: constant integer to temporary long integer assignment
  13288. MODULE Test;
  13289. VAR result: PROCEDURE (): LONGINT;
  13290. BEGIN result () := 1000H;
  13291. END Test.
  13292. positive: constant long integer to variable long integer assignment
  13293. MODULE Test;
  13294. VAR result: LONGINT;
  13295. BEGIN result := 100000H;
  13296. END Test.
  13297. negative: constant long integer to temporary long integer assignment
  13298. MODULE Test;
  13299. VAR result: PROCEDURE (): LONGINT;
  13300. BEGIN result () := 100000H;
  13301. END Test.
  13302. negative: constant huge integer to variable long integer assignment
  13303. MODULE Test;
  13304. VAR result: LONGINT;
  13305. BEGIN result := 10000000000H;
  13306. END Test.
  13307. negative: constant real to variable long integer assignment
  13308. MODULE Test;
  13309. VAR result: LONGINT;
  13310. BEGIN result := 5.4;
  13311. END Test.
  13312. negative: constant long real to variable long integer assignment
  13313. MODULE Test;
  13314. VAR result: LONGINT;
  13315. BEGIN result := 5.4D100;
  13316. END Test.
  13317. negative: constant set to variable long integer assignment
  13318. MODULE Test;
  13319. VAR result: LONGINT;
  13320. BEGIN result := {5};
  13321. END Test.
  13322. negative: string to variable long integer assignment
  13323. MODULE Test;
  13324. VAR result: LONGINT;
  13325. BEGIN result := "string";
  13326. END Test.
  13327. negative: nil pointer to variable long integer assignment
  13328. MODULE Test;
  13329. VAR result: LONGINT;
  13330. BEGIN result := NIL;
  13331. END Test.
  13332. negative: procedure to variable long integer assignment
  13333. MODULE Test;
  13334. VAR result: LONGINT;
  13335. PROCEDURE Procedure; END Procedure;
  13336. BEGIN result := Procedure;
  13337. END Test.
  13338. negative: constant boolean to variable huge integer assignment
  13339. MODULE Test;
  13340. VAR result: HUGEINT;
  13341. BEGIN result := TRUE;
  13342. END Test.
  13343. negative: constant character to variable huge integer assignment
  13344. MODULE Test;
  13345. VAR result: HUGEINT;
  13346. BEGIN result := 'f';
  13347. END Test.
  13348. positive: constant short integer to variable huge integer assignment
  13349. MODULE Test;
  13350. VAR result: HUGEINT;
  13351. BEGIN result := 10H;
  13352. END Test.
  13353. negative: constant short integer to temporary huge integer assignment
  13354. MODULE Test;
  13355. VAR result: PROCEDURE (): HUGEINT;
  13356. BEGIN result () := 10H;
  13357. END Test.
  13358. positive: constant integer to variable huge integer assignment
  13359. MODULE Test;
  13360. VAR result: HUGEINT;
  13361. BEGIN result := 1000H;
  13362. END Test.
  13363. negative: constant integer to temporary huge integer assignment
  13364. MODULE Test;
  13365. VAR result: PROCEDURE (): HUGEINT;
  13366. BEGIN result () := 1000H;
  13367. END Test.
  13368. positive: constant long integer to variable huge integer assignment
  13369. MODULE Test;
  13370. VAR result: HUGEINT;
  13371. BEGIN result := 100000H;
  13372. END Test.
  13373. negative: constant long integer to temporary huge integer assignment
  13374. MODULE Test;
  13375. VAR result: PROCEDURE (): HUGEINT;
  13376. BEGIN result () := 100000H;
  13377. END Test.
  13378. positive: constant huge integer to variable huge integer assignment
  13379. MODULE Test;
  13380. VAR result: HUGEINT;
  13381. BEGIN result := 10000000000H;
  13382. END Test.
  13383. negative: constant huge integer to temporary huge integer assignment
  13384. MODULE Test;
  13385. VAR result: PROCEDURE (): HUGEINT;
  13386. BEGIN result () := 10000000000H;
  13387. END Test.
  13388. negative: constant real to variable huge integer assignment
  13389. MODULE Test;
  13390. VAR result: HUGEINT;
  13391. BEGIN result := 5.4;
  13392. END Test.
  13393. negative: constant long real to variable huge integer assignment
  13394. MODULE Test;
  13395. VAR result: HUGEINT;
  13396. BEGIN result := 5.4D100;
  13397. END Test.
  13398. negative: constant set to variable huge integer assignment
  13399. MODULE Test;
  13400. VAR result: HUGEINT;
  13401. BEGIN result := {5};
  13402. END Test.
  13403. negative: string to variable huge integer assignment
  13404. MODULE Test;
  13405. VAR result: HUGEINT;
  13406. BEGIN result := "string";
  13407. END Test.
  13408. negative: nil pointer to variable huge integer assignment
  13409. MODULE Test;
  13410. VAR result: HUGEINT;
  13411. BEGIN result := NIL;
  13412. END Test.
  13413. negative: procedure to variable huge integer assignment
  13414. MODULE Test;
  13415. VAR result: HUGEINT;
  13416. PROCEDURE Procedure; END Procedure;
  13417. BEGIN result := Procedure;
  13418. END Test.
  13419. negative: constant boolean to variable real assignment
  13420. MODULE Test;
  13421. VAR result: REAL;
  13422. BEGIN result := TRUE;
  13423. END Test.
  13424. negative: constant character to variable real assignment
  13425. MODULE Test;
  13426. VAR result: REAL;
  13427. BEGIN result := 'f';
  13428. END Test.
  13429. positive: constant short integer to variable real assignment
  13430. MODULE Test;
  13431. VAR result: REAL;
  13432. BEGIN result := 10H;
  13433. END Test.
  13434. negative: constant short integer to temporary real assignment
  13435. MODULE Test;
  13436. VAR result: PROCEDURE (): REAL;
  13437. BEGIN result () := 10H;
  13438. END Test.
  13439. positive: constant integer to variable real assignment
  13440. MODULE Test;
  13441. VAR result: REAL;
  13442. BEGIN result := 1000H;
  13443. END Test.
  13444. negative: constant integer to temporary real assignment
  13445. MODULE Test;
  13446. VAR result: PROCEDURE (): REAL;
  13447. BEGIN result () := 1000H;
  13448. END Test.
  13449. positive: constant long integer to variable real assignment
  13450. MODULE Test;
  13451. VAR result: REAL;
  13452. BEGIN result := 100000H;
  13453. END Test.
  13454. negative: constant long integer to temporary real assignment
  13455. MODULE Test;
  13456. VAR result: PROCEDURE (): REAL;
  13457. BEGIN result () := 100000H;
  13458. END Test.
  13459. positive: constant huge integer to variable real assignment
  13460. MODULE Test;
  13461. VAR result: REAL;
  13462. BEGIN result := 10000000000H;
  13463. END Test.
  13464. negative: constant huge integer to temporary real assignment
  13465. MODULE Test;
  13466. VAR result: PROCEDURE (): REAL;
  13467. BEGIN result () := 10000000000H;
  13468. END Test.
  13469. positive: constant real to variable real assignment
  13470. MODULE Test;
  13471. VAR result: REAL;
  13472. BEGIN result := 5.4;
  13473. END Test.
  13474. negative: constant real to temporary real assignment
  13475. MODULE Test;
  13476. VAR result: PROCEDURE (): REAL;
  13477. BEGIN result () := 5.4;
  13478. END Test.
  13479. negative: constant long real to variable real assignment
  13480. MODULE Test;
  13481. VAR result: REAL;
  13482. BEGIN result := 5.4D100;
  13483. END Test.
  13484. negative: constant set to variable real assignment
  13485. MODULE Test;
  13486. VAR result: REAL;
  13487. BEGIN result := {5};
  13488. END Test.
  13489. negative: string to variable real assignment
  13490. MODULE Test;
  13491. VAR result: REAL;
  13492. BEGIN result := "string";
  13493. END Test.
  13494. negative: nil pointer to variable real assignment
  13495. MODULE Test;
  13496. VAR result: REAL;
  13497. BEGIN result := NIL;
  13498. END Test.
  13499. negative: procedure to variable real assignment
  13500. MODULE Test;
  13501. VAR result: REAL;
  13502. PROCEDURE Procedure; END Procedure;
  13503. BEGIN result := Procedure;
  13504. END Test.
  13505. negative: constant boolean to variable long real assignment
  13506. MODULE Test;
  13507. VAR result: LONGREAL;
  13508. BEGIN result := TRUE;
  13509. END Test.
  13510. negative: constant character to variable long real assignment
  13511. MODULE Test;
  13512. VAR result: LONGREAL;
  13513. BEGIN result := 'f';
  13514. END Test.
  13515. positive: constant short integer to variable long real assignment
  13516. MODULE Test;
  13517. VAR result: LONGREAL;
  13518. BEGIN result := 10H;
  13519. END Test.
  13520. negative: constant short integer to temporary long real assignment
  13521. MODULE Test;
  13522. VAR result: PROCEDURE (): LONGREAL;
  13523. BEGIN result () := 10H;
  13524. END Test.
  13525. positive: constant integer to variable long real assignment
  13526. MODULE Test;
  13527. VAR result: LONGREAL;
  13528. BEGIN result := 1000H;
  13529. END Test.
  13530. negative: constant integer to temporary long real assignment
  13531. MODULE Test;
  13532. VAR result: PROCEDURE (): LONGREAL;
  13533. BEGIN result () := 1000H;
  13534. END Test.
  13535. positive: constant long integer to variable long real assignment
  13536. MODULE Test;
  13537. VAR result: LONGREAL;
  13538. BEGIN result := 100000H;
  13539. END Test.
  13540. negative: constant long integer to temporary long real assignment
  13541. MODULE Test;
  13542. VAR result: PROCEDURE (): LONGREAL;
  13543. BEGIN result () := 100000H;
  13544. END Test.
  13545. positive: constant huge integer to variable long real assignment
  13546. MODULE Test;
  13547. VAR result: LONGREAL;
  13548. BEGIN result := 10000000000H;
  13549. END Test.
  13550. negative: constant huge integer to temporary long real assignment
  13551. MODULE Test;
  13552. VAR result: PROCEDURE (): LONGREAL;
  13553. BEGIN result () := 10000000000H;
  13554. END Test.
  13555. positive: constant real to variable long real assignment
  13556. MODULE Test;
  13557. VAR result: LONGREAL;
  13558. BEGIN result := 5.4;
  13559. END Test.
  13560. negative: constant real to temporary long real assignment
  13561. MODULE Test;
  13562. VAR result: PROCEDURE (): LONGREAL;
  13563. BEGIN result () := 5.4;
  13564. END Test.
  13565. positive: constant long real to variable long real assignment
  13566. MODULE Test;
  13567. VAR result: LONGREAL;
  13568. BEGIN result := 5.4D100;
  13569. END Test.
  13570. negative: constant long real to temporary long real assignment
  13571. MODULE Test;
  13572. VAR result: PROCEDURE (): LONGREAL;
  13573. BEGIN result () := 5.4D100;
  13574. END Test.
  13575. negative: constant set to variable long real assignment
  13576. MODULE Test;
  13577. VAR result: LONGREAL;
  13578. BEGIN result := {5};
  13579. END Test.
  13580. negative: string to variable long real assignment
  13581. MODULE Test;
  13582. VAR result: LONGREAL;
  13583. BEGIN result := "string";
  13584. END Test.
  13585. negative: nil pointer to variable long real assignment
  13586. MODULE Test;
  13587. VAR result: LONGREAL;
  13588. BEGIN result := NIL;
  13589. END Test.
  13590. negative: procedure to variable long real assignment
  13591. MODULE Test;
  13592. VAR result: LONGREAL;
  13593. PROCEDURE Procedure; END Procedure;
  13594. BEGIN result := Procedure;
  13595. END Test.
  13596. negative: constant boolean to variable set assignment
  13597. MODULE Test;
  13598. VAR result: SET;
  13599. BEGIN result := TRUE;
  13600. END Test.
  13601. negative: constant character to variable set assignment
  13602. MODULE Test;
  13603. VAR result: SET;
  13604. BEGIN result := 'f';
  13605. END Test.
  13606. negative: constant short integer to variable set assignment
  13607. MODULE Test;
  13608. VAR result: SET;
  13609. BEGIN result := 10H;
  13610. END Test.
  13611. negative: constant integer to variable set assignment
  13612. MODULE Test;
  13613. VAR result: SET;
  13614. BEGIN result := 1000H;
  13615. END Test.
  13616. negative: constant long integer to variable set assignment
  13617. MODULE Test;
  13618. VAR result: SET;
  13619. BEGIN result := 100000H;
  13620. END Test.
  13621. negative: constant huge integer to variable set assignment
  13622. MODULE Test;
  13623. VAR result: SET;
  13624. BEGIN result := 10000000000H;
  13625. END Test.
  13626. negative: constant real to variable set assignment
  13627. MODULE Test;
  13628. VAR result: SET;
  13629. BEGIN result := 5.4;
  13630. END Test.
  13631. negative: constant long real to variable set assignment
  13632. MODULE Test;
  13633. VAR result: SET;
  13634. BEGIN result := 5.4D100;
  13635. END Test.
  13636. positive: constant set to variable set assignment
  13637. MODULE Test;
  13638. VAR result: SET;
  13639. BEGIN result := {5};
  13640. END Test.
  13641. negative: constant set to temporary set assignment
  13642. MODULE Test;
  13643. VAR result: PROCEDURE (): SET;
  13644. BEGIN result () := {5};
  13645. END Test.
  13646. negative: string to variable set assignment
  13647. MODULE Test;
  13648. VAR result: SET;
  13649. BEGIN result := "string";
  13650. END Test.
  13651. negative: nil pointer to variable set assignment
  13652. MODULE Test;
  13653. VAR result: SET;
  13654. BEGIN result := NIL;
  13655. END Test.
  13656. negative: procedure to variable set assignment
  13657. MODULE Test;
  13658. VAR result: SET;
  13659. PROCEDURE Procedure; END Procedure;
  13660. BEGIN result := Procedure;
  13661. END Test.
  13662. negative: constant boolean to variable array assignment
  13663. MODULE Test;
  13664. VAR result: ARRAY 10 OF CHAR;
  13665. BEGIN result := TRUE;
  13666. END Test.
  13667. #temporarily removed
  13668. #negative: constant character to variable array assignment
  13669. #
  13670. # MODULE Test;
  13671. # VAR result: ARRAY 10 OF CHAR;
  13672. # BEGIN result := 'f';
  13673. # END Test.
  13674. negative: constant short integer to variable array assignment
  13675. MODULE Test;
  13676. VAR result: ARRAY 10 OF CHAR;
  13677. BEGIN result := 10H;
  13678. END Test.
  13679. negative: constant integer to variable array assignment
  13680. MODULE Test;
  13681. VAR result: ARRAY 10 OF CHAR;
  13682. BEGIN result := 1000H;
  13683. END Test.
  13684. negative: constant long integer to variable array assignment
  13685. MODULE Test;
  13686. VAR result: ARRAY 10 OF CHAR;
  13687. BEGIN result := 100000H;
  13688. END Test.
  13689. negative: constant huge integer to variable array assignment
  13690. MODULE Test;
  13691. VAR result: ARRAY 10 OF CHAR;
  13692. BEGIN result := 10000000000H;
  13693. END Test.
  13694. negative: constant real to variable array assignment
  13695. MODULE Test;
  13696. VAR result: ARRAY 10 OF CHAR;
  13697. BEGIN result := 5.4;
  13698. END Test.
  13699. negative: constant long real to variable array assignment
  13700. MODULE Test;
  13701. VAR result: ARRAY 10 OF CHAR;
  13702. BEGIN result := 5.4D100;
  13703. END Test.
  13704. negative: constant set to variable array assignment
  13705. MODULE Test;
  13706. VAR result: ARRAY 10 OF CHAR;
  13707. BEGIN result := {5};
  13708. END Test.
  13709. negative: string to variable array of boolean assignment
  13710. MODULE Test;
  13711. VAR result: ARRAY 10 OF BOOLEAN;
  13712. BEGIN result := "string";
  13713. END Test.
  13714. positive: string to longer variable array of character assignment
  13715. MODULE Test;
  13716. VAR result: ARRAY 10 OF CHAR;
  13717. BEGIN result := "string";
  13718. END Test.
  13719. negative: string to longer temporary array of character assignment
  13720. MODULE Test;
  13721. VAR result: PROCEDURE (): ARRAY 10 OF CHAR;
  13722. BEGIN result () := "string";
  13723. END Test.
  13724. positive: string to variable array of character of equal size assignment
  13725. MODULE Test;
  13726. VAR result: ARRAY 7 OF CHAR;
  13727. BEGIN result := "string";
  13728. END Test.
  13729. negative: string to temporary array of equal size assignment
  13730. MODULE Test;
  13731. VAR result: PROCEDURE (): ARRAY 7 OF CHAR;
  13732. BEGIN result () := "string";
  13733. END Test.
  13734. negative: string to shorter variable array of character assignment
  13735. MODULE Test;
  13736. VAR result: ARRAY 6 OF CHAR;
  13737. BEGIN result := "string";
  13738. END Test.
  13739. negative: string to variable array of short integer assignment
  13740. MODULE Test;
  13741. VAR result: ARRAY 10 OF SHORTINT;
  13742. BEGIN result := "string";
  13743. END Test.
  13744. negative: string to variable array of integer assignment
  13745. MODULE Test;
  13746. VAR result: ARRAY 10 OF INTEGER;
  13747. BEGIN result := "string";
  13748. END Test.
  13749. negative: string to variable array of long integer assignment
  13750. MODULE Test;
  13751. VAR result: ARRAY 10 OF LONGINT;
  13752. BEGIN result := "string";
  13753. END Test.
  13754. negative: string to variable array of huge integer assignment
  13755. MODULE Test;
  13756. VAR result: ARRAY 10 OF HUGEINT;
  13757. BEGIN result := "string";
  13758. END Test.
  13759. negative: string to variable array of real assignment
  13760. MODULE Test;
  13761. VAR result: ARRAY 10 OF REAL;
  13762. BEGIN result := "string";
  13763. END Test.
  13764. negative: string to variable array of long real assignment
  13765. MODULE Test;
  13766. VAR result: ARRAY 10 OF LONGREAL;
  13767. BEGIN result := "string";
  13768. END Test.
  13769. negative: string to variable array of set assignment
  13770. MODULE Test;
  13771. VAR result: ARRAY 10 OF SET;
  13772. BEGIN result := "string";
  13773. END Test.
  13774. negative: string to variable array of array assignment
  13775. MODULE Test;
  13776. VAR result: ARRAY 10 OF ARRAY 10 OF CHAR;
  13777. BEGIN result := "string";
  13778. END Test.
  13779. negative: string to variable array of record assignment
  13780. MODULE Test;
  13781. VAR result: ARRAY 10 OF RECORD END;
  13782. BEGIN result := "string";
  13783. END Test.
  13784. negative: string to variable array of object assignment
  13785. MODULE Test;
  13786. VAR result: ARRAY 10 OF OBJECT END;
  13787. BEGIN result := "string";
  13788. END Test.
  13789. negative: string to variable array of pointer assignment
  13790. MODULE Test;
  13791. VAR result: ARRAY 10 OF POINTER TO RECORD END;
  13792. BEGIN result := "string";
  13793. END Test.
  13794. negative: string to variable array of procedure assignment
  13795. MODULE Test;
  13796. VAR result: ARRAY 10 OF PROCEDURE;
  13797. BEGIN result := "string";
  13798. END Test.
  13799. negative: nil pointer to variable array assignment
  13800. MODULE Test;
  13801. VAR result: ARRAY 10 OF CHAR;
  13802. BEGIN result := NIL;
  13803. END Test.
  13804. negative: procedure to variable array assignment
  13805. MODULE Test;
  13806. VAR result: ARRAY 10 OF PROCEDURE;
  13807. PROCEDURE Procedure; END Procedure;
  13808. BEGIN result := Procedure;
  13809. END Test.
  13810. negative: constant boolean to record assignment
  13811. MODULE Test;
  13812. VAR result: RECORD END;
  13813. BEGIN result := TRUE;
  13814. END Test.
  13815. negative: constant character to record assignment
  13816. MODULE Test;
  13817. VAR result: RECORD END;
  13818. BEGIN result := 'f';
  13819. END Test.
  13820. negative: constant short integer to record assignment
  13821. MODULE Test;
  13822. VAR result: RECORD END;
  13823. BEGIN result := 10H;
  13824. END Test.
  13825. negative: constant integer to record assignment
  13826. MODULE Test;
  13827. VAR result: RECORD END;
  13828. BEGIN result := 1000H;
  13829. END Test.
  13830. negative: constant long integer to record assignment
  13831. MODULE Test;
  13832. VAR result: RECORD END;
  13833. BEGIN result := 100000H;
  13834. END Test.
  13835. negative: constant huge integer to record assignment
  13836. MODULE Test;
  13837. VAR result: RECORD END;
  13838. BEGIN result := 10000000000H;
  13839. END Test.
  13840. negative: constant real to record assignment
  13841. MODULE Test;
  13842. VAR result: RECORD END;
  13843. BEGIN result := 5.4;
  13844. END Test.
  13845. negative: constant long real to record assignment
  13846. MODULE Test;
  13847. VAR result: RECORD END;
  13848. BEGIN result := 5.4D100;
  13849. END Test.
  13850. negative: constant set to record assignment
  13851. MODULE Test;
  13852. VAR result: RECORD END;
  13853. BEGIN result := {5};
  13854. END Test.
  13855. negative: string to record assignment
  13856. MODULE Test;
  13857. VAR result: RECORD END;
  13858. BEGIN result := "string";
  13859. END Test.
  13860. negative: nil pointer to record assignment
  13861. MODULE Test;
  13862. VAR result: RECORD END;
  13863. BEGIN result := NIL;
  13864. END Test.
  13865. negative: procedure to record assignment
  13866. MODULE Test;
  13867. VAR result: RECORD END;
  13868. PROCEDURE Procedure; END Procedure;
  13869. BEGIN result := Procedure;
  13870. END Test.
  13871. negative: constant boolean to object assignment
  13872. MODULE Test;
  13873. VAR result: OBJECT END;
  13874. BEGIN result := TRUE;
  13875. END Test.
  13876. negative: constant character to object assignment
  13877. MODULE Test;
  13878. VAR result: OBJECT END;
  13879. BEGIN result := 'f';
  13880. END Test.
  13881. negative: constant short integer to object assignment
  13882. MODULE Test;
  13883. VAR result: OBJECT END;
  13884. BEGIN result := 10H;
  13885. END Test.
  13886. negative: constant integer to object assignment
  13887. MODULE Test;
  13888. VAR result: OBJECT END;
  13889. BEGIN result := 1000H;
  13890. END Test.
  13891. negative: constant long integer to object assignment
  13892. MODULE Test;
  13893. VAR result: OBJECT END;
  13894. BEGIN result := 100000H;
  13895. END Test.
  13896. negative: constant huge integer to object assignment
  13897. MODULE Test;
  13898. VAR result: OBJECT END;
  13899. BEGIN result := 10000000000H;
  13900. END Test.
  13901. negative: constant real to object assignment
  13902. MODULE Test;
  13903. VAR result: OBJECT END;
  13904. BEGIN result := 5.4;
  13905. END Test.
  13906. negative: constant long real to object assignment
  13907. MODULE Test;
  13908. VAR result: OBJECT END;
  13909. BEGIN result := 5.4D100;
  13910. END Test.
  13911. negative: constant set to object assignment
  13912. MODULE Test;
  13913. VAR result: OBJECT END;
  13914. BEGIN result := {5};
  13915. END Test.
  13916. negative: string to object assignment
  13917. MODULE Test;
  13918. VAR result: OBJECT END;
  13919. BEGIN result := "string";
  13920. END Test.
  13921. positive: nil pointer to object assignment
  13922. MODULE Test;
  13923. VAR result: OBJECT END;
  13924. BEGIN result := NIL;
  13925. END Test.
  13926. negative: nil pointer to temporary object assignment
  13927. MODULE Test;
  13928. VAR result: PROCEDURE (): OBJECT END;
  13929. BEGIN result () := NIL;
  13930. END Test.
  13931. negative: procedure to object assignment
  13932. MODULE Test;
  13933. VAR result: OBJECT END;
  13934. PROCEDURE Procedure; END Procedure;
  13935. BEGIN result := Procedure;
  13936. END Test.
  13937. negative: constant boolean to pointer assignment
  13938. MODULE Test;
  13939. VAR result: POINTER TO RECORD END;
  13940. BEGIN result := TRUE;
  13941. END Test.
  13942. negative: constant character to pointer assignment
  13943. MODULE Test;
  13944. VAR result: POINTER TO RECORD END;
  13945. BEGIN result := 'f';
  13946. END Test.
  13947. negative: constant short integer to pointer assignment
  13948. MODULE Test;
  13949. VAR result: POINTER TO RECORD END;
  13950. BEGIN result := 10H;
  13951. END Test.
  13952. negative: constant integer to pointer assignment
  13953. MODULE Test;
  13954. VAR result: POINTER TO RECORD END;
  13955. BEGIN result := 1000H;
  13956. END Test.
  13957. negative: constant long integer to pointer assignment
  13958. MODULE Test;
  13959. VAR result: POINTER TO RECORD END;
  13960. BEGIN result := 100000H;
  13961. END Test.
  13962. negative: constant huge integer to pointer assignment
  13963. MODULE Test;
  13964. VAR result: POINTER TO RECORD END;
  13965. BEGIN result := 10000000000H;
  13966. END Test.
  13967. negative: constant real to pointer assignment
  13968. MODULE Test;
  13969. VAR result: POINTER TO RECORD END;
  13970. BEGIN result := 5.4;
  13971. END Test.
  13972. negative: constant long real to pointer assignment
  13973. MODULE Test;
  13974. VAR result: POINTER TO RECORD END;
  13975. BEGIN result := 5.4D100;
  13976. END Test.
  13977. negative: constant set to pointer assignment
  13978. MODULE Test;
  13979. VAR result: POINTER TO RECORD END;
  13980. BEGIN result := {5};
  13981. END Test.
  13982. negative: string to pointer assignment
  13983. MODULE Test;
  13984. VAR result: POINTER TO RECORD END;
  13985. BEGIN result := "string";
  13986. END Test.
  13987. positive: nil pointer to pointer assignment
  13988. MODULE Test;
  13989. VAR result: POINTER TO RECORD END;
  13990. BEGIN result := NIL;
  13991. END Test.
  13992. negative: nil pointer to temporary pointer assignment
  13993. MODULE Test;
  13994. VAR result: PROCEDURE (): POINTER TO RECORD END;
  13995. BEGIN result () := NIL;
  13996. END Test.
  13997. negative: procedure to pointer assignment
  13998. MODULE Test;
  13999. VAR result: POINTER TO RECORD END;
  14000. PROCEDURE Procedure; END Procedure;
  14001. BEGIN result := Procedure;
  14002. END Test.
  14003. negative: constant boolean to procedure assignment
  14004. MODULE Test;
  14005. VAR result: PROCEDURE;
  14006. BEGIN result := TRUE;
  14007. END Test.
  14008. negative: constant character to procedure assignment
  14009. MODULE Test;
  14010. VAR result: PROCEDURE;
  14011. BEGIN result := 'f';
  14012. END Test.
  14013. negative: constant short integer to procedure assignment
  14014. MODULE Test;
  14015. VAR result: PROCEDURE;
  14016. BEGIN result := 10H;
  14017. END Test.
  14018. negative: constant integer to procedure assignment
  14019. MODULE Test;
  14020. VAR result: PROCEDURE;
  14021. BEGIN result := 1000H;
  14022. END Test.
  14023. negative: constant long integer to procedure assignment
  14024. MODULE Test;
  14025. VAR result: PROCEDURE;
  14026. BEGIN result := 100000H;
  14027. END Test.
  14028. negative: constant huge integer to procedure assignment
  14029. MODULE Test;
  14030. VAR result: PROCEDURE;
  14031. BEGIN result := 10000000000H;
  14032. END Test.
  14033. negative: constant real to procedure assignment
  14034. MODULE Test;
  14035. VAR result: PROCEDURE;
  14036. BEGIN result := 5.4;
  14037. END Test.
  14038. negative: constant long real to procedure assignment
  14039. MODULE Test;
  14040. VAR result: PROCEDURE;
  14041. BEGIN result := 5.4D100;
  14042. END Test.
  14043. negative: constant set to procedure assignment
  14044. MODULE Test;
  14045. VAR result: PROCEDURE;
  14046. BEGIN result := {5};
  14047. END Test.
  14048. negative: string to procedure assignment
  14049. MODULE Test;
  14050. VAR result: PROCEDURE;
  14051. BEGIN result := "string";
  14052. END Test.
  14053. positive: nil pointer to procedure assignment
  14054. MODULE Test;
  14055. VAR result: PROCEDURE;
  14056. BEGIN result := NIL;
  14057. END Test.
  14058. negative: nil pointer to temporary procedure assignment
  14059. MODULE Test;
  14060. VAR result: PROCEDURE (): PROCEDURE;
  14061. BEGIN result () := NIL;
  14062. END Test.
  14063. positive: procedure with one equal parameter to procedure assignment
  14064. MODULE Test;
  14065. VAR result: PROCEDURE (a: INTEGER);
  14066. PROCEDURE Procedure (b: INTEGER); END Procedure;
  14067. BEGIN result := Procedure;
  14068. END Test.
  14069. negative: procedure with one compatible parameter to procedure assignment
  14070. MODULE Test;
  14071. VAR result: PROCEDURE (a: INTEGER);
  14072. PROCEDURE Procedure (b: LONGINT); END Procedure;
  14073. BEGIN result := Procedure;
  14074. END Test.
  14075. negative: procedure with one incompatible parameter to procedure assignment
  14076. MODULE Test;
  14077. VAR result: PROCEDURE (a: SET);
  14078. PROCEDURE Procedure (b: LONGINT); END Procedure;
  14079. BEGIN result := Procedure;
  14080. END Test.
  14081. negative: procedure with one equal variable parameter to procedure assignment
  14082. MODULE Test;
  14083. VAR result: PROCEDURE (VAR a: INTEGER);
  14084. PROCEDURE Procedure (b: INTEGER); END Procedure;
  14085. BEGIN result := Procedure;
  14086. END Test.
  14087. negative: procedure with one equal constant parameter to procedure assignment
  14088. MODULE Test;
  14089. VAR result: PROCEDURE (CONST a: INTEGER);
  14090. PROCEDURE Procedure (b: INTEGER); END Procedure;
  14091. BEGIN result := Procedure;
  14092. END Test.
  14093. positive: procedure with two equal parameters to procedure assignment
  14094. MODULE Test;
  14095. VAR result: PROCEDURE (a, b: INTEGER);
  14096. PROCEDURE Procedure (c, d: INTEGER); END Procedure;
  14097. BEGIN result := Procedure;
  14098. END Test.
  14099. negative: procedure with two compatible parameters to procedure assignment
  14100. MODULE Test;
  14101. VAR result: PROCEDURE (a, b: INTEGER);
  14102. PROCEDURE Procedure (c, d: LONGINT); END Procedure;
  14103. BEGIN result := Procedure;
  14104. END Test.
  14105. negative: procedure with two incompatible parameters to procedure assignment
  14106. MODULE Test;
  14107. VAR result: PROCEDURE (a, b: SET);
  14108. PROCEDURE Procedure (c, d: LONGINT); END Procedure;
  14109. BEGIN result := Procedure;
  14110. END Test.
  14111. negative: procedure with two equal variable parameters to procedure assignment
  14112. MODULE Test;
  14113. VAR result: PROCEDURE (VAR a, b: INTEGER);
  14114. PROCEDURE Procedure (c, d: INTEGER); END Procedure;
  14115. BEGIN result := Procedure;
  14116. END Test.
  14117. negative: procedure with two equal constant parameters to procedure assignment
  14118. MODULE Test;
  14119. VAR result: PROCEDURE (CONST a, b: INTEGER);
  14120. PROCEDURE Procedure (c, d: INTEGER); END Procedure;
  14121. BEGIN result := Procedure;
  14122. END Test.
  14123. positive: procedure with several equal parameters to procedure assignment
  14124. MODULE Test;
  14125. VAR result: PROCEDURE (CONST a: SET; VAR i: INTEGER; o: OBJECT);
  14126. PROCEDURE Procedure (CONST a: SET; VAR i: INTEGER; o: OBJECT); END Procedure;
  14127. BEGIN result := Procedure;
  14128. END Test.
  14129. positive: procedure with equal return type to procedure assignment
  14130. MODULE Test;
  14131. VAR result: PROCEDURE (): INTEGER;
  14132. PROCEDURE Procedure (): INTEGER; BEGIN RETURN 0 END Procedure;
  14133. BEGIN result := Procedure;
  14134. END Test.
  14135. negative: procedure with compatible return type to procedure assignment
  14136. MODULE Test;
  14137. VAR result: PROCEDURE (): LONGINT;
  14138. PROCEDURE Procedure (): INTEGER; BEGIN RETURN 0 END Procedure;
  14139. BEGIN result := Procedure;
  14140. END Test.
  14141. negative: procedure with incompatible return type to procedure assignment
  14142. MODULE Test;
  14143. VAR result: PROCEDURE (): SET;
  14144. PROCEDURE Procedure (): INTEGER; BEGIN RETURN 0 END Procedure;
  14145. BEGIN result := Procedure;
  14146. END Test.
  14147. positive: procedure with several equal parameters and equal return type to procedure assignment
  14148. MODULE Test;
  14149. TYPE Record = RECORD END;
  14150. VAR result: PROCEDURE (CONST a: SET; VAR i: INTEGER; o: OBJECT): POINTER TO Record;
  14151. PROCEDURE Procedure (CONST a: SET; VAR i: INTEGER; o: OBJECT): POINTER TO Record; END Procedure;
  14152. BEGIN result := Procedure;
  14153. END Test.
  14154. positive: dummy module for import assignments
  14155. MODULE Dummy; END Dummy.
  14156. negative: constant boolean to import assignment
  14157. MODULE Test;
  14158. IMPORT result := Dummy;
  14159. BEGIN result := TRUE;
  14160. END Test.
  14161. negative: constant character to import assignment
  14162. MODULE Test;
  14163. IMPORT result := Dummy;
  14164. BEGIN result := 'f';
  14165. END Test.
  14166. negative: constant short integer to import assignment
  14167. MODULE Test;
  14168. IMPORT result := Dummy;
  14169. BEGIN result := 10H;
  14170. END Test.
  14171. negative: constant integer to import assignment
  14172. MODULE Test;
  14173. IMPORT result := Dummy;
  14174. BEGIN result := 1000H;
  14175. END Test.
  14176. negative: constant long integer to import assignment
  14177. MODULE Test;
  14178. IMPORT result := Dummy;
  14179. BEGIN result := 100000H;
  14180. END Test.
  14181. negative: constant huge integer to import assignment
  14182. MODULE Test;
  14183. IMPORT result := Dummy;
  14184. BEGIN result := 10000000000H;
  14185. END Test.
  14186. negative: constant real to import assignment
  14187. MODULE Test;
  14188. IMPORT result := Dummy;
  14189. BEGIN result := 5.4;
  14190. END Test.
  14191. negative: constant long real to import assignment
  14192. MODULE Test;
  14193. IMPORT result := Dummy;
  14194. BEGIN result := 5.4D100;
  14195. END Test.
  14196. negative: constant set to import assignment
  14197. MODULE Test;
  14198. IMPORT result := Dummy;
  14199. BEGIN result := {5};
  14200. END Test.
  14201. negative: string to import assignment
  14202. MODULE Test;
  14203. IMPORT result := Dummy;
  14204. BEGIN result := "string";
  14205. END Test.
  14206. negative: nil pointer to import assignment
  14207. MODULE Test;
  14208. IMPORT result := Dummy;
  14209. BEGIN result := NIL;
  14210. END Test.
  14211. negative: procedure to import assignment
  14212. MODULE Test;
  14213. IMPORT result := Dummy;
  14214. PROCEDURE Procedure; END Procedure;
  14215. BEGIN result := Procedure;
  14216. END Test.
  14217. positive: nil pointer to references assignment
  14218. MODULE Test;
  14219. VAR o: OBJECT END; ob: OBJECT; ptr: POINTER TO RECORD END; p: PROCEDURE;
  14220. BEGIN o := NIL; ob := NIL; ptr := NIL; p := NIL;
  14221. END Test.
  14222. positive: indirect nil pointer to references assignment
  14223. MODULE Test;
  14224. CONST Nil = NIL;
  14225. VAR o: OBJECT END; ob: OBJECT; ptr: POINTER TO RECORD END; p: PROCEDURE;
  14226. BEGIN o := Nil; ob := Nil; ptr := Nil; p := Nil;
  14227. END Test.
  14228. positive: variable boolean to variable boolean assignment
  14229. MODULE Test;
  14230. VAR variable, result: BOOLEAN;
  14231. BEGIN result := variable;
  14232. END Test.
  14233. negative: variable boolean to temporary boolean assignment
  14234. MODULE Test;
  14235. VAR variable: BOOLEAN; result: PROCEDURE (): BOOLEAN;
  14236. BEGIN result () := variable;
  14237. END Test.
  14238. negative: variable character to variable boolean assignment
  14239. MODULE Test;
  14240. VAR variable: CHAR; result: BOOLEAN;
  14241. BEGIN result := variable;
  14242. END Test.
  14243. negative: variable short integer to variable boolean assignment
  14244. MODULE Test;
  14245. VAR variable: SHORTINT; result: BOOLEAN;
  14246. BEGIN result := variable;
  14247. END Test.
  14248. negative: variable integer to variable boolean assignment
  14249. MODULE Test;
  14250. VAR variable: INTEGER; result: BOOLEAN;
  14251. BEGIN result := variable;
  14252. END Test.
  14253. negative: variable long integer to variable boolean assignment
  14254. MODULE Test;
  14255. VAR variable: LONGINT; result: BOOLEAN;
  14256. BEGIN result := variable;
  14257. END Test.
  14258. negative: variable huge integer to variable boolean assignment
  14259. MODULE Test;
  14260. VAR variable: HUGEINT; result: BOOLEAN;
  14261. BEGIN result := variable;
  14262. END Test.
  14263. negative: variable real to variable boolean assignment
  14264. MODULE Test;
  14265. VAR variable: REAL; result: BOOLEAN;
  14266. BEGIN result := variable;
  14267. END Test.
  14268. negative: variable long real to variable boolean assignment
  14269. MODULE Test;
  14270. VAR variable: LONGREAL; result: BOOLEAN;
  14271. BEGIN result := variable;
  14272. END Test.
  14273. negative: variable set to variable boolean assignment
  14274. MODULE Test;
  14275. VAR variable: SET; result: BOOLEAN;
  14276. BEGIN result := variable;
  14277. END Test.
  14278. negative: array to variable boolean assignment
  14279. MODULE Test;
  14280. VAR variable: ARRAY 10 OF CHAR; result: BOOLEAN;
  14281. BEGIN result := variable;
  14282. END Test.
  14283. negative: record to variable boolean assignment
  14284. MODULE Test;
  14285. VAR variable: RECORD END; result: BOOLEAN;
  14286. BEGIN result := variable;
  14287. END Test.
  14288. negative: object to variable boolean assignment
  14289. MODULE Test;
  14290. VAR variable: OBJECT; result: BOOLEAN;
  14291. BEGIN result := variable;
  14292. END Test.
  14293. negative: pointer to variable boolean assignment
  14294. MODULE Test;
  14295. VAR variable: POINTER TO RECORD END; result: BOOLEAN;
  14296. BEGIN result := variable;
  14297. END Test.
  14298. negative: variable procedure to variable boolean assignment
  14299. MODULE Test;
  14300. VAR variable: PROCEDURE; result: BOOLEAN;
  14301. BEGIN result := variable;
  14302. END Test.
  14303. negative: import to variable boolean assignment
  14304. MODULE Test;
  14305. IMPORT variable := Dummy; VAR result: BOOLEAN;
  14306. BEGIN result := variable;
  14307. END Test.
  14308. negative: type to variable boolean assignment
  14309. MODULE Test;
  14310. TYPE Type = BOOLEAN; VAR result: Type;
  14311. BEGIN result := Type;
  14312. END Test.
  14313. negative: variable boolean to variable character assignment
  14314. MODULE Test;
  14315. VAR variable: BOOLEAN; result: CHAR;
  14316. BEGIN result := variable;
  14317. END Test.
  14318. positive: variable character to variable character assignment
  14319. MODULE Test;
  14320. VAR variable, result: CHAR;
  14321. BEGIN result := variable;
  14322. END Test.
  14323. negative: variable character to temporary character assignment
  14324. MODULE Test;
  14325. VAR variable: CHAR; result: PROCEDURE (): CHAR;
  14326. BEGIN result () := variable;
  14327. END Test.
  14328. negative: variable short integer to variable character assignment
  14329. MODULE Test;
  14330. VAR variable: SHORTINT; result: CHAR;
  14331. BEGIN result := variable;
  14332. END Test.
  14333. negative: variable integer to variable character assignment
  14334. MODULE Test;
  14335. VAR variable: INTEGER; result: CHAR;
  14336. BEGIN result := variable;
  14337. END Test.
  14338. negative: variable long integer to variable character assignment
  14339. MODULE Test;
  14340. VAR variable: LONGINT; result: CHAR;
  14341. BEGIN result := variable;
  14342. END Test.
  14343. negative: variable huge integer to variable character assignment
  14344. MODULE Test;
  14345. VAR variable: HUGEINT; result: CHAR;
  14346. BEGIN result := variable;
  14347. END Test.
  14348. negative: variable real to variable character assignment
  14349. MODULE Test;
  14350. VAR variable: REAL; result: CHAR;
  14351. BEGIN result := variable;
  14352. END Test.
  14353. negative: variable long real to variable character assignment
  14354. MODULE Test;
  14355. VAR variable: LONGREAL; result: CHAR;
  14356. BEGIN result := variable;
  14357. END Test.
  14358. negative: variable set to variable character assignment
  14359. MODULE Test;
  14360. VAR variable: SET; result: CHAR;
  14361. BEGIN result := variable;
  14362. END Test.
  14363. negative: array to variable character assignment
  14364. MODULE Test;
  14365. VAR variable: ARRAY 10 OF CHAR; result: CHAR;
  14366. BEGIN result := variable;
  14367. END Test.
  14368. negative: record to variable character assignment
  14369. MODULE Test;
  14370. VAR variable: RECORD END; result: CHAR;
  14371. BEGIN result := variable;
  14372. END Test.
  14373. negative: object to variable character assignment
  14374. MODULE Test;
  14375. VAR variable: OBJECT; result: CHAR;
  14376. BEGIN result := variable;
  14377. END Test.
  14378. negative: pointer to variable character assignment
  14379. MODULE Test;
  14380. VAR variable: POINTER TO RECORD END; result: CHAR;
  14381. BEGIN result := variable;
  14382. END Test.
  14383. negative: variable procedure to variable character assignment
  14384. MODULE Test;
  14385. VAR variable: PROCEDURE; result: CHAR;
  14386. BEGIN result := variable;
  14387. END Test.
  14388. negative: import to variable character assignment
  14389. MODULE Test;
  14390. IMPORT variable := Dummy; VAR result: CHAR;
  14391. BEGIN result := variable;
  14392. END Test.
  14393. negative: type to variable character assignment
  14394. MODULE Test;
  14395. TYPE Type = CHAR; VAR result: Type;
  14396. BEGIN result := Type;
  14397. END Test.
  14398. negative: variable boolean to variable short integer assignment
  14399. MODULE Test;
  14400. VAR variable: BOOLEAN; result: SHORTINT;
  14401. BEGIN result := variable;
  14402. END Test.
  14403. negative: variable character to variable short integer assignment
  14404. MODULE Test;
  14405. VAR variable: CHAR; result: SHORTINT;
  14406. BEGIN result := variable;
  14407. END Test.
  14408. positive: variable short integer to variable short integer assignment
  14409. MODULE Test;
  14410. VAR variable, result: SHORTINT;
  14411. BEGIN result := variable;
  14412. END Test.
  14413. negative: variable short integer to temporary short integer assignment
  14414. MODULE Test;
  14415. VAR variable: SHORTINT; result: PROCEDURE (): SHORTINT;
  14416. BEGIN result () := variable;
  14417. END Test.
  14418. negative: variable integer to variable short integer assignment
  14419. MODULE Test;
  14420. VAR variable: INTEGER; result: SHORTINT;
  14421. BEGIN result := variable;
  14422. END Test.
  14423. negative: variable long integer to variable short integer assignment
  14424. MODULE Test;
  14425. VAR variable: LONGINT; result: SHORTINT;
  14426. BEGIN result := variable;
  14427. END Test.
  14428. negative: variable huge integer to variable short integer assignment
  14429. MODULE Test;
  14430. VAR variable: HUGEINT; result: SHORTINT;
  14431. BEGIN result := variable;
  14432. END Test.
  14433. negative: variable real to variable short integer assignment
  14434. MODULE Test;
  14435. VAR variable: REAL; result: SHORTINT;
  14436. BEGIN result := variable;
  14437. END Test.
  14438. negative: variable long real to variable short integer assignment
  14439. MODULE Test;
  14440. VAR variable: LONGREAL; result: SHORTINT;
  14441. BEGIN result := variable;
  14442. END Test.
  14443. negative: variable set to variable short integer assignment
  14444. MODULE Test;
  14445. VAR variable: SET; result: SHORTINT;
  14446. BEGIN result := variable;
  14447. END Test.
  14448. negative: array to variable short integer assignment
  14449. MODULE Test;
  14450. VAR variable: ARRAY 10 OF CHAR; result: SHORTINT;
  14451. BEGIN result := variable;
  14452. END Test.
  14453. negative: record to variable short integer assignment
  14454. MODULE Test;
  14455. VAR variable: RECORD END; result: SHORTINT;
  14456. BEGIN result := variable;
  14457. END Test.
  14458. negative: object to variable short integer assignment
  14459. MODULE Test;
  14460. VAR variable: OBJECT; result: SHORTINT;
  14461. BEGIN result := variable;
  14462. END Test.
  14463. negative: pointer to variable short integer assignment
  14464. MODULE Test;
  14465. VAR variable: POINTER TO RECORD END; result: SHORTINT;
  14466. BEGIN result := variable;
  14467. END Test.
  14468. negative: variable procedure to variable short integer assignment
  14469. MODULE Test;
  14470. VAR variable: PROCEDURE; result: SHORTINT;
  14471. BEGIN result := variable;
  14472. END Test.
  14473. negative: import to variable short integer assignment
  14474. MODULE Test;
  14475. IMPORT variable := Dummy; VAR result: SHORTINT;
  14476. BEGIN result := variable;
  14477. END Test.
  14478. negative: type to variable short integer assignment
  14479. MODULE Test;
  14480. TYPE Type = SHORTINT; VAR result: Type;
  14481. BEGIN result := Type;
  14482. END Test.
  14483. negative: variable boolean to variable integer assignment
  14484. MODULE Test;
  14485. VAR variable: BOOLEAN; result: INTEGER;
  14486. BEGIN result := variable;
  14487. END Test.
  14488. negative: variable character to variable integer assignment
  14489. MODULE Test;
  14490. VAR variable: CHAR; result: INTEGER;
  14491. BEGIN result := variable;
  14492. END Test.
  14493. positive: variable short integer to variable integer assignment
  14494. MODULE Test;
  14495. VAR variable: SHORTINT; result: INTEGER;
  14496. BEGIN result := variable;
  14497. END Test.
  14498. negative: variable short integer to temporary integer assignment
  14499. MODULE Test;
  14500. VAR variable: SHORTINT; result: PROCEDURE (): INTEGER;
  14501. BEGIN result () := variable;
  14502. END Test.
  14503. positive: variable integer to variable integer assignment
  14504. MODULE Test;
  14505. VAR variable, result: INTEGER;
  14506. BEGIN result := variable;
  14507. END Test.
  14508. negative: variable integer to temporary integer assignment
  14509. MODULE Test;
  14510. VAR variable: INTEGER; result: PROCEDURE (): INTEGER;
  14511. BEGIN result () := variable;
  14512. END Test.
  14513. negative: variable long integer to variable integer assignment
  14514. MODULE Test;
  14515. VAR variable: LONGINT; result: INTEGER;
  14516. BEGIN result := variable;
  14517. END Test.
  14518. negative: variable huge integer to variable integer assignment
  14519. MODULE Test;
  14520. VAR variable: HUGEINT; result: INTEGER;
  14521. BEGIN result := variable;
  14522. END Test.
  14523. negative: variable real to variable integer assignment
  14524. MODULE Test;
  14525. VAR variable: REAL; result: INTEGER;
  14526. BEGIN result := variable;
  14527. END Test.
  14528. negative: variable long real to variable integer assignment
  14529. MODULE Test;
  14530. VAR variable: LONGREAL; result: INTEGER;
  14531. BEGIN result := variable;
  14532. END Test.
  14533. negative: variable set to variable integer assignment
  14534. MODULE Test;
  14535. VAR variable: SET; result: INTEGER;
  14536. BEGIN result := variable;
  14537. END Test.
  14538. negative: array to variable integer assignment
  14539. MODULE Test;
  14540. VAR variable: ARRAY 10 OF CHAR; result: INTEGER;
  14541. BEGIN result := variable;
  14542. END Test.
  14543. negative: record to variable integer assignment
  14544. MODULE Test;
  14545. VAR variable: RECORD END; result: INTEGER;
  14546. BEGIN result := variable;
  14547. END Test.
  14548. negative: object to variable integer assignment
  14549. MODULE Test;
  14550. VAR variable: OBJECT; result: INTEGER;
  14551. BEGIN result := variable;
  14552. END Test.
  14553. negative: pointer to variable integer assignment
  14554. MODULE Test;
  14555. VAR variable: POINTER TO RECORD END; result: INTEGER;
  14556. BEGIN result := variable;
  14557. END Test.
  14558. negative: variable eto variable integer assignment
  14559. MODULE Test;
  14560. VAR variable: PROCEDURE; result: INTEGER;
  14561. BEGIN result := variable;
  14562. END Test.
  14563. negative: import to variable integer assignment
  14564. MODULE Test;
  14565. IMPORT variable := Dummy; VAR result: INTEGER;
  14566. BEGIN result := variable;
  14567. END Test.
  14568. negative: type to variable integer assignment
  14569. MODULE Test;
  14570. TYPE Type = INTEGER; VAR result: Type;
  14571. BEGIN result := Type;
  14572. END Test.
  14573. negative: variable boolean to variable long integer assignment
  14574. MODULE Test;
  14575. VAR variable: BOOLEAN; result: LONGINT;
  14576. BEGIN result := variable;
  14577. END Test.
  14578. negative: variable character to variable long integer assignment
  14579. MODULE Test;
  14580. VAR variable: CHAR; result: LONGINT;
  14581. BEGIN result := variable;
  14582. END Test.
  14583. positive: variable short integer to variable long integer assignment
  14584. MODULE Test;
  14585. VAR variable: SHORTINT; result: LONGINT;
  14586. BEGIN result := variable;
  14587. END Test.
  14588. negative: variable short integer to temporary long integer assignment
  14589. MODULE Test;
  14590. VAR variable: SHORTINT; result: PROCEDURE (): LONGINT;
  14591. BEGIN result () := variable;
  14592. END Test.
  14593. positive: variable integer to variable long integer assignment
  14594. MODULE Test;
  14595. VAR variable: INTEGER; result: LONGINT;
  14596. BEGIN result := variable;
  14597. END Test.
  14598. negative: variable integer to temporary long integer assignment
  14599. MODULE Test;
  14600. VAR variable: INTEGER; result: PROCEDURE (): LONGINT;
  14601. BEGIN result () := variable;
  14602. END Test.
  14603. positive: variable long integer to variable long integer assignment
  14604. MODULE Test;
  14605. VAR variable, result: LONGINT;
  14606. BEGIN result := variable;
  14607. END Test.
  14608. negative: variable long integer to temporary long integer assignment
  14609. MODULE Test;
  14610. VAR variable: LONGINT; result: PROCEDURE (): LONGINT;
  14611. BEGIN result () := variable;
  14612. END Test.
  14613. negative: variable huge integer to variable long integer assignment
  14614. MODULE Test;
  14615. VAR variable: HUGEINT; result: LONGINT;
  14616. BEGIN result := variable;
  14617. END Test.
  14618. negative: variable real to variable long integer assignment
  14619. MODULE Test;
  14620. VAR variable: REAL; result: LONGINT;
  14621. BEGIN result := variable;
  14622. END Test.
  14623. negative: variable long real to variable long integer assignment
  14624. MODULE Test;
  14625. VAR variable: LONGREAL; result: LONGINT;
  14626. BEGIN result := variable;
  14627. END Test.
  14628. negative: variable set to variable long integer assignment
  14629. MODULE Test;
  14630. VAR variable: SET; result: LONGINT;
  14631. BEGIN result := variable;
  14632. END Test.
  14633. negative: array to variable long integer assignment
  14634. MODULE Test;
  14635. VAR variable: ARRAY 10 OF CHAR; result: LONGINT;
  14636. BEGIN result := variable;
  14637. END Test.
  14638. negative: record to variable long integer assignment
  14639. MODULE Test;
  14640. VAR variable: RECORD END; result: LONGINT;
  14641. BEGIN result := variable;
  14642. END Test.
  14643. negative: object to variable long integer assignment
  14644. MODULE Test;
  14645. VAR variable: OBJECT; result: LONGINT;
  14646. BEGIN result := variable;
  14647. END Test.
  14648. negative: pointer to variable long integer assignment
  14649. MODULE Test;
  14650. VAR variable: POINTER TO RECORD END; result: LONGINT;
  14651. BEGIN result := variable;
  14652. END Test.
  14653. negative: variable procedure to variable long integer assignment
  14654. MODULE Test;
  14655. VAR variable: PROCEDURE; result: LONGINT;
  14656. BEGIN result := variable;
  14657. END Test.
  14658. negative: import to variable long integer assignment
  14659. MODULE Test;
  14660. IMPORT variable := Dummy; VAR result: LONGINT;
  14661. BEGIN result := variable;
  14662. END Test.
  14663. negative: type to variable long integer assignment
  14664. MODULE Test;
  14665. TYPE Type = LONGINT; VAR result: Type;
  14666. BEGIN result := Type;
  14667. END Test.
  14668. negative: variable boolean to variable huge integer assignment
  14669. MODULE Test;
  14670. VAR variable: BOOLEAN; result: HUGEINT;
  14671. BEGIN result := variable;
  14672. END Test.
  14673. negative: variable character to variable huge integer assignment
  14674. MODULE Test;
  14675. VAR variable: CHAR; result: HUGEINT;
  14676. BEGIN result := variable;
  14677. END Test.
  14678. positive: variable short integer to variable huge integer assignment
  14679. MODULE Test;
  14680. VAR variable: SHORTINT; result: HUGEINT;
  14681. BEGIN result := variable;
  14682. END Test.
  14683. negative: variable short integer to temporary huge integer assignment
  14684. MODULE Test;
  14685. VAR variable: SHORTINT; result: PROCEDURE (): HUGEINT;
  14686. BEGIN result () := variable;
  14687. END Test.
  14688. positive: variable integer to variable huge integer assignment
  14689. MODULE Test;
  14690. VAR variable: INTEGER; result: HUGEINT;
  14691. BEGIN result := variable;
  14692. END Test.
  14693. negative: variable integer to temporary huge integer assignment
  14694. MODULE Test;
  14695. VAR variable: INTEGER; result: PROCEDURE (): HUGEINT;
  14696. BEGIN result () := variable;
  14697. END Test.
  14698. positive: variable long integer to variable huge integer assignment
  14699. MODULE Test;
  14700. VAR variable: LONGINT; result: HUGEINT;
  14701. BEGIN result := variable;
  14702. END Test.
  14703. negative: variable long integer to temporary huge integer assignment
  14704. MODULE Test;
  14705. VAR variable: LONGINT; result: PROCEDURE (): HUGEINT;
  14706. BEGIN result () := variable;
  14707. END Test.
  14708. positive: variable huge integer to variable huge integer assignment
  14709. MODULE Test;
  14710. VAR variable, result: HUGEINT;
  14711. BEGIN result := variable;
  14712. END Test.
  14713. negative: variable huge integer to temporary huge integer assignment
  14714. MODULE Test;
  14715. VAR variable: HUGEINT; result: PROCEDURE (): HUGEINT;
  14716. BEGIN result () := variable;
  14717. END Test.
  14718. negative: variable real to variable huge integer assignment
  14719. MODULE Test;
  14720. VAR variable: REAL; result: HUGEINT;
  14721. BEGIN result := variable;
  14722. END Test.
  14723. negative: variable long real to variable huge integer assignment
  14724. MODULE Test;
  14725. VAR variable: LONGREAL; result: HUGEINT;
  14726. BEGIN result := variable;
  14727. END Test.
  14728. negative: variable set to variable huge integer assignment
  14729. MODULE Test;
  14730. VAR variable: SET; result: HUGEINT;
  14731. BEGIN result := variable;
  14732. END Test.
  14733. negative: array to variable huge integer assignment
  14734. MODULE Test;
  14735. VAR variable: ARRAY 10 OF CHAR; result: HUGEINT;
  14736. BEGIN result := variable;
  14737. END Test.
  14738. negative: record to variable huge integer assignment
  14739. MODULE Test;
  14740. VAR variable: RECORD END; result: HUGEINT;
  14741. BEGIN result := variable;
  14742. END Test.
  14743. negative: object to variable huge integer assignment
  14744. MODULE Test;
  14745. VAR variable: OBJECT; result: HUGEINT;
  14746. BEGIN result := variable;
  14747. END Test.
  14748. negative: pointer to variable huge integer assignment
  14749. MODULE Test;
  14750. VAR variable: POINTER TO RECORD END; result: HUGEINT;
  14751. BEGIN result := variable;
  14752. END Test.
  14753. negative: variable procedure to variable huge integer assignment
  14754. MODULE Test;
  14755. VAR variable: PROCEDURE; result: HUGEINT;
  14756. BEGIN result := variable;
  14757. END Test.
  14758. negative: import to variable huge integer assignment
  14759. MODULE Test;
  14760. IMPORT variable := Dummy; VAR result: HUGEINT;
  14761. BEGIN result := variable;
  14762. END Test.
  14763. negative: type to variable huge integer assignment
  14764. MODULE Test;
  14765. TYPE Type = HUGEINT; VAR result: Type;
  14766. BEGIN result := Type;
  14767. END Test.
  14768. negative: variable boolean to variable real assignment
  14769. MODULE Test;
  14770. VAR variable: BOOLEAN; result: REAL;
  14771. BEGIN result := variable;
  14772. END Test.
  14773. negative: variable character to variable real assignment
  14774. MODULE Test;
  14775. VAR variable: CHAR; result: REAL;
  14776. BEGIN result := variable;
  14777. END Test.
  14778. positive: variable short integer to variable real assignment
  14779. MODULE Test;
  14780. VAR variable: SHORTINT; result: REAL;
  14781. BEGIN result := variable;
  14782. END Test.
  14783. negative: variable short integer to temporary real assignment
  14784. MODULE Test;
  14785. VAR variable: SHORTINT; result: PROCEDURE (): REAL;
  14786. BEGIN result () := variable;
  14787. END Test.
  14788. positive: variable integer to variable real assignment
  14789. MODULE Test;
  14790. VAR variable: INTEGER; result: REAL;
  14791. BEGIN result := variable;
  14792. END Test.
  14793. negative: variable integer to temporary real assignment
  14794. MODULE Test;
  14795. VAR variable: INTEGER; result: PROCEDURE (): REAL;
  14796. BEGIN result () := variable;
  14797. END Test.
  14798. positive: variable long integer to variable real assignment
  14799. MODULE Test;
  14800. VAR variable: LONGINT; result: REAL;
  14801. BEGIN result := variable;
  14802. END Test.
  14803. negative: variable long integer to temporary real assignment
  14804. MODULE Test;
  14805. VAR variable: LONGINT; result: PROCEDURE (): REAL;
  14806. BEGIN result () := variable;
  14807. END Test.
  14808. positive: variable huge integer to variable real assignment
  14809. MODULE Test;
  14810. VAR variable: HUGEINT; result: REAL;
  14811. BEGIN result := variable;
  14812. END Test.
  14813. negative: variable huge integer to temporary real assignment
  14814. MODULE Test;
  14815. VAR variable: HUGEINT; result: PROCEDURE (): REAL;
  14816. BEGIN result () := variable;
  14817. END Test.
  14818. positive: variable real to variable real assignment
  14819. MODULE Test;
  14820. VAR variable, result: REAL;
  14821. BEGIN result := variable;
  14822. END Test.
  14823. negative: variable real to temporary real assignment
  14824. MODULE Test;
  14825. VAR variable: REAL; result: PROCEDURE (): REAL;
  14826. BEGIN result () := variable;
  14827. END Test.
  14828. negative: variable long real to variable real assignment
  14829. MODULE Test;
  14830. VAR variable: LONGREAL; result: REAL;
  14831. BEGIN result := variable;
  14832. END Test.
  14833. negative: variable set to variable real assignment
  14834. MODULE Test;
  14835. VAR variable: SET; result: REAL;
  14836. BEGIN result := variable;
  14837. END Test.
  14838. negative: array to variable real assignment
  14839. MODULE Test;
  14840. VAR variable: ARRAY 10 OF CHAR; result: REAL;
  14841. BEGIN result := variable;
  14842. END Test.
  14843. negative: record to variable real assignment
  14844. MODULE Test;
  14845. VAR variable: RECORD END; result: REAL;
  14846. BEGIN result := variable;
  14847. END Test.
  14848. negative: object to variable real assignment
  14849. MODULE Test;
  14850. VAR variable: OBJECT; result: REAL;
  14851. BEGIN result := variable;
  14852. END Test.
  14853. negative: pointer to variable real assignment
  14854. MODULE Test;
  14855. VAR variable: POINTER TO RECORD END; result: REAL;
  14856. BEGIN result := variable;
  14857. END Test.
  14858. negative: variable procedure to variable real assignment
  14859. MODULE Test;
  14860. VAR variable: PROCEDURE; result: REAL;
  14861. BEGIN result := variable;
  14862. END Test.
  14863. negative: import to variable real assignment
  14864. MODULE Test;
  14865. IMPORT variable := Dummy; VAR result: REAL;
  14866. BEGIN result := variable;
  14867. END Test.
  14868. negative: type to variable real assignment
  14869. MODULE Test;
  14870. TYPE Type = REAL; VAR result: Type;
  14871. BEGIN result := Type;
  14872. END Test.
  14873. negative: variable boolean to variable long real assignment
  14874. MODULE Test;
  14875. VAR variable: BOOLEAN; result: LONGREAL;
  14876. BEGIN result := variable;
  14877. END Test.
  14878. negative: variable character to variable long real assignment
  14879. MODULE Test;
  14880. VAR variable: CHAR; result: LONGREAL;
  14881. BEGIN result := variable;
  14882. END Test.
  14883. positive: variable short integer to variable long real assignment
  14884. MODULE Test;
  14885. VAR variable: SHORTINT; result: LONGREAL;
  14886. BEGIN result := variable;
  14887. END Test.
  14888. negative: variable short integer to temporary long real assignment
  14889. MODULE Test;
  14890. VAR variable: SHORTINT; result: PROCEDURE (): LONGREAL;
  14891. BEGIN result () := variable;
  14892. END Test.
  14893. positive: variable integer to variable long real assignment
  14894. MODULE Test;
  14895. VAR variable: INTEGER; result: LONGREAL;
  14896. BEGIN result := variable;
  14897. END Test.
  14898. negative: variable integer to temporary long real assignment
  14899. MODULE Test;
  14900. VAR variable: INTEGER; result: PROCEDURE (): LONGREAL;
  14901. BEGIN result () := variable;
  14902. END Test.
  14903. positive: variable long integer to variable long real assignment
  14904. MODULE Test;
  14905. VAR variable: LONGINT; result: LONGREAL;
  14906. BEGIN result := variable;
  14907. END Test.
  14908. negative: variable long integer to temporary long real assignment
  14909. MODULE Test;
  14910. VAR variable: LONGINT; result: PROCEDURE (): LONGREAL;
  14911. BEGIN result () := variable;
  14912. END Test.
  14913. positive: variable huge integer to variable long real assignment
  14914. MODULE Test;
  14915. VAR variable: HUGEINT; result: LONGREAL;
  14916. BEGIN result := variable;
  14917. END Test.
  14918. negative: variable huge integer to temporary long real assignment
  14919. MODULE Test;
  14920. VAR variable: HUGEINT; result: PROCEDURE (): LONGREAL;
  14921. BEGIN result () := variable;
  14922. END Test.
  14923. positive: variable real to variable long real assignment
  14924. MODULE Test;
  14925. VAR variable: REAL; result: LONGREAL;
  14926. BEGIN result := variable;
  14927. END Test.
  14928. negative: variable real to temporary long real assignment
  14929. MODULE Test;
  14930. VAR variable: REAL; result: PROCEDURE (): LONGREAL;
  14931. BEGIN result () := variable;
  14932. END Test.
  14933. positive: variable long real to variable long real assignment
  14934. MODULE Test;
  14935. VAR variable, result: LONGREAL;
  14936. BEGIN result := variable;
  14937. END Test.
  14938. negative: variable long real to temporary long real assignment
  14939. MODULE Test;
  14940. VAR variable: REAL; result: PROCEDURE (): LONGREAL;
  14941. BEGIN result () := variable;
  14942. END Test.
  14943. negative: variable set to variable long real assignment
  14944. MODULE Test;
  14945. VAR variable: SET; result: LONGREAL;
  14946. BEGIN result := variable;
  14947. END Test.
  14948. negative: array to variable long real assignment
  14949. MODULE Test;
  14950. VAR variable: ARRAY 10 OF CHAR; result: LONGREAL;
  14951. BEGIN result := variable;
  14952. END Test.
  14953. negative: record to variable long real assignment
  14954. MODULE Test;
  14955. VAR variable: RECORD END; result: LONGREAL;
  14956. BEGIN result := variable;
  14957. END Test.
  14958. negative: object to variable long real assignment
  14959. MODULE Test;
  14960. VAR variable: OBJECT; result: LONGREAL;
  14961. BEGIN result := variable;
  14962. END Test.
  14963. negative: pointer to variable long real assignment
  14964. MODULE Test;
  14965. VAR variable: POINTER TO RECORD END; result: LONGREAL;
  14966. BEGIN result := variable;
  14967. END Test.
  14968. negative: variable procedure to variable long real assignment
  14969. MODULE Test;
  14970. VAR variable: PROCEDURE; result: LONGREAL;
  14971. BEGIN result := variable;
  14972. END Test.
  14973. negative: import to variable long real assignment
  14974. MODULE Test;
  14975. IMPORT variable := Dummy; VAR result: LONGREAL;
  14976. BEGIN result := variable;
  14977. END Test.
  14978. negative: type to variable long real assignment
  14979. MODULE Test;
  14980. TYPE Type = LONGREAL; VAR result: Type;
  14981. BEGIN result := Type;
  14982. END Test.
  14983. negative: variable boolean to variable set assignment
  14984. MODULE Test;
  14985. VAR variable: BOOLEAN; result: SET;
  14986. BEGIN result := variable;
  14987. END Test.
  14988. negative: variable character to variable set assignment
  14989. MODULE Test;
  14990. VAR variable: CHAR; result: SET;
  14991. BEGIN result := variable;
  14992. END Test.
  14993. negative: variable short integer to variable set assignment
  14994. MODULE Test;
  14995. VAR variable: SHORTINT; result: SET;
  14996. BEGIN result := variable;
  14997. END Test.
  14998. negative: variable integer to variable set assignment
  14999. MODULE Test;
  15000. VAR variable: INTEGER; result: SET;
  15001. BEGIN result := variable;
  15002. END Test.
  15003. negative: variable long integer to variable set assignment
  15004. MODULE Test;
  15005. VAR variable: LONGINT; result: SET;
  15006. BEGIN result := variable;
  15007. END Test.
  15008. negative: variable huge integer to variable set assignment
  15009. MODULE Test;
  15010. VAR variable: HUGEINT; result: SET;
  15011. BEGIN result := variable;
  15012. END Test.
  15013. negative: variable real to variable set assignment
  15014. MODULE Test;
  15015. VAR variable: REAL; result: SET;
  15016. BEGIN result := variable;
  15017. END Test.
  15018. negative: variable long real to variable set assignment
  15019. MODULE Test;
  15020. VAR variable: LONGREAL; result: SET;
  15021. BEGIN result := variable;
  15022. END Test.
  15023. positive: variable set to variable set assignment
  15024. MODULE Test;
  15025. VAR variable, result: SET;
  15026. BEGIN result := variable;
  15027. END Test.
  15028. negative: variable set to temporary set assignment
  15029. MODULE Test;
  15030. VAR variable: SET; result: PROCEDURE (): SET;
  15031. BEGIN result () := variable;
  15032. END Test.
  15033. negative: array to variable set assignment
  15034. MODULE Test;
  15035. VAR variable: ARRAY 10 OF CHAR; result: SET;
  15036. BEGIN result := variable;
  15037. END Test.
  15038. negative: record to variable set assignment
  15039. MODULE Test;
  15040. VAR variable: RECORD END; result: SET;
  15041. BEGIN result := variable;
  15042. END Test.
  15043. negative: object to variable set assignment
  15044. MODULE Test;
  15045. VAR variable: OBJECT; result: SET;
  15046. BEGIN result := variable;
  15047. END Test.
  15048. negative: pointer to variable set assignment
  15049. MODULE Test;
  15050. VAR variable: POINTER TO RECORD END; result: SET;
  15051. BEGIN result := variable;
  15052. END Test.
  15053. negative: variable procedure to variable set assignment
  15054. MODULE Test;
  15055. VAR variable: PROCEDURE; result: SET;
  15056. BEGIN result := variable;
  15057. END Test.
  15058. negative: import to variable set assignment
  15059. MODULE Test;
  15060. IMPORT variable := Dummy; VAR result: SET;
  15061. BEGIN result := variable;
  15062. END Test.
  15063. negative: type to variable set assignment
  15064. MODULE Test;
  15065. TYPE Type = SET; VAR result: Type;
  15066. BEGIN result := Type;
  15067. END Test.
  15068. negative: variable boolean to array assignment
  15069. MODULE Test;
  15070. VAR variable: BOOLEAN; result: ARRAY 10 OF CHAR;
  15071. BEGIN result := variable;
  15072. END Test.
  15073. negative: variable character to array assignment
  15074. MODULE Test;
  15075. VAR variable: CHAR; result: ARRAY 10 OF CHAR;
  15076. BEGIN result := variable;
  15077. END Test.
  15078. negative: variable short integer to array assignment
  15079. MODULE Test;
  15080. VAR variable: SHORTINT; result: ARRAY 10 OF CHAR;
  15081. BEGIN result := variable;
  15082. END Test.
  15083. negative: variable integer to array assignment
  15084. MODULE Test;
  15085. VAR variable: INTEGER; result: ARRAY 10 OF CHAR;
  15086. BEGIN result := variable;
  15087. END Test.
  15088. negative: variable long integer to array assignment
  15089. MODULE Test;
  15090. VAR variable: LONGINT; result: ARRAY 10 OF CHAR;
  15091. BEGIN result := variable;
  15092. END Test.
  15093. negative: variable huge integer to array assignment
  15094. MODULE Test;
  15095. VAR variable: HUGEINT; result: ARRAY 10 OF CHAR;
  15096. BEGIN result := variable;
  15097. END Test.
  15098. negative: variable real to array assignment
  15099. MODULE Test;
  15100. VAR variable: REAL; result: ARRAY 10 OF CHAR;
  15101. BEGIN result := variable;
  15102. END Test.
  15103. negative: variable long real to array assignment
  15104. MODULE Test;
  15105. VAR variable: LONGREAL; result: ARRAY 10 OF CHAR;
  15106. BEGIN result := variable;
  15107. END Test.
  15108. negative: variable set to array assignment
  15109. MODULE Test;
  15110. VAR variable: SET; result: ARRAY 10 OF CHAR;
  15111. BEGIN result := variable;
  15112. END Test.
  15113. positive: array of boolean to array of boolean assignment
  15114. MODULE Test;
  15115. VAR variable, result: ARRAY 10 OF BOOLEAN;
  15116. BEGIN result := variable;
  15117. END Test.
  15118. negative: array of boolean to temporary array of boolean assignment
  15119. MODULE Test;
  15120. VAR variable: ARRAY 10 OF BOOLEAN; result: PROCEDURE (): ARRAY 10 OF BOOLEAN;
  15121. BEGIN result () := variable;
  15122. END Test.
  15123. negative: array of boolean to longer array of boolean assignment
  15124. MODULE Test;
  15125. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 20 OF BOOLEAN;
  15126. BEGIN result := variable;
  15127. END Test.
  15128. negative: array of boolean to shorter array of boolean assignment
  15129. MODULE Test;
  15130. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 5 OF BOOLEAN;
  15131. BEGIN result := variable;
  15132. END Test.
  15133. negative: array of boolean to open array of boolean assignment
  15134. MODULE Test;
  15135. PROCEDURE Procedure (VAR result: ARRAY OF BOOLEAN);
  15136. VAR variable: ARRAY 10 OF BOOLEAN;
  15137. BEGIN result := variable;
  15138. END Procedure;
  15139. END Test.
  15140. negative: open array of boolean to array of boolean assignment
  15141. MODULE Test;
  15142. PROCEDURE Procedure (VAR variable: ARRAY OF BOOLEAN);
  15143. VAR result: ARRAY 10 OF BOOLEAN;
  15144. BEGIN result := variable;
  15145. END Procedure;
  15146. END Test.
  15147. negative: array of boolean to dereferenced open array of boolean assignment
  15148. MODULE Test;
  15149. VAR variable: ARRAY 10 OF BOOLEAN; result: POINTER TO ARRAY OF BOOLEAN;
  15150. BEGIN result^ := variable;
  15151. END Test.
  15152. negative: array of character to array of boolean assignment
  15153. MODULE Test;
  15154. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF BOOLEAN;
  15155. BEGIN result := variable;
  15156. END Test.
  15157. negative: array of short integer to array of boolean assignment
  15158. MODULE Test;
  15159. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF BOOLEAN;
  15160. BEGIN result := variable;
  15161. END Test.
  15162. negative: array of integer to array of boolean assignment
  15163. MODULE Test;
  15164. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF BOOLEAN;
  15165. BEGIN result := variable;
  15166. END Test.
  15167. negative: array of long integer to array of boolean assignment
  15168. MODULE Test;
  15169. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF BOOLEAN;
  15170. BEGIN result := variable;
  15171. END Test.
  15172. negative: array of huge integer to array of boolean assignment
  15173. MODULE Test;
  15174. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF BOOLEAN;
  15175. BEGIN result := variable;
  15176. END Test.
  15177. negative: array of real to array of boolean assignment
  15178. MODULE Test;
  15179. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF BOOLEAN;
  15180. BEGIN result := variable;
  15181. END Test.
  15182. negative: array of long real to array of boolean assignment
  15183. MODULE Test;
  15184. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF BOOLEAN;
  15185. BEGIN result := variable;
  15186. END Test.
  15187. negative: array of set to array of boolean assignment
  15188. MODULE Test;
  15189. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF BOOLEAN;
  15190. BEGIN result := variable;
  15191. END Test.
  15192. negative: array of array to array of boolean assignment
  15193. MODULE Test;
  15194. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF BOOLEAN;
  15195. BEGIN result := variable;
  15196. END Test.
  15197. negative: array of record to array of boolean assignment
  15198. MODULE Test;
  15199. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF BOOLEAN;
  15200. BEGIN result := variable;
  15201. END Test.
  15202. negative: array of object to array of boolean assignment
  15203. MODULE Test;
  15204. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF BOOLEAN;
  15205. BEGIN result := variable;
  15206. END Test.
  15207. negative: array of pointer to array of boolean assignment
  15208. MODULE Test;
  15209. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF BOOLEAN;
  15210. BEGIN result := variable;
  15211. END Test.
  15212. negative: array of procedure to array of boolean assignment
  15213. MODULE Test;
  15214. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF BOOLEAN;
  15215. BEGIN result := variable;
  15216. END Test.
  15217. negative: array of boolean to array of character assignment
  15218. MODULE Test;
  15219. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF CHAR;
  15220. BEGIN result := variable;
  15221. END Test.
  15222. positive: array of character to array of character assignment
  15223. MODULE Test;
  15224. VAR variable, result: ARRAY 10 OF CHAR;
  15225. BEGIN result := variable;
  15226. END Test.
  15227. negative: array of character to temporary array of character assignment
  15228. MODULE Test;
  15229. VAR variable: ARRAY 10 OF CHAR; result: PROCEDURE (): ARRAY 10 OF CHAR;
  15230. BEGIN result () := variable;
  15231. END Test.
  15232. negative: array of character to longer array of character assignment
  15233. MODULE Test;
  15234. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 20 OF CHAR;
  15235. BEGIN result := variable;
  15236. END Test.
  15237. negative: array of character to shorter array of character assignment
  15238. MODULE Test;
  15239. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 5 OF CHAR;
  15240. BEGIN result := variable;
  15241. END Test.
  15242. negative: array of character to open array of character assignment
  15243. MODULE Test;
  15244. PROCEDURE Procedure (VAR result: ARRAY OF CHAR);
  15245. VAR variable: ARRAY 10 OF CHAR;
  15246. BEGIN result := variable;
  15247. END Procedure;
  15248. END Test.
  15249. positive: string to open array of character assignment
  15250. MODULE Test;
  15251. PROCEDURE Procedure (VAR result: ARRAY OF CHAR);
  15252. BEGIN result := "string";
  15253. END Procedure;
  15254. END Test.
  15255. negative: open array of character to array of character assignment
  15256. MODULE Test;
  15257. PROCEDURE Procedure (VAR variable: ARRAY OF CHAR);
  15258. VAR result: ARRAY 10 OF CHAR;
  15259. BEGIN result := variable;
  15260. END Procedure;
  15261. END Test.
  15262. negative: array of character to dereferenced open array of character assignment
  15263. MODULE Test;
  15264. VAR variable: ARRAY 10 OF CHAR; result: POINTER TO ARRAY OF CHAR;
  15265. BEGIN result^ := variable;
  15266. END Test.
  15267. positive: string to dereferenced open array of character assignment
  15268. MODULE Test;
  15269. VAR result: POINTER TO ARRAY OF CHAR;
  15270. BEGIN result^ := "string";
  15271. END Test.
  15272. negative: array of short integer to array of character assignment
  15273. MODULE Test;
  15274. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF CHAR;
  15275. BEGIN result := variable;
  15276. END Test.
  15277. negative: array of integer to array of character assignment
  15278. MODULE Test;
  15279. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF CHAR;
  15280. BEGIN result := variable;
  15281. END Test.
  15282. negative: array of long integer to array of character assignment
  15283. MODULE Test;
  15284. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF CHAR;
  15285. BEGIN result := variable;
  15286. END Test.
  15287. negative: array of huge integer to array of character assignment
  15288. MODULE Test;
  15289. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF CHAR;
  15290. BEGIN result := variable;
  15291. END Test.
  15292. negative: array of real to array of character assignment
  15293. MODULE Test;
  15294. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF CHAR;
  15295. BEGIN result := variable;
  15296. END Test.
  15297. negative: array of long real to array of character assignment
  15298. MODULE Test;
  15299. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF CHAR;
  15300. BEGIN result := variable;
  15301. END Test.
  15302. negative: array of set to array of character assignment
  15303. MODULE Test;
  15304. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF CHAR;
  15305. BEGIN result := variable;
  15306. END Test.
  15307. negative: array of array to array of character assignment
  15308. MODULE Test;
  15309. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF CHAR;
  15310. BEGIN result := variable;
  15311. END Test.
  15312. negative: array of record to array of character assignment
  15313. MODULE Test;
  15314. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF CHAR;
  15315. BEGIN result := variable;
  15316. END Test.
  15317. negative: array of object to array of character assignment
  15318. MODULE Test;
  15319. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF CHAR;
  15320. BEGIN result := variable;
  15321. END Test.
  15322. negative: array of pointer to array of character assignment
  15323. MODULE Test;
  15324. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF CHAR;
  15325. BEGIN result := variable;
  15326. END Test.
  15327. negative: array of procedure to array of character assignment
  15328. MODULE Test;
  15329. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF CHAR;
  15330. BEGIN result := variable;
  15331. END Test.
  15332. negative: array of boolean to array of short integer assignment
  15333. MODULE Test;
  15334. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF SHORTINT;
  15335. BEGIN result := variable;
  15336. END Test.
  15337. negative: array of character to array of short integer assignment
  15338. MODULE Test;
  15339. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF SHORTINT;
  15340. BEGIN result := variable;
  15341. END Test.
  15342. positive: array of short integer to array of short integer assignment
  15343. MODULE Test;
  15344. VAR variable, result: ARRAY 10 OF SHORTINT;
  15345. BEGIN result := variable;
  15346. END Test.
  15347. negative: array of short integer to temporary array of short integer assignment
  15348. MODULE Test;
  15349. VAR variable: ARRAY 10 OF SHORTINT; result: PROCEDURE (): ARRAY 10 OF SHORTINT;
  15350. BEGIN result () := variable;
  15351. END Test.
  15352. negative: array of short integer to longer array of short integer assignment
  15353. MODULE Test;
  15354. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 20 OF SHORTINT;
  15355. BEGIN result := variable;
  15356. END Test.
  15357. negative: array of short integer to shorter array of short integer assignment
  15358. MODULE Test;
  15359. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 5 OF SHORTINT;
  15360. BEGIN result := variable;
  15361. END Test.
  15362. negative: array of short integer to open array of short integer assignment
  15363. MODULE Test;
  15364. PROCEDURE Procedure (VAR result: ARRAY OF SHORTINT);
  15365. VAR variable: ARRAY 10 OF SHORTINT;
  15366. BEGIN result := variable;
  15367. END Procedure;
  15368. END Test.
  15369. negative: open array of short integer to array of short integer assignment
  15370. MODULE Test;
  15371. PROCEDURE Procedure (VAR variable: ARRAY OF SHORTINT);
  15372. VAR result: ARRAY 10 OF SHORTINT;
  15373. BEGIN result := variable;
  15374. END Procedure;
  15375. END Test.
  15376. negative: array of short integer to dereferenced open array of short integer assignment
  15377. MODULE Test;
  15378. VAR variable: ARRAY 10 OF SHORTINT; result: POINTER TO ARRAY OF SHORTINT;
  15379. BEGIN result^ := variable;
  15380. END Test.
  15381. negative: array of integer to array of short integer assignment
  15382. MODULE Test;
  15383. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF SHORTINT;
  15384. BEGIN result := variable;
  15385. END Test.
  15386. negative: array of long integer to array of short integer assignment
  15387. MODULE Test;
  15388. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF SHORTINT;
  15389. BEGIN result := variable;
  15390. END Test.
  15391. negative: array of huge integer to array of short integer assignment
  15392. MODULE Test;
  15393. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF SHORTINT;
  15394. BEGIN result := variable;
  15395. END Test.
  15396. negative: array of real to array of short integer assignment
  15397. MODULE Test;
  15398. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF SHORTINT;
  15399. BEGIN result := variable;
  15400. END Test.
  15401. negative: array of long real to array of short integer assignment
  15402. MODULE Test;
  15403. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF SHORTINT;
  15404. BEGIN result := variable;
  15405. END Test.
  15406. negative: array of set to array of short integer assignment
  15407. MODULE Test;
  15408. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF SHORTINT;
  15409. BEGIN result := variable;
  15410. END Test.
  15411. negative: array of array to array of short integer assignment
  15412. MODULE Test;
  15413. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF SHORTINT;
  15414. BEGIN result := variable;
  15415. END Test.
  15416. negative: array of record to array of short integer assignment
  15417. MODULE Test;
  15418. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF SHORTINT;
  15419. BEGIN result := variable;
  15420. END Test.
  15421. negative: array of object to array of short integer assignment
  15422. MODULE Test;
  15423. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF SHORTINT;
  15424. BEGIN result := variable;
  15425. END Test.
  15426. negative: array of pointer to array of short integer assignment
  15427. MODULE Test;
  15428. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF SHORTINT;
  15429. BEGIN result := variable;
  15430. END Test.
  15431. negative: array of procedure to array of short integer assignment
  15432. MODULE Test;
  15433. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF SHORTINT;
  15434. BEGIN result := variable;
  15435. END Test.
  15436. negative: array of boolean to array of integer assignment
  15437. MODULE Test;
  15438. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF INTEGER;
  15439. BEGIN result := variable;
  15440. END Test.
  15441. negative: array of character to array of integer assignment
  15442. MODULE Test;
  15443. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF INTEGER;
  15444. BEGIN result := variable;
  15445. END Test.
  15446. negative: array of short integer to array of integer assignment
  15447. MODULE Test;
  15448. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF INTEGER;
  15449. BEGIN result := variable;
  15450. END Test.
  15451. positive: array of integer to array of integer assignment
  15452. MODULE Test;
  15453. VAR variable, result: ARRAY 10 OF INTEGER;
  15454. BEGIN result := variable;
  15455. END Test.
  15456. negative: array of integer to temporary array of integer assignment
  15457. MODULE Test;
  15458. VAR variable: ARRAY 10 OF INTEGER; result: PROCEDURE (): ARRAY 10 OF INTEGER;
  15459. BEGIN result () := variable;
  15460. END Test.
  15461. negative: array of integer to longer array of integer assignment
  15462. MODULE Test;
  15463. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 20 OF INTEGER;
  15464. BEGIN result := variable;
  15465. END Test.
  15466. negative: array of integer to shorter array of integer assignment
  15467. MODULE Test;
  15468. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 5 OF INTEGER;
  15469. BEGIN result := variable;
  15470. END Test.
  15471. negative: array of integer to open array of integer assignment
  15472. MODULE Test;
  15473. PROCEDURE Procedure (VAR result: ARRAY OF INTEGER);
  15474. VAR variable: ARRAY 10 OF INTEGER;
  15475. BEGIN result := variable;
  15476. END Procedure;
  15477. END Test.
  15478. negative: open array of integer to array of integer assignment
  15479. MODULE Test;
  15480. PROCEDURE Procedure (VAR variable: ARRAY OF INTEGER);
  15481. VAR result: ARRAY 10 OF INTEGER;
  15482. BEGIN result := variable;
  15483. END Procedure;
  15484. END Test.
  15485. negative: array of integer to dereferenced open array of integer assignment
  15486. MODULE Test;
  15487. VAR variable: ARRAY 10 OF INTEGER; result: POINTER TO ARRAY OF INTEGER;
  15488. BEGIN result^ := variable;
  15489. END Test.
  15490. negative: array of long integer to array of integer assignment
  15491. MODULE Test;
  15492. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF INTEGER;
  15493. BEGIN result := variable;
  15494. END Test.
  15495. negative: array of huge integer to array of integer assignment
  15496. MODULE Test;
  15497. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF INTEGER;
  15498. BEGIN result := variable;
  15499. END Test.
  15500. negative: array of real to array of integer assignment
  15501. MODULE Test;
  15502. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF INTEGER;
  15503. BEGIN result := variable;
  15504. END Test.
  15505. negative: array of long real to array of integer assignment
  15506. MODULE Test;
  15507. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF INTEGER;
  15508. BEGIN result := variable;
  15509. END Test.
  15510. negative: array of set to array of integer assignment
  15511. MODULE Test;
  15512. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF INTEGER;
  15513. BEGIN result := variable;
  15514. END Test.
  15515. negative: array of array to array of integer assignment
  15516. MODULE Test;
  15517. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF INTEGER;
  15518. BEGIN result := variable;
  15519. END Test.
  15520. negative: array of record to array of integer assignment
  15521. MODULE Test;
  15522. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF INTEGER;
  15523. BEGIN result := variable;
  15524. END Test.
  15525. negative: array of object to array of integer assignment
  15526. MODULE Test;
  15527. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF INTEGER;
  15528. BEGIN result := variable;
  15529. END Test.
  15530. negative: array of pointer to array of integer assignment
  15531. MODULE Test;
  15532. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF INTEGER;
  15533. BEGIN result := variable;
  15534. END Test.
  15535. negative: array of procedure to array of integer assignment
  15536. MODULE Test;
  15537. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF INTEGER;
  15538. BEGIN result := variable;
  15539. END Test.
  15540. negative: array of boolean to array of long integer assignment
  15541. MODULE Test;
  15542. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF LONGINT;
  15543. BEGIN result := variable;
  15544. END Test.
  15545. negative: array of character to array of long integer assignment
  15546. MODULE Test;
  15547. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF LONGINT;
  15548. BEGIN result := variable;
  15549. END Test.
  15550. negative: array of short integer to array of long integer assignment
  15551. MODULE Test;
  15552. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF LONGINT;
  15553. BEGIN result := variable;
  15554. END Test.
  15555. negative: array of integer to array of long integer assignment
  15556. MODULE Test;
  15557. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF LONGINT;
  15558. BEGIN result := variable;
  15559. END Test.
  15560. positive: array of long integer to array of long integer assignment
  15561. MODULE Test;
  15562. VAR variable, result: ARRAY 10 OF LONGINT;
  15563. BEGIN result := variable;
  15564. END Test.
  15565. negative: array of long integer to temporary array of long integer assignment
  15566. MODULE Test;
  15567. VAR variable: ARRAY 10 OF LONGINT; result: PROCEDURE (): ARRAY 10 OF LONGINT;
  15568. BEGIN result () := variable;
  15569. END Test.
  15570. negative: array of long integer to longer array of long integer assignment
  15571. MODULE Test;
  15572. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 20 OF LONGINT;
  15573. BEGIN result := variable;
  15574. END Test.
  15575. negative: array of long integer to shorter array of long integer assignment
  15576. MODULE Test;
  15577. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 5 OF LONGINT;
  15578. BEGIN result := variable;
  15579. END Test.
  15580. negative: array of long integer to open array of long integer assignment
  15581. MODULE Test;
  15582. PROCEDURE Procedure (VAR result: ARRAY OF LONGINT);
  15583. VAR variable: ARRAY 10 OF LONGINT;
  15584. BEGIN result := variable;
  15585. END Procedure;
  15586. END Test.
  15587. negative: open array of long integer to array of long integer assignment
  15588. MODULE Test;
  15589. PROCEDURE Procedure (VAR variable: ARRAY OF LONGINT);
  15590. VAR result: ARRAY 10 OF LONGINT;
  15591. BEGIN result := variable;
  15592. END Procedure;
  15593. END Test.
  15594. negative: array of long integer to dereferenced open array of long integer assignment
  15595. MODULE Test;
  15596. VAR variable: ARRAY 10 OF LONGINT; result: POINTER TO ARRAY OF LONGINT;
  15597. BEGIN result^ := variable;
  15598. END Test.
  15599. negative: array of huge integer to array of long integer assignment
  15600. MODULE Test;
  15601. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF LONGINT;
  15602. BEGIN result := variable;
  15603. END Test.
  15604. negative: array of real to array of long integer assignment
  15605. MODULE Test;
  15606. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF LONGINT;
  15607. BEGIN result := variable;
  15608. END Test.
  15609. negative: array of long real to array of long integer assignment
  15610. MODULE Test;
  15611. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF LONGINT;
  15612. BEGIN result := variable;
  15613. END Test.
  15614. negative: array of set to array of long integer assignment
  15615. MODULE Test;
  15616. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF LONGINT;
  15617. BEGIN result := variable;
  15618. END Test.
  15619. negative: array of array to array of long integer assignment
  15620. MODULE Test;
  15621. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF LONGINT;
  15622. BEGIN result := variable;
  15623. END Test.
  15624. negative: array of record to array of long integer assignment
  15625. MODULE Test;
  15626. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF LONGINT;
  15627. BEGIN result := variable;
  15628. END Test.
  15629. negative: array of object to array of long integer assignment
  15630. MODULE Test;
  15631. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF LONGINT;
  15632. BEGIN result := variable;
  15633. END Test.
  15634. negative: array of pointer to array of long integer assignment
  15635. MODULE Test;
  15636. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF LONGINT;
  15637. BEGIN result := variable;
  15638. END Test.
  15639. negative: array of procedure to array of long integer assignment
  15640. MODULE Test;
  15641. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF LONGINT;
  15642. BEGIN result := variable;
  15643. END Test.
  15644. negative: array of boolean to array of huge integer assignment
  15645. MODULE Test;
  15646. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF HUGEINT;
  15647. BEGIN result := variable;
  15648. END Test.
  15649. negative: array of character to array of huge integer assignment
  15650. MODULE Test;
  15651. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF HUGEINT;
  15652. BEGIN result := variable;
  15653. END Test.
  15654. negative: array of short integer to array of huge integer assignment
  15655. MODULE Test;
  15656. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF HUGEINT;
  15657. BEGIN result := variable;
  15658. END Test.
  15659. negative: array of integer to array of huge integer assignment
  15660. MODULE Test;
  15661. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF HUGEINT;
  15662. BEGIN result := variable;
  15663. END Test.
  15664. negative: array of long integer to array of huge integer assignment
  15665. MODULE Test;
  15666. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF HUGEINT;
  15667. BEGIN result := variable;
  15668. END Test.
  15669. positive: array of huge integer to array of huge integer assignment
  15670. MODULE Test;
  15671. VAR variable, result: ARRAY 10 OF HUGEINT;
  15672. BEGIN result := variable;
  15673. END Test.
  15674. negative: array of huge integer to temporary array of huge integer assignment
  15675. MODULE Test;
  15676. VAR variable: ARRAY 10 OF HUGEINT; result: PROCEDURE (): ARRAY 10 OF HUGEINT;
  15677. BEGIN result () := variable;
  15678. END Test.
  15679. negative: array of huge integer to longer array of huge integer assignment
  15680. MODULE Test;
  15681. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 20 OF HUGEINT;
  15682. BEGIN result := variable;
  15683. END Test.
  15684. negative: array of huge integer to shorter array of huge integer assignment
  15685. MODULE Test;
  15686. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 5 OF HUGEINT;
  15687. BEGIN result := variable;
  15688. END Test.
  15689. negative: array of huge integer to open array of huge integer assignment
  15690. MODULE Test;
  15691. PROCEDURE Procedure (VAR result: ARRAY OF HUGEINT);
  15692. VAR variable: ARRAY 10 OF HUGEINT;
  15693. BEGIN result := variable;
  15694. END Procedure;
  15695. END Test.
  15696. negative: open array of huge integer to array of huge integer assignment
  15697. MODULE Test;
  15698. PROCEDURE Procedure (VAR variable: ARRAY OF HUGEINT);
  15699. VAR result: ARRAY 10 OF HUGEINT;
  15700. BEGIN result := variable;
  15701. END Procedure;
  15702. END Test.
  15703. negative: array of huge integer to dereferenced open array of huge integer assignment
  15704. MODULE Test;
  15705. VAR variable: ARRAY 10 OF HUGEINT; result: POINTER TO ARRAY OF HUGEINT;
  15706. BEGIN result^ := variable;
  15707. END Test.
  15708. negative: array of real to array of huge integer assignment
  15709. MODULE Test;
  15710. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF HUGEINT;
  15711. BEGIN result := variable;
  15712. END Test.
  15713. negative: array of long real to array of huge integer assignment
  15714. MODULE Test;
  15715. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF HUGEINT;
  15716. BEGIN result := variable;
  15717. END Test.
  15718. negative: array of set to array of huge integer assignment
  15719. MODULE Test;
  15720. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF HUGEINT;
  15721. BEGIN result := variable;
  15722. END Test.
  15723. negative: array of array to array of huge integer assignment
  15724. MODULE Test;
  15725. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF HUGEINT;
  15726. BEGIN result := variable;
  15727. END Test.
  15728. negative: array of record to array of huge integer assignment
  15729. MODULE Test;
  15730. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF HUGEINT;
  15731. BEGIN result := variable;
  15732. END Test.
  15733. negative: array of object to array of huge integer assignment
  15734. MODULE Test;
  15735. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF HUGEINT;
  15736. BEGIN result := variable;
  15737. END Test.
  15738. negative: array of pointer to array of huge integer assignment
  15739. MODULE Test;
  15740. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF HUGEINT;
  15741. BEGIN result := variable;
  15742. END Test.
  15743. negative: array of procedure to array of huge integer assignment
  15744. MODULE Test;
  15745. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF HUGEINT;
  15746. BEGIN result := variable;
  15747. END Test.
  15748. negative: array of boolean to array of real assignment
  15749. MODULE Test;
  15750. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF REAL;
  15751. BEGIN result := variable;
  15752. END Test.
  15753. negative: array of character to array of real assignment
  15754. MODULE Test;
  15755. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF REAL;
  15756. BEGIN result := variable;
  15757. END Test.
  15758. negative: array of short integer to array of real assignment
  15759. MODULE Test;
  15760. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF REAL;
  15761. BEGIN result := variable;
  15762. END Test.
  15763. negative: array of integer to array of real assignment
  15764. MODULE Test;
  15765. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF REAL;
  15766. BEGIN result := variable;
  15767. END Test.
  15768. negative: array of long integer to array of real assignment
  15769. MODULE Test;
  15770. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF REAL;
  15771. BEGIN result := variable;
  15772. END Test.
  15773. negative: array of huge integer to array of real assignment
  15774. MODULE Test;
  15775. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF REAL;
  15776. BEGIN result := variable;
  15777. END Test.
  15778. positive: array of real to array of real assignment
  15779. MODULE Test;
  15780. VAR variable, result: ARRAY 10 OF REAL;
  15781. BEGIN result := variable;
  15782. END Test.
  15783. negative: array of real to temporary array of real assignment
  15784. MODULE Test;
  15785. VAR variable: ARRAY 10 OF SHORTINT; result: PROCEDURE (): ARRAY 10 OF SHORTINT;
  15786. BEGIN result () := variable;
  15787. END Test.
  15788. negative: array of real to longer array of real assignment
  15789. MODULE Test;
  15790. VAR variable: ARRAY 10 OF REAL; result: ARRAY 20 OF REAL;
  15791. BEGIN result := variable;
  15792. END Test.
  15793. negative: array of real to shorter array of real assignment
  15794. MODULE Test;
  15795. VAR variable: ARRAY 10 OF REAL; result: ARRAY 5 OF REAL;
  15796. BEGIN result := variable;
  15797. END Test.
  15798. negative: array of real to open array of real assignment
  15799. MODULE Test;
  15800. PROCEDURE Procedure (VAR result: ARRAY OF REAL);
  15801. VAR variable: ARRAY 10 OF REAL;
  15802. BEGIN result := variable;
  15803. END Procedure;
  15804. END Test.
  15805. negative: open array of real to array of real assignment
  15806. MODULE Test;
  15807. PROCEDURE Procedure (VAR variable: ARRAY OF REAL);
  15808. VAR result: ARRAY 10 OF REAL;
  15809. BEGIN result := variable;
  15810. END Procedure;
  15811. END Test.
  15812. negative: array of real to dereferenced open array of real assignment
  15813. MODULE Test;
  15814. VAR variable: ARRAY 10 OF REAL; result: POINTER TO ARRAY OF REAL;
  15815. BEGIN result^ := variable;
  15816. END Test.
  15817. negative: array of long real to array of real assignment
  15818. MODULE Test;
  15819. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF REAL;
  15820. BEGIN result := variable;
  15821. END Test.
  15822. negative: array of set to array of real assignment
  15823. MODULE Test;
  15824. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF REAL;
  15825. BEGIN result := variable;
  15826. END Test.
  15827. negative: array of array to array of real assignment
  15828. MODULE Test;
  15829. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF REAL;
  15830. BEGIN result := variable;
  15831. END Test.
  15832. negative: array of record to array of real assignment
  15833. MODULE Test;
  15834. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF REAL;
  15835. BEGIN result := variable;
  15836. END Test.
  15837. negative: array of object to array of real assignment
  15838. MODULE Test;
  15839. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF REAL;
  15840. BEGIN result := variable;
  15841. END Test.
  15842. negative: array of pointer to array of real assignment
  15843. MODULE Test;
  15844. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF REAL;
  15845. BEGIN result := variable;
  15846. END Test.
  15847. negative: array of procedure to array of real assignment
  15848. MODULE Test;
  15849. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF REAL;
  15850. BEGIN result := variable;
  15851. END Test.
  15852. negative: array of boolean to array of long real assignment
  15853. MODULE Test;
  15854. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF LONGREAL;
  15855. BEGIN result := variable;
  15856. END Test.
  15857. negative: array of character to array of long real assignment
  15858. MODULE Test;
  15859. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF LONGREAL;
  15860. BEGIN result := variable;
  15861. END Test.
  15862. negative: array of short integer to array of long real assignment
  15863. MODULE Test;
  15864. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF LONGREAL;
  15865. BEGIN result := variable;
  15866. END Test.
  15867. negative: array of integer to array of long real assignment
  15868. MODULE Test;
  15869. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF LONGREAL;
  15870. BEGIN result := variable;
  15871. END Test.
  15872. negative: array of long integer to array of long real assignment
  15873. MODULE Test;
  15874. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF LONGREAL;
  15875. BEGIN result := variable;
  15876. END Test.
  15877. negative: array of huge integer to array of long real assignment
  15878. MODULE Test;
  15879. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF LONGREAL;
  15880. BEGIN result := variable;
  15881. END Test.
  15882. negative: array of real to array of long real assignment
  15883. MODULE Test;
  15884. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF LONGREAL;
  15885. BEGIN result := variable;
  15886. END Test.
  15887. positive: array of long real to array of long real assignment
  15888. MODULE Test;
  15889. VAR variable, result: ARRAY 10 OF LONGREAL;
  15890. BEGIN result := variable;
  15891. END Test.
  15892. negative: array of long real to temporary array of long real assignment
  15893. MODULE Test;
  15894. VAR variable: ARRAY 10 OF LONGREAL; result: PROCEDURE (): ARRAY 10 OF LONGREAL;
  15895. BEGIN result () := variable;
  15896. END Test.
  15897. negative: array of long real to longer array of long real assignment
  15898. MODULE Test;
  15899. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 20 OF LONGREAL;
  15900. BEGIN result := variable;
  15901. END Test.
  15902. negative: array of long real to shorter array of long real assignment
  15903. MODULE Test;
  15904. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 5 OF LONGREAL;
  15905. BEGIN result := variable;
  15906. END Test.
  15907. negative: array of long real to open array of long real assignment
  15908. MODULE Test;
  15909. PROCEDURE Procedure (VAR result: ARRAY OF LONGREAL);
  15910. VAR variable: ARRAY 10 OF LONGREAL;
  15911. BEGIN result := variable;
  15912. END Procedure;
  15913. END Test.
  15914. negative: open array of long real to array of long real assignment
  15915. MODULE Test;
  15916. PROCEDURE Procedure (VAR variable: ARRAY OF LONGREAL);
  15917. VAR result: ARRAY 10 OF LONGREAL;
  15918. BEGIN result := variable;
  15919. END Procedure;
  15920. END Test.
  15921. negative: array of long real to dereferenced open array of long real assignment
  15922. MODULE Test;
  15923. VAR variable: ARRAY 10 OF LONGREAL; result: POINTER TO ARRAY OF LONGREAL;
  15924. BEGIN result^ := variable;
  15925. END Test.
  15926. negative: array of set to array of long real assignment
  15927. MODULE Test;
  15928. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF LONGREAL;
  15929. BEGIN result := variable;
  15930. END Test.
  15931. negative: array of array to array of long real assignment
  15932. MODULE Test;
  15933. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF LONGREAL;
  15934. BEGIN result := variable;
  15935. END Test.
  15936. negative: array of record to array of long real assignment
  15937. MODULE Test;
  15938. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF LONGREAL;
  15939. BEGIN result := variable;
  15940. END Test.
  15941. negative: array of object to array of long real assignment
  15942. MODULE Test;
  15943. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF LONGREAL;
  15944. BEGIN result := variable;
  15945. END Test.
  15946. negative: array of pointer to array of long real assignment
  15947. MODULE Test;
  15948. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF LONGREAL;
  15949. BEGIN result := variable;
  15950. END Test.
  15951. negative: array of procedure to array of long real assignment
  15952. MODULE Test;
  15953. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF LONGREAL;
  15954. BEGIN result := variable;
  15955. END Test.
  15956. negative: array of boolean to array of set assignment
  15957. MODULE Test;
  15958. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF SET;
  15959. BEGIN result := variable;
  15960. END Test.
  15961. negative: array of character to array of set assignment
  15962. MODULE Test;
  15963. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF SET;
  15964. BEGIN result := variable;
  15965. END Test.
  15966. negative: array of short integer to array of set assignment
  15967. MODULE Test;
  15968. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF SET;
  15969. BEGIN result := variable;
  15970. END Test.
  15971. negative: array of integer to array of set assignment
  15972. MODULE Test;
  15973. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF SET;
  15974. BEGIN result := variable;
  15975. END Test.
  15976. negative: array of long integer to array of set assignment
  15977. MODULE Test;
  15978. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF SET;
  15979. BEGIN result := variable;
  15980. END Test.
  15981. negative: array of huge integer to array of set assignment
  15982. MODULE Test;
  15983. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF SET;
  15984. BEGIN result := variable;
  15985. END Test.
  15986. negative: array of real to array of set assignment
  15987. MODULE Test;
  15988. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF SET;
  15989. BEGIN result := variable;
  15990. END Test.
  15991. negative: array of long real to array of set assignment
  15992. MODULE Test;
  15993. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF SET;
  15994. BEGIN result := variable;
  15995. END Test.
  15996. positive: array of set to array of set assignment
  15997. MODULE Test;
  15998. VAR variable, result: ARRAY 10 OF SET;
  15999. BEGIN result := variable;
  16000. END Test.
  16001. negative: array of set to longer array of set assignment
  16002. MODULE Test;
  16003. VAR variable: ARRAY 10 OF SET; result: ARRAY 20 OF SET;
  16004. BEGIN result := variable;
  16005. END Test.
  16006. negative: array of set to shorter array of set assignment
  16007. MODULE Test;
  16008. VAR variable: ARRAY 10 OF SET; result: ARRAY 5 OF SET;
  16009. BEGIN result := variable;
  16010. END Test.
  16011. negative: array of set to open array of set assignment
  16012. MODULE Test;
  16013. PROCEDURE Procedure (VAR result: ARRAY OF SET);
  16014. VAR variable: ARRAY 10 OF SET;
  16015. BEGIN result := variable;
  16016. END Procedure;
  16017. END Test.
  16018. negative: open array of set to array of set assignment
  16019. MODULE Test;
  16020. PROCEDURE Procedure (VAR variable: ARRAY OF SET);
  16021. VAR result: ARRAY 10 OF SET;
  16022. BEGIN result := variable;
  16023. END Procedure;
  16024. END Test.
  16025. negative: array of set to dereferenced open array of set assignment
  16026. MODULE Test;
  16027. VAR variable: ARRAY 10 OF SET; result: POINTER TO ARRAY OF SET;
  16028. BEGIN result^ := variable;
  16029. END Test.
  16030. negative: array of array to array of set assignment
  16031. MODULE Test;
  16032. VAR variable: ARRAY 10 OF ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF SET;
  16033. BEGIN result := variable;
  16034. END Test.
  16035. negative: array of record to array of set assignment
  16036. MODULE Test;
  16037. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF SET;
  16038. BEGIN result := variable;
  16039. END Test.
  16040. negative: array of object to array of set assignment
  16041. MODULE Test;
  16042. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF SET;
  16043. BEGIN result := variable;
  16044. END Test.
  16045. negative: array of pointer to array of set assignment
  16046. MODULE Test;
  16047. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF SET;
  16048. BEGIN result := variable;
  16049. END Test.
  16050. negative: array of procedure to array of set assignment
  16051. MODULE Test;
  16052. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF SET;
  16053. BEGIN result := variable;
  16054. END Test.
  16055. negative: array of boolean to array of array assignment
  16056. MODULE Test;
  16057. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF ARRAY 10 OF SET;
  16058. BEGIN result := variable;
  16059. END Test.
  16060. negative: array of character to array of array assignment
  16061. MODULE Test;
  16062. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF ARRAY 10 OF SET;
  16063. BEGIN result := variable;
  16064. END Test.
  16065. negative: array of short integer to array of array assignment
  16066. MODULE Test;
  16067. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF ARRAY 10 OF SET;
  16068. BEGIN result := variable;
  16069. END Test.
  16070. negative: array of integer to array of array assignment
  16071. MODULE Test;
  16072. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF ARRAY 10 OF SET;
  16073. BEGIN result := variable;
  16074. END Test.
  16075. negative: array of long integer to array of array assignment
  16076. MODULE Test;
  16077. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF ARRAY 10 OF SET;
  16078. BEGIN result := variable;
  16079. END Test.
  16080. negative: array of huge integer to array of array assignment
  16081. MODULE Test;
  16082. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF ARRAY 10 OF SET;
  16083. BEGIN result := variable;
  16084. END Test.
  16085. negative: array of real to array of array assignment
  16086. MODULE Test;
  16087. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF ARRAY 10 OF SET;
  16088. BEGIN result := variable;
  16089. END Test.
  16090. negative: array of long real to array of array assignment
  16091. MODULE Test;
  16092. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF ARRAY 10 OF SET;
  16093. BEGIN result := variable;
  16094. END Test.
  16095. negative: array of set of array assignment
  16096. MODULE Test;
  16097. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF ARRAY 10 OF SET;
  16098. BEGIN result := variable;
  16099. END Test.
  16100. positive: array of array to array of array assignment
  16101. MODULE Test;
  16102. VAR variable, result: ARRAY 10 OF ARRAY 10 OF SET;
  16103. BEGIN result := variable;
  16104. END Test.
  16105. negative: array of array to temporary array of array assignment
  16106. MODULE Test;
  16107. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: PROCEDURE (): ARRAY 10 OF ARRAY 10 OF SET;
  16108. BEGIN result () := variable;
  16109. END Test.
  16110. negative: array of array to longer array of array assignment
  16111. MODULE Test;
  16112. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 20 OF ARRAY 10 OF SET;
  16113. BEGIN result := variable;
  16114. END Test.
  16115. negative: array of array to shorter array of array assignment
  16116. MODULE Test;
  16117. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 5 OF ARRAY 10 OF SET;
  16118. BEGIN result := variable;
  16119. END Test.
  16120. negative: array of array to open array of array assignment
  16121. MODULE Test;
  16122. PROCEDURE Procedure (VAR result: ARRAY OF ARRAY 10 OF SET);
  16123. VAR variable: ARRAY 10 OF ARRAY 10 OF SET;
  16124. BEGIN result := variable;
  16125. END Procedure;
  16126. END Test.
  16127. negative: open array of array to array of array assignment
  16128. MODULE Test;
  16129. PROCEDURE Procedure (VAR variable: ARRAY OF ARRAY 10 OF SET);
  16130. VAR result: ARRAY 10 OF ARRAY 10 OF SET;
  16131. BEGIN result := variable;
  16132. END Procedure;
  16133. END Test.
  16134. negative: array of array to dereferenced open array of array assignment
  16135. MODULE Test;
  16136. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: POINTER TO ARRAY OF ARRAY 10 OF SET;
  16137. BEGIN result^ := variable;
  16138. END Test.
  16139. negative: array of record to array of array assignment
  16140. MODULE Test;
  16141. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF ARRAY 10 OF SET;
  16142. BEGIN result := variable;
  16143. END Test.
  16144. negative: array of object to array of array assignment
  16145. MODULE Test;
  16146. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF ARRAY 10 OF SET;
  16147. BEGIN result := variable;
  16148. END Test.
  16149. negative: array of pointer to array of array assignment
  16150. MODULE Test;
  16151. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF ARRAY 10 OF SET;
  16152. BEGIN result := variable;
  16153. END Test.
  16154. negative: array of procedure to array of array assignment
  16155. MODULE Test;
  16156. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF ARRAY 10 OF SET;
  16157. BEGIN result := variable;
  16158. END Test.
  16159. negative: array of boolean to array of record assignment
  16160. MODULE Test;
  16161. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF RECORD END;
  16162. BEGIN result := variable;
  16163. END Test.
  16164. negative: array of character to array of record assignment
  16165. MODULE Test;
  16166. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF RECORD END;
  16167. BEGIN result := variable;
  16168. END Test.
  16169. negative: array of short integer to array of record assignment
  16170. MODULE Test;
  16171. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF RECORD END;
  16172. BEGIN result := variable;
  16173. END Test.
  16174. negative: array of integer to array of record assignment
  16175. MODULE Test;
  16176. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF RECORD END;
  16177. BEGIN result := variable;
  16178. END Test.
  16179. negative: array of long integer to array of record assignment
  16180. MODULE Test;
  16181. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF RECORD END;
  16182. BEGIN result := variable;
  16183. END Test.
  16184. negative: array of huge integer to array of record assignment
  16185. MODULE Test;
  16186. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF RECORD END;
  16187. BEGIN result := variable;
  16188. END Test.
  16189. negative: array of real to array of record assignment
  16190. MODULE Test;
  16191. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF RECORD END;
  16192. BEGIN result := variable;
  16193. END Test.
  16194. negative: array of long real to array of record assignment
  16195. MODULE Test;
  16196. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF RECORD END;
  16197. BEGIN result := variable;
  16198. END Test.
  16199. negative: array of set to array of record assignment
  16200. MODULE Test;
  16201. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF RECORD END;
  16202. BEGIN result := variable;
  16203. END Test.
  16204. negative: array of array to array of record assignment
  16205. MODULE Test;
  16206. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF RECORD END;
  16207. BEGIN result := variable;
  16208. END Test.
  16209. positive: array of record to array of record assignment
  16210. MODULE Test;
  16211. VAR variable, result: ARRAY 10 OF RECORD END;
  16212. BEGIN result := variable;
  16213. END Test.
  16214. negative: array of record to temporary array of record assignment
  16215. MODULE Test;
  16216. TYPE Record = RECORD END;
  16217. VAR variable: ARRAY 10 OF Record; result: PROCEDURE (): ARRAY 10 OF Record;
  16218. BEGIN result () := variable;
  16219. END Test.
  16220. negative: array of record to longer array of record assignment
  16221. MODULE Test;
  16222. TYPE Record = RECORD END;
  16223. VAR variable: ARRAY 10 OF Record; result: ARRAY 20 OF Record;
  16224. BEGIN result := variable;
  16225. END Test.
  16226. negative: array of record to shorter array of record assignment
  16227. MODULE Test;
  16228. TYPE Record = RECORD END;
  16229. VAR variable: ARRAY 10 OF Record; result: ARRAY 5 OF Record;
  16230. BEGIN result := variable;
  16231. END Test.
  16232. negative: array of record to open array of record assignment
  16233. MODULE Test;
  16234. TYPE Record = RECORD END;
  16235. PROCEDURE Procedure (VAR result: ARRAY OF Record);
  16236. VAR variable: ARRAY 10 OF Record;
  16237. BEGIN result := variable;
  16238. END Procedure;
  16239. END Test.
  16240. negative: open array of record to array of record assignment
  16241. MODULE Test;
  16242. TYPE Record = RECORD END;
  16243. PROCEDURE Procedure (VAR variable: ARRAY OF Record);
  16244. VAR result: ARRAY 10 OF Record;
  16245. BEGIN result := variable;
  16246. END Procedure;
  16247. END Test.
  16248. negative: array of record to dereferenced open array of record assignment
  16249. MODULE Test;
  16250. TYPE Record = RECORD END;
  16251. VAR variable: ARRAY 10 OF Record; result: POINTER TO ARRAY OF Record;
  16252. BEGIN result^ := variable;
  16253. END Test.
  16254. negative: array of object to array of record assignment
  16255. MODULE Test;
  16256. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF RECORD END;
  16257. BEGIN result := variable;
  16258. END Test.
  16259. negative: array of pointer to array of record assignment
  16260. MODULE Test;
  16261. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF RECORD END;
  16262. BEGIN result := variable;
  16263. END Test.
  16264. negative: array of procedure to array of record assignment
  16265. MODULE Test;
  16266. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF RECORD END;
  16267. BEGIN result := variable;
  16268. END Test.
  16269. negative: array of boolean to array of object assignment
  16270. MODULE Test;
  16271. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF OBJECT END;
  16272. BEGIN result := variable;
  16273. END Test.
  16274. negative: array of character to array of object assignment
  16275. MODULE Test;
  16276. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF OBJECT END;
  16277. BEGIN result := variable;
  16278. END Test.
  16279. negative: array of short integer to array of object assignment
  16280. MODULE Test;
  16281. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF OBJECT END;
  16282. BEGIN result := variable;
  16283. END Test.
  16284. negative: array of integer to array of object assignment
  16285. MODULE Test;
  16286. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF OBJECT END;
  16287. BEGIN result := variable;
  16288. END Test.
  16289. negative: array of long integer to array of object assignment
  16290. MODULE Test;
  16291. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF OBJECT END;
  16292. BEGIN result := variable;
  16293. END Test.
  16294. negative: array of huge integer to array of object assignment
  16295. MODULE Test;
  16296. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF OBJECT END;
  16297. BEGIN result := variable;
  16298. END Test.
  16299. negative: array of real to array of object assignment
  16300. MODULE Test;
  16301. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF OBJECT END;
  16302. BEGIN result := variable;
  16303. END Test.
  16304. negative: array of long real to array of object assignment
  16305. MODULE Test;
  16306. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF OBJECT END;
  16307. BEGIN result := variable;
  16308. END Test.
  16309. negative: array of set to array of object assignment
  16310. MODULE Test;
  16311. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF OBJECT END;
  16312. BEGIN result := variable;
  16313. END Test.
  16314. negative: array of array to array of object assignment
  16315. MODULE Test;
  16316. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF OBJECT END;
  16317. BEGIN result := variable;
  16318. END Test.
  16319. negative: array of record to array of object assignment
  16320. MODULE Test;
  16321. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF OBJECT END;
  16322. BEGIN result := variable;
  16323. END Test.
  16324. positive: array of object to array of object assignment
  16325. MODULE Test;
  16326. VAR variable, result: ARRAY 10 OF OBJECT END;
  16327. BEGIN result := variable;
  16328. END Test.
  16329. negative: array of object to temporary array of object assignment
  16330. MODULE Test;
  16331. TYPE Object = OBJECT END Object;
  16332. VAR variable: ARRAY 10 OF Object; result: PROCEDURE (): ARRAY 10 OF Object;
  16333. BEGIN result () := variable;
  16334. END Test.
  16335. negative: array of object to longer array of object assignment
  16336. MODULE Test;
  16337. TYPE Object = OBJECT END Object;
  16338. VAR variable: ARRAY 10 OF Object; result: ARRAY 20 OF Object;
  16339. BEGIN result := variable;
  16340. END Test.
  16341. negative: array of object to shorter array of object assignment
  16342. MODULE Test;
  16343. TYPE Object = OBJECT END Object;
  16344. VAR variable: ARRAY 10 OF Object; result: ARRAY 5 OF Object;
  16345. BEGIN result := variable;
  16346. END Test.
  16347. negative: array of object to open array of object assignment
  16348. MODULE Test;
  16349. TYPE Object = OBJECT END Object;
  16350. PROCEDURE Procedure (VAR result: ARRAY OF Object);
  16351. VAR variable: ARRAY 10 OF Object;
  16352. BEGIN result := variable;
  16353. END Procedure;
  16354. END Test.
  16355. negative: open array of object to array of object assignment
  16356. MODULE Test;
  16357. TYPE Object = OBJECT END Object;
  16358. PROCEDURE Procedure (VAR variable: ARRAY OF Object);
  16359. VAR result: ARRAY 10 OF Object;
  16360. BEGIN result := variable;
  16361. END Procedure;
  16362. END Test.
  16363. negative: array of object to dereferenced open array of object assignment
  16364. MODULE Test;
  16365. TYPE Object = OBJECT END Object;
  16366. VAR variable: ARRAY 10 OF Object; result: POINTER TO ARRAY OF Object;
  16367. BEGIN result^ := variable;
  16368. END Test.
  16369. negative: array of pointer to array of object assignment
  16370. MODULE Test;
  16371. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF OBJECT END;
  16372. BEGIN result := variable;
  16373. END Test.
  16374. negative: array of procedure to array of object assignment
  16375. MODULE Test;
  16376. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF OBJECT END;
  16377. BEGIN result := variable;
  16378. END Test.
  16379. negative: array of boolean to array of pointer assignment
  16380. MODULE Test;
  16381. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF POINTER TO RECORD END;
  16382. BEGIN result := variable;
  16383. END Test.
  16384. negative: array of character to array of pointer assignment
  16385. MODULE Test;
  16386. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF POINTER TO RECORD END;
  16387. BEGIN result := variable;
  16388. END Test.
  16389. negative: array of short integer to array of pointer assignment
  16390. MODULE Test;
  16391. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF POINTER TO RECORD END;
  16392. BEGIN result := variable;
  16393. END Test.
  16394. negative: array of integer to array of pointer assignment
  16395. MODULE Test;
  16396. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF POINTER TO RECORD END;
  16397. BEGIN result := variable;
  16398. END Test.
  16399. negative: array of long integer to array of pointer assignment
  16400. MODULE Test;
  16401. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF POINTER TO RECORD END;
  16402. BEGIN result := variable;
  16403. END Test.
  16404. negative: array of huge integer to array of pointer assignment
  16405. MODULE Test;
  16406. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF POINTER TO RECORD END;
  16407. BEGIN result := variable;
  16408. END Test.
  16409. negative: array of real to array of pointer assignment
  16410. MODULE Test;
  16411. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF POINTER TO RECORD END;
  16412. BEGIN result := variable;
  16413. END Test.
  16414. negative: array of long real to array of pointer assignment
  16415. MODULE Test;
  16416. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF POINTER TO RECORD END;
  16417. BEGIN result := variable;
  16418. END Test.
  16419. negative: array of set to array of pointer assignment
  16420. MODULE Test;
  16421. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF POINTER TO RECORD END;
  16422. BEGIN result := variable;
  16423. END Test.
  16424. negative: array of array to array of pointer assignment
  16425. MODULE Test;
  16426. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF POINTER TO RECORD END;
  16427. BEGIN result := variable;
  16428. END Test.
  16429. negative: array of record to array of pointer assignment
  16430. MODULE Test;
  16431. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF POINTER TO RECORD END;
  16432. BEGIN result := variable;
  16433. END Test.
  16434. negative: array of object to array of pointer assignment
  16435. MODULE Test;
  16436. VAR variable: ARRAY 10 OF OBJECT END; result: ARRAY 10 OF POINTER TO RECORD END;
  16437. BEGIN result := variable;
  16438. END Test.
  16439. positive: array of pointer to array of pointer assignment
  16440. MODULE Test;
  16441. VAR variable, result: ARRAY 10 OF POINTER TO RECORD END;
  16442. BEGIN result := variable;
  16443. END Test.
  16444. negative: array of pointer to temporary array of pointer assignment
  16445. MODULE Test;
  16446. TYPE Record = RECORD END;
  16447. VAR variable: ARRAY 10 OF POINTER TO Record; result: PROCEDURE (): ARRAY 10 OF POINTER TO Record;
  16448. BEGIN result () := variable;
  16449. END Test.
  16450. negative: array of pointer to longer array of pointer assignment
  16451. MODULE Test;
  16452. TYPE Pointer = POINTER TO RECORD END;
  16453. VAR variable: ARRAY 10 OF Pointer; result: ARRAY 20 OF Pointer;
  16454. BEGIN result := variable;
  16455. END Test.
  16456. negative: array of pointer to shorter array of pointer assignment
  16457. MODULE Test;
  16458. TYPE Pointer = POINTER TO RECORD END;
  16459. VAR variable: ARRAY 10 OF Pointer; result: ARRAY 5 OF Pointer;
  16460. BEGIN result := variable;
  16461. END Test.
  16462. negative: array of pointer to open array of pointer assignment
  16463. MODULE Test;
  16464. TYPE Pointer = POINTER TO RECORD END;
  16465. PROCEDURE Procedure (VAR result: ARRAY OF Pointer);
  16466. VAR variable: ARRAY 10 OF Pointer;
  16467. BEGIN result := variable;
  16468. END Procedure;
  16469. END Test.
  16470. negative: open array of pointer to array of pointer assignment
  16471. MODULE Test;
  16472. TYPE Pointer = POINTER TO RECORD END;
  16473. PROCEDURE Procedure (VAR variable: ARRAY OF Pointer);
  16474. VAR result: ARRAY 10 OF Pointer;
  16475. BEGIN result := variable;
  16476. END Procedure;
  16477. END Test.
  16478. negative: array of pointer to dereferenced open array of pointer assignment
  16479. MODULE Test;
  16480. TYPE Pointer = POINTER TO RECORD END;
  16481. VAR variable: ARRAY 10 OF Pointer; result: POINTER TO ARRAY OF Pointer;
  16482. BEGIN result^ := variable;
  16483. END Test.
  16484. negative: array of procedure to array of pointer assignment
  16485. MODULE Test;
  16486. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF POINTER TO RECORD END;
  16487. BEGIN result := variable;
  16488. END Test.
  16489. negative: array of boolean to array of procedure assignment
  16490. MODULE Test;
  16491. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF PROCEDURE;
  16492. BEGIN result := variable;
  16493. END Test.
  16494. negative: array of character to array of procedure assignment
  16495. MODULE Test;
  16496. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF PROCEDURE;
  16497. BEGIN result := variable;
  16498. END Test.
  16499. negative: array of short integer to array of procedure assignment
  16500. MODULE Test;
  16501. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF PROCEDURE;
  16502. BEGIN result := variable;
  16503. END Test.
  16504. negative: array of integer to array of procedure assignment
  16505. MODULE Test;
  16506. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF PROCEDURE;
  16507. BEGIN result := variable;
  16508. END Test.
  16509. negative: array of long integer to array of procedure assignment
  16510. MODULE Test;
  16511. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF PROCEDURE;
  16512. BEGIN result := variable;
  16513. END Test.
  16514. negative: array of huge integer to array of procedure assignment
  16515. MODULE Test;
  16516. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF PROCEDURE;
  16517. BEGIN result := variable;
  16518. END Test.
  16519. negative: array of real to array of procedure assignment
  16520. MODULE Test;
  16521. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF PROCEDURE;
  16522. BEGIN result := variable;
  16523. END Test.
  16524. negative: array of long real to array of procedure assignment
  16525. MODULE Test;
  16526. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF PROCEDURE;
  16527. BEGIN result := variable;
  16528. END Test.
  16529. negative: array of set to array of procedure assignment
  16530. MODULE Test;
  16531. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF PROCEDURE;
  16532. BEGIN result := variable;
  16533. END Test.
  16534. negative: array of array to array of procedure assignment
  16535. MODULE Test;
  16536. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF PROCEDURE;
  16537. BEGIN result := variable;
  16538. END Test.
  16539. negative: array of record to array of procedure assignment
  16540. MODULE Test;
  16541. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF PROCEDURE;
  16542. BEGIN result := variable;
  16543. END Test.
  16544. negative: array of object to array of procedure assignment
  16545. MODULE Test;
  16546. VAR variable: ARRAY 10 OF OBJECT END; result: ARRAY 10 OF PROCEDURE;
  16547. BEGIN result := variable;
  16548. END Test.
  16549. negative: array of pointer to array of procedure assignment
  16550. MODULE Test;
  16551. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF PROCEDURE;
  16552. BEGIN result := variable;
  16553. END Test.
  16554. positive: array of procedure to array of procedure assignment
  16555. MODULE Test;
  16556. VAR variable, result: ARRAY 10 OF PROCEDURE;
  16557. BEGIN result := variable;
  16558. END Test.
  16559. negative: array of procedure to temporary array of procedure assignment
  16560. MODULE Test;
  16561. VAR variable: ARRAY 10 OF PROCEDURE; result: PROCEDURE (): ARRAY 10 OF PROCEDURE;
  16562. BEGIN result () := variable;
  16563. END Test.
  16564. negative: array of procedure to longer array of procedure assignment
  16565. MODULE Test;
  16566. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 20 OF PROCEDURE;
  16567. BEGIN result := variable;
  16568. END Test.
  16569. negative: array of procedure to shorter array of procedure assignment
  16570. MODULE Test;
  16571. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 5 OF PROCEDURE;
  16572. BEGIN result := variable;
  16573. END Test.
  16574. negative: array of procedure to open array of procedure assignment
  16575. MODULE Test;
  16576. PROCEDURE Procedure (VAR result: ARRAY OF PROCEDURE);
  16577. VAR variable: ARRAY 10 OF PROCEDURE;
  16578. BEGIN result := variable;
  16579. END Procedure;
  16580. END Test.
  16581. negative: open array of procedure to array of procedure assignment
  16582. MODULE Test;
  16583. PROCEDURE Procedure (VAR variable: ARRAY OF PROCEDURE);
  16584. VAR result: ARRAY 10 OF PROCEDURE;
  16585. BEGIN result := variable;
  16586. END Procedure;
  16587. END Test.
  16588. negative: array of procedure to dereferenced open array of procedure assignment
  16589. MODULE Test;
  16590. VAR variable: ARRAY 10 OF PROCEDURE; result: POINTER TO ARRAY OF PROCEDURE;
  16591. BEGIN result^ := variable;
  16592. END Test.
  16593. negative: record to array assignment
  16594. MODULE Test;
  16595. VAR variable: RECORD END; result: ARRAY 10 OF CHAR;
  16596. BEGIN result := variable;
  16597. END Test.
  16598. negative: object to array assignment
  16599. MODULE Test;
  16600. VAR variable: OBJECT; result: ARRAY 10 OF CHAR;
  16601. BEGIN result := variable;
  16602. END Test.
  16603. negative: pointer to array assignment
  16604. MODULE Test;
  16605. VAR variable: POINTER TO RECORD END; result: ARRAY 10 OF CHAR;
  16606. BEGIN result := variable;
  16607. END Test.
  16608. negative: variable procedure to array assignment
  16609. MODULE Test;
  16610. VAR variable: PROCEDURE; result: ARRAY 10 OF CHAR;
  16611. BEGIN result := variable;
  16612. END Test.
  16613. negative: import to array assignment
  16614. MODULE Test;
  16615. IMPORT variable := Dummy; VAR result: ARRAY 10 OF CHAR;
  16616. BEGIN result := variable;
  16617. END Test.
  16618. negative: type to variable array assignment
  16619. MODULE Test;
  16620. TYPE Type = ARRAY 10 OF CHAR; VAR result: Type;
  16621. BEGIN result := Type;
  16622. END Test.
  16623. negative: variable boolean to record assignment
  16624. MODULE Test;
  16625. VAR variable: BOOLEAN; result: RECORD END;
  16626. BEGIN result := variable;
  16627. END Test.
  16628. negative: variable character to record assignment
  16629. MODULE Test;
  16630. VAR variable: CHAR; result: RECORD END;
  16631. BEGIN result := variable;
  16632. END Test.
  16633. negative: variable short integer to record assignment
  16634. MODULE Test;
  16635. VAR variable: SHORTINT; result: RECORD END;
  16636. BEGIN result := variable;
  16637. END Test.
  16638. negative: variable integer to record assignment
  16639. MODULE Test;
  16640. VAR variable: INTEGER; result: RECORD END;
  16641. BEGIN result := variable;
  16642. END Test.
  16643. negative: variable long integer to record assignment
  16644. MODULE Test;
  16645. VAR variable: LONGINT; result: RECORD END;
  16646. BEGIN result := variable;
  16647. END Test.
  16648. negative: variable huge integer to record assignment
  16649. MODULE Test;
  16650. VAR variable: HUGEINT; result: RECORD END;
  16651. BEGIN result := variable;
  16652. END Test.
  16653. negative: variable real to record assignment
  16654. MODULE Test;
  16655. VAR variable: REAL; result: RECORD END;
  16656. BEGIN result := variable;
  16657. END Test.
  16658. negative: variable long real to record assignment
  16659. MODULE Test;
  16660. VAR variable: LONGREAL; result: RECORD END;
  16661. BEGIN result := variable;
  16662. END Test.
  16663. negative: variable set to record assignment
  16664. MODULE Test;
  16665. VAR variable: LONGREAL; result: RECORD END;
  16666. BEGIN result := variable;
  16667. END Test.
  16668. negative: array to record assignment
  16669. MODULE Test;
  16670. VAR variable: ARRAY 10 OF CHAR; result: RECORD END;
  16671. BEGIN result := variable;
  16672. END Test.
  16673. positive: record to same record assignment
  16674. MODULE Test;
  16675. VAR variable, result: RECORD END;
  16676. BEGIN result := variable;
  16677. END Test.
  16678. negative: record to same temporary record assignment
  16679. MODULE Test;
  16680. TYPE Record = RECORD END;
  16681. VAR variable: Record; result: PROCEDURE (): Record;
  16682. BEGIN result () := variable;
  16683. END Test.
  16684. negative: record to different record assignment
  16685. MODULE Test;
  16686. VAR variable: RECORD END; result: RECORD END;
  16687. BEGIN result := variable;
  16688. END Test.
  16689. positive: extended record to base record assignment
  16690. MODULE Test;
  16691. TYPE Record = RECORD END;
  16692. VAR variable: RECORD (Record) END; result: Record;
  16693. BEGIN result := variable;
  16694. END Test.
  16695. negative: base record to extended record assignment
  16696. MODULE Test;
  16697. TYPE Record = RECORD END;
  16698. VAR variable: Record; result: RECORD (Record) END;
  16699. BEGIN result := variable;
  16700. END Test.
  16701. positive: record parameter to same record assignment
  16702. MODULE Test;
  16703. PROCEDURE Procedure (parameter, result: RECORD END);
  16704. BEGIN result := parameter;
  16705. END Procedure;
  16706. END Test.
  16707. negative: record parameter to different record assignment
  16708. MODULE Test;
  16709. PROCEDURE Procedure (parameter: RECORD END; result: RECORD END);
  16710. BEGIN result := parameter;
  16711. END Procedure;
  16712. END Test.
  16713. positive: extended record parameter to base record assignment
  16714. MODULE Test;
  16715. TYPE Record = RECORD END;
  16716. PROCEDURE Procedure (parameter: RECORD (Record) END; result: Record);
  16717. BEGIN result := parameter;
  16718. END Procedure;
  16719. END Test.
  16720. negative: base record parameter to extended record assignment
  16721. MODULE Test;
  16722. TYPE Record = RECORD END;
  16723. PROCEDURE Procedure (parameter: Record; result: RECORD (Record) END);
  16724. BEGIN result := parameter;
  16725. END Procedure;
  16726. END Test.
  16727. negative: object to record assignment
  16728. MODULE Test;
  16729. VAR variable: OBJECT; result: RECORD END;
  16730. BEGIN result := variable;
  16731. END Test.
  16732. negative: pointer to record assignment
  16733. MODULE Test;
  16734. TYPE Record = RECORD END;
  16735. VAR variable: POINTER TO Record; result: Record;
  16736. BEGIN result := variable;
  16737. END Test.
  16738. negative: variable procedure to record assignment
  16739. MODULE Test;
  16740. VAR variable: PROCEDURE; result: RECORD END;
  16741. BEGIN result := variable;
  16742. END Test.
  16743. negative: import to record assignment
  16744. MODULE Test;
  16745. IMPORT variable := Dummy; VAR result: RECORD END;
  16746. BEGIN result := variable;
  16747. END Test.
  16748. negative: type to variable record assignment
  16749. MODULE Test;
  16750. TYPE Type = RECORD END; VAR result: Type;
  16751. BEGIN result := Type;
  16752. END Test.
  16753. negative: variable boolean to object assignment
  16754. MODULE Test;
  16755. VAR variable: BOOLEAN; result: OBJECT END;
  16756. BEGIN result := variable;
  16757. END Test.
  16758. negative: variable character to object assignment
  16759. MODULE Test;
  16760. VAR variable: CHAR; result: OBJECT END;
  16761. BEGIN result := variable;
  16762. END Test.
  16763. negative: variable short integer to object assignment
  16764. MODULE Test;
  16765. VAR variable: SHORTINT; result: OBJECT END;
  16766. BEGIN result := variable;
  16767. END Test.
  16768. negative: variable integer to object assignment
  16769. MODULE Test;
  16770. VAR variable: INTEGER; result: OBJECT END;
  16771. BEGIN result := variable;
  16772. END Test.
  16773. negative: variable long integer to object assignment
  16774. MODULE Test;
  16775. VAR variable: LONGINT; result: OBJECT END;
  16776. BEGIN result := variable;
  16777. END Test.
  16778. negative: variable huge integer to object assignment
  16779. MODULE Test;
  16780. VAR variable: HUGEINT; result: OBJECT END;
  16781. BEGIN result := variable;
  16782. END Test.
  16783. negative: variable real to object assignment
  16784. MODULE Test;
  16785. VAR variable: REAL; result: OBJECT END;
  16786. BEGIN result := variable;
  16787. END Test.
  16788. negative: variable long real to object assignment
  16789. MODULE Test;
  16790. VAR variable: LONGREAL; result: OBJECT END;
  16791. BEGIN result := variable;
  16792. END Test.
  16793. negative: variable set to object assignment
  16794. MODULE Test;
  16795. VAR variable: LONGREAL; result: OBJECT END;
  16796. BEGIN result := variable;
  16797. END Test.
  16798. negative: array to object assignment
  16799. MODULE Test;
  16800. VAR variable: ARRAY 10 OF CHAR; result: OBJECT END;
  16801. BEGIN result := variable;
  16802. END Test.
  16803. negative: record to object assignment
  16804. MODULE Test;
  16805. VAR variable: RECORD END; result: OBJECT END;
  16806. BEGIN result := variable;
  16807. END Test.
  16808. positive: object to same object assignment
  16809. MODULE Test;
  16810. VAR variable, result: OBJECT END;
  16811. BEGIN result := variable;
  16812. END Test.
  16813. negative: obbject to same temporary object assignment
  16814. MODULE Test;
  16815. TYPE Object = OBJECT END Object;
  16816. VAR variable: Object; result: PROCEDURE (): Object;
  16817. BEGIN result () := variable;
  16818. END Test.
  16819. negative: object to different object assignment
  16820. MODULE Test;
  16821. VAR variable: OBJECT END; result: OBJECT END;
  16822. BEGIN result := variable;
  16823. END Test.
  16824. positive: extended object to base object assignment
  16825. MODULE Test;
  16826. TYPE Object = OBJECT END Object;
  16827. VAR variable: OBJECT (Object) END; result: Object;
  16828. BEGIN result := variable;
  16829. END Test.
  16830. negative: base object to extended object assignment
  16831. MODULE Test;
  16832. TYPE Object = OBJECT END Object;
  16833. VAR variable: Object; result: OBJECT (Object) END;
  16834. BEGIN result := variable;
  16835. END Test.
  16836. positive: object to basic object assignment
  16837. MODULE Test;
  16838. VAR variable: OBJECT END; result: OBJECT;
  16839. BEGIN result := variable;
  16840. END Test.
  16841. negative: basic object to object assignment
  16842. MODULE Test;
  16843. VAR variable: OBJECT; result: OBJECT END;
  16844. BEGIN result := variable;
  16845. END Test.
  16846. negative: pointer to object assignment
  16847. MODULE Test;
  16848. VAR variable: POINTER TO RECORD END; result: OBJECT END;
  16849. BEGIN result := variable;
  16850. END Test.
  16851. negative: variable procedure to object assignment
  16852. MODULE Test;
  16853. VAR variable: PROCEDURE; result: OBJECT END;
  16854. BEGIN result := variable;
  16855. END Test.
  16856. negative: import to object assignment
  16857. MODULE Test;
  16858. IMPORT variable := Dummy; VAR result: OBJECT END;
  16859. BEGIN result := variable;
  16860. END Test.
  16861. negative: variable boolean to pointer assignment
  16862. MODULE Test;
  16863. VAR variable: BOOLEAN; result: POINTER TO RECORD END;
  16864. BEGIN result := variable;
  16865. END Test.
  16866. negative: variable character to pointer assignment
  16867. MODULE Test;
  16868. VAR variable: CHAR; result: POINTER TO RECORD END;
  16869. BEGIN result := variable;
  16870. END Test.
  16871. negative: variable short integer to pointer assignment
  16872. MODULE Test;
  16873. VAR variable: SHORTINT; result: POINTER TO RECORD END;
  16874. BEGIN result := variable;
  16875. END Test.
  16876. negative: variable integer to pointer assignment
  16877. MODULE Test;
  16878. VAR variable: INTEGER; result: POINTER TO RECORD END;
  16879. BEGIN result := variable;
  16880. END Test.
  16881. negative: variable long integer to pointer assignment
  16882. MODULE Test;
  16883. VAR variable: LONGINT; result: POINTER TO RECORD END;
  16884. BEGIN result := variable;
  16885. END Test.
  16886. negative: variable huge integer to pointer assignment
  16887. MODULE Test;
  16888. VAR variable: HUGEINT; result: POINTER TO RECORD END;
  16889. BEGIN result := variable;
  16890. END Test.
  16891. negative: variable real to pointer assignment
  16892. MODULE Test;
  16893. VAR variable: REAL; result: POINTER TO RECORD END;
  16894. BEGIN result := variable;
  16895. END Test.
  16896. negative: variable long real to pointer assignment
  16897. MODULE Test;
  16898. VAR variable: LONGREAL; result: POINTER TO RECORD END;
  16899. BEGIN result := variable;
  16900. END Test.
  16901. negative: variable set to pointer assignment
  16902. MODULE Test;
  16903. VAR variable: LONGREAL; result: POINTER TO RECORD END;
  16904. BEGIN result := variable;
  16905. END Test.
  16906. negative: array to pointer assignment
  16907. MODULE Test;
  16908. VAR variable: ARRAY 10 OF CHAR; result: POINTER TO RECORD END;
  16909. BEGIN result := variable;
  16910. END Test.
  16911. negative: record to pointer assignment
  16912. MODULE Test;
  16913. VAR variable: RECORD END; result: POINTER TO RECORD END;
  16914. BEGIN result := variable;
  16915. END Test.
  16916. negative: object to pointer assignment
  16917. MODULE Test;
  16918. VAR variable: OBJECT END; result: POINTER TO RECORD END;
  16919. BEGIN result := variable;
  16920. END Test.
  16921. positive: pointer to same pointer assignment
  16922. MODULE Test;
  16923. VAR variable, result: POINTER TO RECORD END;
  16924. BEGIN result := variable;
  16925. END Test.
  16926. negative: pointer to same temporary pointer assignment
  16927. MODULE Test;
  16928. TYPE Pointer = POINTER TO RECORD END;
  16929. VAR variable: Pointer; result: PROCEDURE (): Pointer;
  16930. BEGIN result () := variable;
  16931. END Test.
  16932. positive: pointer to array of same pointer to same pointer assignment
  16933. MODULE Test;
  16934. TYPE Pointer = POINTER TO ARRAY 10 OF Pointer;
  16935. VAR variable, result: Pointer;
  16936. BEGIN result := variable;
  16937. END Test.
  16938. positive: pointers to array of same pointer to same pointer assignment
  16939. MODULE Test;
  16940. TYPE A = POINTER TO ARRAY 10 OF B;
  16941. TYPE B = POINTER TO ARRAY 10 OF C;
  16942. TYPE C = POINTER TO ARRAY 10 OF D;
  16943. TYPE D = POINTER TO ARRAY 10 OF A;
  16944. VAR variable: A; result: B;
  16945. BEGIN result := variable;
  16946. END Test.
  16947. positive: pointer to open array of same pointer to same pointer assignment
  16948. MODULE Test;
  16949. TYPE Pointer = POINTER TO ARRAY OF Pointer;
  16950. VAR variable, result: Pointer;
  16951. BEGIN result := variable;
  16952. END Test.
  16953. positive: pointers to open array of same pointer to same pointer assignment
  16954. MODULE Test;
  16955. TYPE A = POINTER TO ARRAY 10 OF B;
  16956. TYPE B = POINTER TO ARRAY 10 OF C;
  16957. TYPE C = POINTER TO ARRAY 10 OF D;
  16958. TYPE D = POINTER TO ARRAY 10 OF A;
  16959. VAR variable: A; result: B;
  16960. BEGIN result := variable;
  16961. END Test.
  16962. positive: pointer to different pointer assignment
  16963. MODULE Test;
  16964. TYPE Record = RECORD END;
  16965. VAR variable: POINTER TO Record; result: POINTER TO Record;
  16966. BEGIN result := variable;
  16967. END Test.
  16968. positive: extended pointer to base pointer assignment
  16969. MODULE Test;
  16970. TYPE Record = RECORD END;
  16971. VAR variable: POINTER TO RECORD (Record) END; result: POINTER TO Record;
  16972. BEGIN result := variable;
  16973. END Test.
  16974. negative: base pointer to extended pointer assignment
  16975. MODULE Test;
  16976. TYPE Record = RECORD END;
  16977. VAR variable: POINTER TO Record; result: POINTER TO RECORD (Record) END;
  16978. BEGIN result := variable;
  16979. END Test.
  16980. negative: pointer to array to pointer to record assignment
  16981. MODULE Test;
  16982. VAR variable: POINTER TO ARRAY 10 OF CHAR; result: POINTER TO RECORD END;
  16983. BEGIN result := variable;
  16984. END Test.
  16985. negative: pointer to record to pointer to array assignment
  16986. MODULE Test;
  16987. VAR variable: POINTER TO RECORD END; result: POINTER TO ARRAY 10 OF CHAR;
  16988. BEGIN result := variable;
  16989. END Test.
  16990. positive: pointer to array to pointer to array assignment
  16991. MODULE Test;
  16992. VAR variable, result: POINTER TO ARRAY 10 OF CHAR;
  16993. BEGIN result := variable;
  16994. END Test.
  16995. negative: pointer to array to temporary pointer to array assignment
  16996. MODULE Test;
  16997. TYPE Pointer = POINTER TO ARRAY 10 OF CHAR;
  16998. VAR variable: Pointer; result: PROCEDURE (): Pointer;
  16999. BEGIN result () := variable;
  17000. END Test.
  17001. negative: pointer to array to pointer to longer array assignment
  17002. MODULE Test;
  17003. VAR variable: POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 20 OF CHAR;
  17004. BEGIN result := variable;
  17005. END Test.
  17006. negative: pointer to array to pointer to shorter array assignment
  17007. MODULE Test;
  17008. VAR variable: POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 5 OF CHAR;
  17009. BEGIN result := variable;
  17010. END Test.
  17011. negative: variable procedure to pointer assignment
  17012. MODULE Test;
  17013. VAR variable: PROCEDURE; result: POINTER TO RECORD END;
  17014. BEGIN result := variable;
  17015. END Test.
  17016. negative: import to pointer assignment
  17017. MODULE Test;
  17018. IMPORT variable := Dummy; VAR result: POINTER TO RECORD END;
  17019. BEGIN result := variable;
  17020. END Test.
  17021. negative: type to variable pointer assignment
  17022. MODULE Test;
  17023. TYPE Type = POINTER TO RECORD END; VAR result: Type;
  17024. BEGIN result := Type;
  17025. END Test.
  17026. negative: variable boolean to procedure assignment
  17027. MODULE Test;
  17028. VAR variable: BOOLEAN; result: PROCEDURE;
  17029. BEGIN result := variable;
  17030. END Test.
  17031. negative: variable character to procedure assignment
  17032. MODULE Test;
  17033. VAR variable: CHAR; result: PROCEDURE;
  17034. BEGIN result := variable;
  17035. END Test.
  17036. negative: variable short integer to procedure assignment
  17037. MODULE Test;
  17038. VAR variable: SHORTINT; result: PROCEDURE;
  17039. BEGIN result := variable;
  17040. END Test.
  17041. negative: variable integer to procedure assignment
  17042. MODULE Test;
  17043. VAR variable: INTEGER; result: PROCEDURE;
  17044. BEGIN result := variable;
  17045. END Test.
  17046. negative: variable long integer to procedure assignment
  17047. MODULE Test;
  17048. VAR variable: LONGINT; result: PROCEDURE;
  17049. BEGIN result := variable;
  17050. END Test.
  17051. negative: variable huge integer to procedure assignment
  17052. MODULE Test;
  17053. VAR variable: HUGEINT; result: PROCEDURE;
  17054. BEGIN result := variable;
  17055. END Test.
  17056. negative: variable real to procedure assignment
  17057. MODULE Test;
  17058. VAR variable: REAL; result: PROCEDURE;
  17059. BEGIN result := variable;
  17060. END Test.
  17061. negative: variable long real to procedure assignment
  17062. MODULE Test;
  17063. VAR variable: LONGREAL; result: PROCEDURE;
  17064. BEGIN result := variable;
  17065. END Test.
  17066. negative: variable set to procedure assignment
  17067. MODULE Test;
  17068. VAR variable: LONGREAL; result: PROCEDURE;
  17069. BEGIN result := variable;
  17070. END Test.
  17071. negative: array to procedure assignment
  17072. MODULE Test;
  17073. VAR variable: ARRAY 10 OF CHAR; result: PROCEDURE;
  17074. BEGIN result := variable;
  17075. END Test.
  17076. negative: record to procedure assignment
  17077. MODULE Test;
  17078. VAR variable: RECORD END; result: PROCEDURE;
  17079. BEGIN result := variable;
  17080. END Test.
  17081. negative: object to procedure assignment
  17082. MODULE Test;
  17083. VAR variable: OBJECT END; result: PROCEDURE;
  17084. BEGIN result := variable;
  17085. END Test.
  17086. negative: pointer to procedure assignment
  17087. MODULE Test;
  17088. VAR variable: POINTER TO RECORD END; result: PROCEDURE;
  17089. BEGIN result := variable;
  17090. END Test.
  17091. positive: variable procedure to variable procedure assignment
  17092. MODULE Test;
  17093. VAR variable, result: PROCEDURE;
  17094. BEGIN result := variable;
  17095. END Test.
  17096. negative: variable procedure to temporary procedure assignment
  17097. MODULE Test;
  17098. VAR variable: PROCEDURE; result: PROCEDURE (): PROCEDURE;
  17099. BEGIN result () := variable;
  17100. END Test.
  17101. positive: procedure to variable procedure assignment
  17102. MODULE Test;
  17103. VAR result: PROCEDURE;
  17104. PROCEDURE variable; END variable;
  17105. BEGIN result := variable;
  17106. END Test.
  17107. negative: variable procedure to procedure assignment
  17108. MODULE Test;
  17109. VAR variable: PROCEDURE;
  17110. PROCEDURE result; END result;
  17111. BEGIN result := variable;
  17112. END Test.
  17113. negative: procedure to procedure assignment
  17114. MODULE Test;
  17115. PROCEDURE variable; END variable;
  17116. PROCEDURE result; END result;
  17117. BEGIN result := variable;
  17118. END Test.
  17119. positive: variable procedure to variable procedure with same parameter assignment
  17120. MODULE Test;
  17121. VAR variable: PROCEDURE (integer: INTEGER); result: PROCEDURE (integer: INTEGER);
  17122. BEGIN result := variable;
  17123. END Test.
  17124. positive: procedure to variable procedure with same parameter assignment
  17125. MODULE Test;
  17126. VAR result: PROCEDURE (integer: INTEGER);
  17127. PROCEDURE variable (integer: INTEGER); END variable;
  17128. BEGIN result := variable;
  17129. END Test.
  17130. negative: variable procedure to variable procedure with compatible parameter assignment
  17131. MODULE Test;
  17132. VAR variable: PROCEDURE (object: OBJECT END); result: PROCEDURE (object: OBJECT);
  17133. BEGIN result := variable;
  17134. END Test.
  17135. negative: procedure to variable procedure with compatible parameter assignment
  17136. MODULE Test;
  17137. VAR result: PROCEDURE (object: OBJECT);
  17138. PROCEDURE variable (object: OBJECT END); END variable;
  17139. BEGIN result := variable;
  17140. END Test.
  17141. negative: variable procedure to variable procedure with incompatible parameter assignment
  17142. MODULE Test;
  17143. VAR variable: PROCEDURE (object: OBJECT END); result: PROCEDURE (object: OBJECT END);
  17144. BEGIN result := variable;
  17145. END Test.
  17146. negative: procedure to variable procedure with incompatible parameter assignment
  17147. MODULE Test;
  17148. VAR result: PROCEDURE (object: OBJECT END);
  17149. PROCEDURE variable (object: OBJECT END); END variable;
  17150. BEGIN result := variable;
  17151. END Test.
  17152. positive: variable procedure to variable procedure with same return type assignment
  17153. MODULE Test;
  17154. VAR variable: PROCEDURE (): INTEGER; result: PROCEDURE (): INTEGER;
  17155. BEGIN result := variable;
  17156. END Test.
  17157. positive: procedure to variable procedure with same return type assignment
  17158. MODULE Test;
  17159. VAR result: PROCEDURE (): INTEGER;
  17160. PROCEDURE variable (): INTEGER; END variable;
  17161. BEGIN result := variable;
  17162. END Test.
  17163. negative: variable procedure to variable procedure with compatible return type assignment
  17164. MODULE Test;
  17165. VAR variable: PROCEDURE (): OBJECT END; result: PROCEDURE (): OBJECT;
  17166. BEGIN result := variable;
  17167. END Test.
  17168. negative: procedure to variable procedure with compatible return type assignment
  17169. MODULE Test;
  17170. VAR result: PROCEDURE (): OBJECT;
  17171. PROCEDURE variable (): OBJECT END; END variable;
  17172. BEGIN result := variable;
  17173. END Test.
  17174. negative: variable procedure to variable procedure with incompatible return type assignment
  17175. MODULE Test;
  17176. VAR variable: PROCEDURE (): OBJECT END; result: PROCEDURE (): OBJECT END;
  17177. BEGIN result := variable;
  17178. END Test.
  17179. negative: procedure to variable procedure with incompatible return type assignment
  17180. MODULE Test;
  17181. VAR result: PROCEDURE (): OBJECT END;
  17182. PROCEDURE variable (): OBJECT END; END variable;
  17183. BEGIN result := variable;
  17184. END Test.
  17185. positive: variable procedure to variable procedure with parameter of same procedure type assignment
  17186. MODULE Test;
  17187. TYPE Procedure = PROCEDURE (procedure: Procedure);
  17188. VAR variable: Procedure; result: Procedure;
  17189. BEGIN result := variable;
  17190. END Test.
  17191. positive: procedure to variable procedure with parameter of same procedure type assignment
  17192. MODULE Test;
  17193. TYPE Procedure = PROCEDURE (procedure: Procedure);
  17194. VAR result: Procedure;
  17195. PROCEDURE variable (procedure: Procedure); END variable;
  17196. BEGIN result := variable;
  17197. END Test.
  17198. positive: variable procedure to variable procedure with parameter of same procedure types assignment
  17199. MODULE Test;
  17200. TYPE A = PROCEDURE (b: B);
  17201. TYPE B = PROCEDURE (c: C);
  17202. TYPE C = PROCEDURE (d: D);
  17203. TYPE D = PROCEDURE (a: A);
  17204. VAR variable: A; result: B;
  17205. BEGIN result := variable;
  17206. END Test.
  17207. positive: procedure to variable procedure with parameter of same procedure types assignment
  17208. MODULE Test;
  17209. TYPE A = PROCEDURE (b: B);
  17210. TYPE B = PROCEDURE (c: C);
  17211. TYPE C = PROCEDURE (d: D);
  17212. TYPE D = PROCEDURE (a: A);
  17213. VAR result: A;
  17214. PROCEDURE variable (procedure: A); END variable;
  17215. BEGIN result := variable;
  17216. END Test.
  17217. positive: variable procedure to variable procedure with return of same procedure type assignment
  17218. MODULE Test;
  17219. TYPE Procedure = PROCEDURE (): Procedure;
  17220. VAR variable: Procedure; result: Procedure;
  17221. BEGIN result := variable;
  17222. END Test.
  17223. positive: procedure to variable procedure with return of same procedure type assignment
  17224. MODULE Test;
  17225. TYPE Procedure = PROCEDURE (): Procedure;
  17226. VAR result: Procedure;
  17227. PROCEDURE variable (): Procedure; END variable;
  17228. BEGIN result := variable;
  17229. END Test.
  17230. positive: variable procedure to variable procedure with return of same procedure types assignment
  17231. MODULE Test;
  17232. TYPE A = PROCEDURE (): B;
  17233. TYPE B = PROCEDURE (): C;
  17234. TYPE C = PROCEDURE (): D;
  17235. TYPE D = PROCEDURE (): A;
  17236. VAR variable: A; result: B;
  17237. BEGIN result := variable;
  17238. END Test.
  17239. positive: procedure to variable procedure with return of same procedure types assignment
  17240. MODULE Test;
  17241. TYPE A = PROCEDURE (): B;
  17242. TYPE B = PROCEDURE (): C;
  17243. TYPE C = PROCEDURE (): D;
  17244. TYPE D = PROCEDURE (): A;
  17245. VAR result: A;
  17246. PROCEDURE variable (): A; END variable;
  17247. BEGIN result := variable;
  17248. END Test.
  17249. positive: global procedure to global variable procedure assignment
  17250. MODULE Test;
  17251. VAR result: PROCEDURE;
  17252. PROCEDURE variable; END variable;
  17253. BEGIN result := variable;
  17254. END Test.
  17255. negative: nested procedure to global variable procedure assignment
  17256. MODULE Test;
  17257. VAR result: PROCEDURE;
  17258. PROCEDURE Procedure;
  17259. PROCEDURE variable; END variable;
  17260. BEGIN result := variable;
  17261. END Procedure;
  17262. END Test.
  17263. positive: global procedure to nested variable procedure assignment
  17264. MODULE Test;
  17265. PROCEDURE variable; END variable;
  17266. PROCEDURE Procedure;
  17267. VAR result: PROCEDURE;
  17268. BEGIN result := variable;
  17269. END Procedure;
  17270. END Test.
  17271. negative: nested procedure to nested variable procedure assignment
  17272. MODULE Test;
  17273. PROCEDURE Procedure;
  17274. VAR result: PROCEDURE;
  17275. PROCEDURE variable; END variable;
  17276. BEGIN result := variable;
  17277. END Procedure;
  17278. END Test.
  17279. negative: procedure in object to global variable procedure assignment
  17280. MODULE Test;
  17281. VAR result: PROCEDURE;
  17282. VAR object: OBJECT PROCEDURE variable; END variable; END;
  17283. BEGIN result := object.variable;
  17284. END Test.
  17285. negative: nested procedure in object to global variable procedure assignment
  17286. MODULE Test;
  17287. VAR object: OBJECT VAR result: PROCEDURE; PROCEDURE Procedure; PROCEDURE variable; END variable; BEGIN result := variable; END Procedure; END;
  17288. END Test.
  17289. negative: procedure in object to nested variable procedure assignment
  17290. MODULE Test;
  17291. VAR result: PROCEDURE;
  17292. VAR object: OBJECT PROCEDURE variable; END variable; END;
  17293. BEGIN result := object.variable;
  17294. END Test.
  17295. negative: nested procedure in object to nested variable procedure assignment
  17296. MODULE Test;
  17297. VAR object: OBJECT VAR result: PROCEDURE; PROCEDURE Procedure; PROCEDURE variable; END variable; BEGIN result := variable; END Procedure; END;
  17298. END Test.
  17299. negative: import to procedure assignment
  17300. MODULE Test;
  17301. IMPORT variable := Dummy; VAR result: PROCEDURE;
  17302. BEGIN result := variable;
  17303. END Test.
  17304. negative: type to variable procedure assignment
  17305. MODULE Test;
  17306. TYPE Type = PROCEDURE; VAR result: Type;
  17307. BEGIN result := Type;
  17308. END Test.
  17309. negative: variable boolean to import assignment
  17310. MODULE Test;
  17311. IMPORT result := Dummy;
  17312. VAR variable: BOOLEAN;
  17313. BEGIN result := variable;
  17314. END Test.
  17315. negative: variable character to import assignment
  17316. MODULE Test;
  17317. IMPORT result := Dummy;
  17318. VAR variable: CHAR;
  17319. BEGIN result := variable;
  17320. END Test.
  17321. negative: variable short integer to import assignment
  17322. MODULE Test;
  17323. IMPORT result := Dummy;
  17324. VAR variable: SHORTINT;
  17325. BEGIN result := variable;
  17326. END Test.
  17327. negative: variable integer to import assignment
  17328. MODULE Test;
  17329. IMPORT result := Dummy;
  17330. VAR variable: INTEGER;
  17331. BEGIN result := variable;
  17332. END Test.
  17333. negative: variable long integer to import assignment
  17334. MODULE Test;
  17335. IMPORT result := Dummy;
  17336. VAR variable: LONGINT;
  17337. BEGIN result := variable;
  17338. END Test.
  17339. negative: variable huge integer to import assignment
  17340. MODULE Test;
  17341. IMPORT result := Dummy;
  17342. VAR variable: HUGEINT;
  17343. BEGIN result := variable;
  17344. END Test.
  17345. negative: variable real to import assignment
  17346. MODULE Test;
  17347. IMPORT result := Dummy;
  17348. VAR variable: REAL;
  17349. BEGIN result := variable;
  17350. END Test.
  17351. negative: variable long real to import assignment
  17352. MODULE Test;
  17353. IMPORT result := Dummy;
  17354. VAR variable: LONGREAL;
  17355. BEGIN result := variable;
  17356. END Test.
  17357. negative: variable set to import assignment
  17358. MODULE Test;
  17359. IMPORT result := Dummy;
  17360. VAR variable: LONGREAL;
  17361. BEGIN result := variable;
  17362. END Test.
  17363. negative: array to import assignment
  17364. MODULE Test;
  17365. IMPORT result := Dummy;
  17366. VAR variable: ARRAY 10 OF CHAR;
  17367. BEGIN result := variable;
  17368. END Test.
  17369. negative: record to import assignment
  17370. MODULE Test;
  17371. IMPORT result := Dummy;
  17372. VAR variable: RECORD END;
  17373. BEGIN result := variable;
  17374. END Test.
  17375. negative: object to import assignment
  17376. MODULE Test;
  17377. IMPORT result := Dummy;
  17378. VAR variable: OBJECT END;
  17379. BEGIN result := variable;
  17380. END Test.
  17381. negative: pointer to import assignment
  17382. MODULE Test;
  17383. IMPORT result := Dummy;
  17384. VAR variable: POINTER TO RECORD END;
  17385. BEGIN result := variable;
  17386. END Test.
  17387. negative: variable procedure to import assignment
  17388. MODULE Test;
  17389. IMPORT result := Dummy;
  17390. VAR variable: PROCEDURE;
  17391. BEGIN result := variable;
  17392. END Test.
  17393. negative: import to import assignment
  17394. MODULE Test;
  17395. IMPORT variable := Dummy, result := Dummy;
  17396. BEGIN result := variable;
  17397. END Test.
  17398. negative: type to import assignment
  17399. MODULE Test;
  17400. IMPORT result := Dummy; TYPE Type = BOOLEAN;
  17401. BEGIN result := Type;
  17402. END Test.
  17403. negative: variable boolean to type assignment
  17404. MODULE Test;
  17405. TYPE result = BOOLEAN; VAR variable: result;
  17406. BEGIN result := variable;
  17407. END Test.
  17408. negative: variable character to type assignment
  17409. MODULE Test;
  17410. TYPE result = CHAR; VAR variable: result;
  17411. BEGIN result := variable;
  17412. END Test.
  17413. negative: variable short integer to type assignment
  17414. MODULE Test;
  17415. TYPE result = SHORTINT; VAR variable: result;
  17416. BEGIN result := variable;
  17417. END Test.
  17418. negative: variable integer to type assignment
  17419. MODULE Test;
  17420. TYPE result = INTEGER; VAR variable: result;
  17421. BEGIN result := variable;
  17422. END Test.
  17423. negative: variable long integer to type assignment
  17424. MODULE Test;
  17425. TYPE result = LONGINT; VAR variable: result;
  17426. BEGIN result := variable;
  17427. END Test.
  17428. negative: variable huge integer to type assignment
  17429. MODULE Test;
  17430. TYPE result = HUGEINT; VAR variable: result;
  17431. BEGIN result := variable;
  17432. END Test.
  17433. negative: variable real to type assignment
  17434. MODULE Test;
  17435. TYPE result = REAL; VAR variable: result;
  17436. BEGIN result := variable;
  17437. END Test.
  17438. negative: variable long real to type assignment
  17439. MODULE Test;
  17440. TYPE result = LONGREAL; VAR variable: result;
  17441. BEGIN result := variable;
  17442. END Test.
  17443. negative: variable set to type assignment
  17444. MODULE Test;
  17445. TYPE result = SET; VAR variable: result;
  17446. BEGIN result := variable;
  17447. END Test.
  17448. negative: array to type assignment
  17449. MODULE Test;
  17450. TYPE result = ARRAY 10 OF CHAR; VAR variable: result;
  17451. BEGIN result := variable;
  17452. END Test.
  17453. negative: record to type assignment
  17454. MODULE Test;
  17455. TYPE result = RECORD END; VAR variable: result;
  17456. BEGIN result := variable;
  17457. END Test.
  17458. negative: object to type assignment
  17459. MODULE Test;
  17460. TYPE result = OBJECT END result; VAR variable: result;
  17461. BEGIN result := variable;
  17462. END Test.
  17463. negative: pointer to type assignment
  17464. MODULE Test;
  17465. TYPE result = POINTER TO RECORD END; VAR variable: result;
  17466. BEGIN result := variable;
  17467. END Test.
  17468. negative: variable procedure to type assignment
  17469. MODULE Test;
  17470. TYPE result = PROCEDURE; VAR variable: result;
  17471. BEGIN result := variable;
  17472. END Test.
  17473. negative: import to type assignment
  17474. MODULE Test;
  17475. IMPORT variable := Dummy; TYPE result = BOOLEAN;
  17476. BEGIN result := variable;
  17477. END Test.
  17478. # variable booleans
  17479. negative: arithmetic negation on variable boolean
  17480. MODULE Test;
  17481. VAR boolean, result: BOOLEAN;
  17482. BEGIN result := -boolean;
  17483. END Test.
  17484. positive: logical negation on variable boolean
  17485. MODULE Test;
  17486. VAR boolean, result: BOOLEAN;
  17487. BEGIN result := ~boolean;
  17488. END Test.
  17489. positive: multiple logical negations on variable boolean
  17490. MODULE Test;
  17491. VAR boolean, result: BOOLEAN;
  17492. BEGIN result := ~~~~boolean;
  17493. END Test.
  17494. negative: dereferencing variable boolean
  17495. MODULE Test;
  17496. VAR boolean, result: BOOLEAN;
  17497. BEGIN result := boolean^;
  17498. END Test.
  17499. negative: addition on variable booleans
  17500. MODULE Test;
  17501. VAR boolean, result: BOOLEAN;
  17502. BEGIN result := boolean + boolean;
  17503. END Test.
  17504. negative: subtraction on variable booleans
  17505. MODULE Test;
  17506. VAR boolean, result: BOOLEAN;
  17507. BEGIN result := boolean - boolean
  17508. END Test.
  17509. negative: multiplication on variable booleans
  17510. MODULE Test;
  17511. VAR boolean, result: BOOLEAN;
  17512. BEGIN result := boolean * boolean
  17513. END Test.
  17514. negative: integer division on variable booleans
  17515. MODULE Test;
  17516. VAR boolean: BOOLEAN; result: INTEGER;
  17517. BEGIN result := boolean DIV boolean
  17518. END Test.
  17519. negative: real division on variable booleans
  17520. MODULE Test;
  17521. VAR boolean: BOOLEAN; result: REAL;
  17522. BEGIN result := boolean / boolean
  17523. END Test.
  17524. negative: modulo on variable booleans
  17525. MODULE Test;
  17526. VAR boolean: BOOLEAN; result: INTEGER;
  17527. BEGIN result := boolean MOD boolean
  17528. END Test.
  17529. positive: equal relation on variable booleans
  17530. MODULE Test;
  17531. VAR boolean, result: BOOLEAN;
  17532. BEGIN result := boolean = boolean
  17533. END Test.
  17534. positive: unequal relation on variable booleans
  17535. MODULE Test;
  17536. VAR boolean, result: BOOLEAN;
  17537. BEGIN result := boolean # boolean
  17538. END Test.
  17539. negative: less relation on variable booleans
  17540. MODULE Test;
  17541. VAR boolean, result: BOOLEAN;
  17542. BEGIN result := boolean < boolean
  17543. END Test.
  17544. negative: less or equal relation on variable booleans
  17545. MODULE Test;
  17546. VAR boolean, result: BOOLEAN;
  17547. BEGIN result := boolean <= boolean
  17548. END Test.
  17549. negative: greater relation on variable booleans
  17550. MODULE Test;
  17551. VAR boolean, result: BOOLEAN;
  17552. BEGIN result := boolean > boolean
  17553. END Test.
  17554. negative: greater or equal relation on variable booleans
  17555. MODULE Test;
  17556. VAR boolean, result: BOOLEAN;
  17557. BEGIN result := boolean >= boolean
  17558. END Test.
  17559. negative: set membership on variable booleans
  17560. MODULE Test;
  17561. VAR boolean, result: BOOLEAN;
  17562. BEGIN result := boolean IN boolean
  17563. END Test.
  17564. negative: type test on variable booleans
  17565. MODULE Test;
  17566. VAR boolean, result: BOOLEAN;
  17567. BEGIN result := boolean IS boolean
  17568. END Test.
  17569. negative: type test on variable boolean
  17570. MODULE Test;
  17571. VAR boolean, result: BOOLEAN;
  17572. BEGIN result := boolean IS BOOLEAN
  17573. END Test.
  17574. negative: type test on boolean type
  17575. MODULE Test;
  17576. TYPE Type = BOOLEAN;
  17577. VAR boolean: Type; result: BOOLEAN;
  17578. BEGIN result := boolean IS Type
  17579. END Test.
  17580. negative: type guard on variable booleans
  17581. MODULE Test;
  17582. VAR boolean, result: BOOLEAN;
  17583. BEGIN result := boolean(boolean)
  17584. END Test.
  17585. negative: type guard on variable boolean
  17586. MODULE Test;
  17587. VAR boolean, result: BOOLEAN;
  17588. BEGIN result := boolean(BOOLEAN)
  17589. END Test.
  17590. negative: type guard on boolean type
  17591. MODULE Test;
  17592. TYPE Type = BOOLEAN;
  17593. VAR boolean, result: Type;
  17594. BEGIN result := boolean(Type)
  17595. END Test.
  17596. positive: logical and on variable booleans
  17597. MODULE Test;
  17598. VAR boolean, result: BOOLEAN;
  17599. BEGIN result := boolean & boolean
  17600. END Test.
  17601. positive: logical or on variable booleans
  17602. MODULE Test;
  17603. VAR boolean, result: BOOLEAN;
  17604. BEGIN result := boolean OR boolean
  17605. END Test.
  17606. negative: ordinal value of variable boolean
  17607. MODULE Test;
  17608. VAR boolean: BOOLEAN; result: INTEGER;
  17609. BEGIN result := ORD (boolean)
  17610. END Test.
  17611. negative: character value of variable boolean
  17612. MODULE Test;
  17613. VAR boolean: BOOLEAN; result: CHAR;
  17614. BEGIN result := CHR (boolean)
  17615. END Test.
  17616. negative: absolute value of variable boolean
  17617. MODULE Test;
  17618. VAR boolean, result: BOOLEAN;
  17619. BEGIN result := ABS (boolean)
  17620. END Test.
  17621. negative: odd test on variable boolean
  17622. MODULE Test;
  17623. VAR boolean, result: BOOLEAN;
  17624. BEGIN result := ODD (boolean)
  17625. END Test.
  17626. negative: capital letter of variable boolean
  17627. MODULE Test;
  17628. VAR boolean: BOOLEAN; result: CHAR;
  17629. BEGIN result := CAP (boolean)
  17630. END Test.
  17631. negative: arithmetic shift of variable booleans
  17632. MODULE Test;
  17633. VAR boolean, result: BOOLEAN;
  17634. BEGIN result := ASH (boolean, boolean)
  17635. END Test.
  17636. negative: short on variable boolean
  17637. MODULE Test;
  17638. VAR boolean, result: BOOLEAN;
  17639. BEGIN result := SHORT (boolean)
  17640. END Test.
  17641. negative: long on variable boolean
  17642. MODULE Test;
  17643. VAR boolean, result: BOOLEAN;
  17644. BEGIN result := LONG (boolean)
  17645. END Test.
  17646. negative: entier on variable boolean
  17647. MODULE Test;
  17648. VAR boolean, result: BOOLEAN;
  17649. BEGIN result := ENTIER (boolean)
  17650. END Test.
  17651. negative: unary length of variable boolean
  17652. MODULE Test;
  17653. VAR boolean: BOOLEAN; result: LONGINT;
  17654. BEGIN result := LEN (boolean)
  17655. END Test.
  17656. negative: binary length of variable boolean
  17657. MODULE Test;
  17658. VAR boolean: BOOLEAN; result: LONGINT;
  17659. BEGIN result := LEN (boolean, 0)
  17660. END Test.
  17661. negative: indexing variable boolean
  17662. MODULE Test;
  17663. VAR boolean: BOOLEAN; result: CHAR;
  17664. BEGIN result := boolean[0]
  17665. END Test.
  17666. negative: variable boolean as index
  17667. MODULE Test;
  17668. VAR array: ARRAY 10 OF CHAR; result: CHAR; boolean: BOOLEAN;
  17669. BEGIN result := array[boolean]
  17670. END Test.
  17671. negative: member selection on variable boolean
  17672. MODULE Test;
  17673. VAR boolean, result: BOOLEAN;
  17674. BEGIN result := boolean.member
  17675. END Test.
  17676. negative: calling variable boolean
  17677. MODULE Test;
  17678. VAR boolean: BOOLEAN;
  17679. BEGIN boolean
  17680. END Test.
  17681. # variable characters
  17682. negative: arithmetic negation on variable character
  17683. MODULE Test;
  17684. VAR character, result: CHAR;
  17685. BEGIN result := -character;
  17686. END Test.
  17687. negative: logical negation on variable character
  17688. MODULE Test;
  17689. VAR character: CHAR; result: BOOLEAN;
  17690. BEGIN result := ~character;
  17691. END Test.
  17692. negative: dereferencing variable character
  17693. MODULE Test;
  17694. VAR character, result: CHAR;
  17695. BEGIN result := character^;
  17696. END Test.
  17697. negative: addition on variable characters
  17698. MODULE Test;
  17699. VAR character, result: CHAR;
  17700. BEGIN result := character + character;
  17701. END Test.
  17702. negative: subtraction on variable characters
  17703. MODULE Test;
  17704. VAR character, result: CHAR;
  17705. BEGIN result := character - character
  17706. END Test.
  17707. negative: multiplication on variable characters
  17708. MODULE Test;
  17709. VAR character, result: CHAR;
  17710. BEGIN result := character * character
  17711. END Test.
  17712. negative: integer division on variable characters
  17713. MODULE Test;
  17714. VAR character: CHAR; result: INTEGER;
  17715. BEGIN result := character DIV character
  17716. END Test.
  17717. negative: real division on variable characters
  17718. MODULE Test;
  17719. VAR character: CHAR; result: REAL;
  17720. BEGIN result := character / character
  17721. END Test.
  17722. negative: modulo on variable characters
  17723. MODULE Test;
  17724. VAR character: CHAR; result: INTEGER;
  17725. BEGIN result := character MOD character
  17726. END Test.
  17727. positive: equal relation on variable characters
  17728. MODULE Test;
  17729. VAR character: CHAR; result: BOOLEAN;
  17730. BEGIN result := character = character
  17731. END Test.
  17732. positive: unequal relation on variable characters
  17733. MODULE Test;
  17734. VAR character: CHAR; result: BOOLEAN;
  17735. BEGIN result := character # character
  17736. END Test.
  17737. positive: less relation on variable characters
  17738. MODULE Test;
  17739. VAR character: CHAR; result: BOOLEAN;
  17740. BEGIN result := character < character
  17741. END Test.
  17742. positive: less or equal relation on variable characters
  17743. MODULE Test;
  17744. VAR character: CHAR; result: BOOLEAN;
  17745. BEGIN result := character <= character
  17746. END Test.
  17747. positive: greater relation on variable characters
  17748. MODULE Test;
  17749. VAR character: CHAR; result: BOOLEAN;
  17750. BEGIN result := character > character
  17751. END Test.
  17752. positive: greater or equal relation on variable characters
  17753. MODULE Test;
  17754. VAR character: CHAR; result: BOOLEAN;
  17755. BEGIN result := character >= character
  17756. END Test.
  17757. negative: set membership on variable characters
  17758. MODULE Test;
  17759. VAR character: CHAR; result: BOOLEAN;
  17760. BEGIN result := character IN character
  17761. END Test.
  17762. negative: type test on variable characters
  17763. MODULE Test;
  17764. VAR character: CHAR; result: BOOLEAN;
  17765. BEGIN result := character IS character
  17766. END Test.
  17767. negative: type test on variable character
  17768. MODULE Test;
  17769. VAR character: CHAR; result: BOOLEAN;
  17770. BEGIN result := character IS CHAR
  17771. END Test.
  17772. negative: type test on character type
  17773. MODULE Test;
  17774. TYPE Type = CHAR;
  17775. VAR character: Type; result: BOOLEAN;
  17776. BEGIN result := character IS Type
  17777. END Test.
  17778. negative: type guard on variable characters
  17779. MODULE Test;
  17780. VAR character, result: CHAR;
  17781. BEGIN result := character(character)
  17782. END Test.
  17783. negative: type guard on variable character
  17784. MODULE Test;
  17785. VAR character, result: CHAR;
  17786. BEGIN result := character(CHAR)
  17787. END Test.
  17788. negative: type guard on character type
  17789. MODULE Test;
  17790. TYPE Type = CHAR;
  17791. VAR character, result: Type;
  17792. BEGIN result := character(Type)
  17793. END Test.
  17794. negative: logical and on variable characters
  17795. MODULE Test;
  17796. VAR character: CHAR; result: BOOLEAN;
  17797. BEGIN result := character & character
  17798. END Test.
  17799. negative: logical or on variable characters
  17800. MODULE Test;
  17801. VAR character: CHAR; result: BOOLEAN;
  17802. BEGIN result := character OR character
  17803. END Test.
  17804. positive: ordinal value of variable character
  17805. MODULE Test;
  17806. VAR character: CHAR; result: INTEGER;
  17807. BEGIN result := ORD (character)
  17808. END Test.
  17809. negative: character value of variable character
  17810. MODULE Test;
  17811. VAR character, result: CHAR;
  17812. BEGIN result := CHR (character)
  17813. END Test.
  17814. negative: absolute value of variable character
  17815. MODULE Test;
  17816. VAR character, result: CHAR;
  17817. BEGIN result := ABS (character)
  17818. END Test.
  17819. negative: odd test on variable character
  17820. MODULE Test;
  17821. VAR character: CHAR; result: BOOLEAN;
  17822. BEGIN result := ODD (character)
  17823. END Test.
  17824. positive: capital letter of variable character
  17825. MODULE Test;
  17826. VAR character, result: CHAR;
  17827. BEGIN result := CAP (character)
  17828. END Test.
  17829. negative: arithmetic shift of variable characters
  17830. MODULE Test;
  17831. VAR character, result: CHAR;
  17832. BEGIN result := ASH (character, character)
  17833. END Test.
  17834. negative: short on variable character
  17835. MODULE Test;
  17836. VAR character, result: CHAR;
  17837. BEGIN result := SHORT (character)
  17838. END Test.
  17839. negative: long on variable character
  17840. MODULE Test;
  17841. VAR character, result: CHAR;
  17842. BEGIN result := LONG (character)
  17843. END Test.
  17844. negative: entier on variable character
  17845. MODULE Test;
  17846. VAR character, result: CHAR;
  17847. BEGIN result := ENTIER (character)
  17848. END Test.
  17849. negative: unary length of variable character
  17850. MODULE Test;
  17851. VAR character: CHAR; result: LONGINT;
  17852. BEGIN result := LEN (character)
  17853. END Test.
  17854. negative: binary length of variable character
  17855. MODULE Test;
  17856. VAR character: CHAR; result: LONGINT;
  17857. BEGIN result := LEN (character, 0)
  17858. END Test.
  17859. negative: indexing variable character
  17860. MODULE Test;
  17861. VAR character, result: CHAR;
  17862. BEGIN result := character[0]
  17863. END Test.
  17864. negative: variable character as index
  17865. MODULE Test;
  17866. VAR array: ARRAY 10 OF CHAR; result, character: CHAR;
  17867. BEGIN result := array[character]
  17868. END Test.
  17869. negative: member selection on variable character
  17870. MODULE Test;
  17871. VAR character, result: CHAR;
  17872. BEGIN result := character.member
  17873. END Test.
  17874. negative: calling variable character
  17875. MODULE Test;
  17876. VAR character: CHAR;
  17877. BEGIN character
  17878. END Test.
  17879. # variable integers
  17880. positive: arithmetic negation on variable integer
  17881. MODULE Test;
  17882. VAR integer, result: INTEGER;
  17883. BEGIN result := -integer;
  17884. END Test.
  17885. positive: multiple arithmetic negations on variable integer
  17886. MODULE Test;
  17887. VAR integer, result: INTEGER;
  17888. BEGIN result := -(-(-integer));
  17889. END Test.
  17890. negative: logical negation on variable integer
  17891. MODULE Test;
  17892. VAR integer: INTEGER; result: BOOLEAN;
  17893. BEGIN result := ~integer;
  17894. END Test.
  17895. negative: dereferencing variable integer
  17896. MODULE Test;
  17897. VAR integer, result: INTEGER;
  17898. BEGIN result := integer^;
  17899. END Test.
  17900. positive: addition on variable integers
  17901. MODULE Test;
  17902. VAR integer, result: INTEGER;
  17903. BEGIN result := integer + integer;
  17904. END Test.
  17905. positive: subtraction on variable integers
  17906. MODULE Test;
  17907. VAR integer, result: INTEGER;
  17908. BEGIN result := integer - integer
  17909. END Test.
  17910. positive: multiplication on variable integers
  17911. MODULE Test;
  17912. VAR integer, result: INTEGER;
  17913. BEGIN result := integer * integer
  17914. END Test.
  17915. positive: integer division on variable integers
  17916. MODULE Test;
  17917. VAR integer, result: INTEGER;
  17918. BEGIN result := integer DIV integer
  17919. END Test.
  17920. positive: real division on variable integers
  17921. MODULE Test;
  17922. VAR integer: INTEGER; result: REAL;
  17923. BEGIN result := integer / integer
  17924. END Test.
  17925. positive: modulo on variable integers
  17926. MODULE Test;
  17927. VAR integer, result: INTEGER;
  17928. BEGIN result := integer MOD integer
  17929. END Test.
  17930. positive: equal relation on variable integers
  17931. MODULE Test;
  17932. VAR integer: INTEGER; result: BOOLEAN;
  17933. BEGIN result := integer = integer
  17934. END Test.
  17935. positive: unequal relation on variable integers
  17936. MODULE Test;
  17937. VAR integer: INTEGER; result: BOOLEAN;
  17938. BEGIN result := integer # integer
  17939. END Test.
  17940. positive: less relation on variable integers
  17941. MODULE Test;
  17942. VAR integer: INTEGER; result: BOOLEAN;
  17943. BEGIN result := integer < integer
  17944. END Test.
  17945. positive: less or equal relation on variable integers
  17946. MODULE Test;
  17947. VAR integer: INTEGER; result: BOOLEAN;
  17948. BEGIN result := integer <= integer
  17949. END Test.
  17950. positive: greater relation on variable integers
  17951. MODULE Test;
  17952. VAR integer: INTEGER; result: BOOLEAN;
  17953. BEGIN result := integer > integer
  17954. END Test.
  17955. positive: greater or equal relation on variable integers
  17956. MODULE Test;
  17957. VAR integer: INTEGER; result: BOOLEAN;
  17958. BEGIN result := integer >= integer
  17959. END Test.
  17960. negative: set membership on variable integers
  17961. MODULE Test;
  17962. VAR integer: INTEGER; result: BOOLEAN;
  17963. BEGIN result := integer IN integer
  17964. END Test.
  17965. negative: type test on variable integers
  17966. MODULE Test;
  17967. VAR integer: INTEGER; result: BOOLEAN;
  17968. BEGIN result := integer IS integer
  17969. END Test.
  17970. negative: type test on variable integer
  17971. MODULE Test;
  17972. VAR integer: INTEGER; result: BOOLEAN;
  17973. BEGIN result := integer IS INTEGER
  17974. END Test.
  17975. negative: type test on integer type
  17976. MODULE Test;
  17977. TYPE Type = INTEGER;
  17978. VAR integer: Type; result: BOOLEAN;
  17979. BEGIN result := integer IS Type
  17980. END Test.
  17981. negative: type guard on variable integers
  17982. MODULE Test;
  17983. VAR integer, result: INTEGER;
  17984. BEGIN result := integer(integer)
  17985. END Test.
  17986. negative: type guard on variable integer
  17987. MODULE Test;
  17988. VAR integer, result: INTEGER;
  17989. BEGIN result := integer(INTEGER)
  17990. END Test.
  17991. negative: type guard on integer type
  17992. MODULE Test;
  17993. TYPE Type = INTEGER;
  17994. VAR integer, result: Type;
  17995. BEGIN result := integer(Type)
  17996. END Test.
  17997. negative: logical and on variable integers
  17998. MODULE Test;
  17999. VAR integer: INTEGER; result: BOOLEAN;
  18000. BEGIN result := integer & integer
  18001. END Test.
  18002. negative: logical or on variable integers
  18003. MODULE Test;
  18004. VAR integer: INTEGER; result: BOOLEAN;
  18005. BEGIN result := integer OR integer
  18006. END Test.
  18007. negative: ordinal value of variable integer
  18008. MODULE Test;
  18009. VAR integer, result: INTEGER;
  18010. BEGIN result := ORD (integer)
  18011. END Test.
  18012. positive: character value of variable integer
  18013. MODULE Test;
  18014. VAR integer: INTEGER; result: CHAR;
  18015. BEGIN result := CHR (integer)
  18016. END Test.
  18017. positive: absolute value of variable integer
  18018. MODULE Test;
  18019. VAR integer, result: INTEGER;
  18020. BEGIN result := ABS (integer)
  18021. END Test.
  18022. positive: odd test on variable integer
  18023. MODULE Test;
  18024. VAR integer: INTEGER; result: BOOLEAN;
  18025. BEGIN result := ODD (integer)
  18026. END Test.
  18027. negative: capital letter of variable integer
  18028. MODULE Test;
  18029. VAR integer: INTEGER; result: CHAR;
  18030. BEGIN result := CAP (integer)
  18031. END Test.
  18032. positive: arithmetic shift of variable integers
  18033. MODULE Test;
  18034. VAR integer: INTEGER; result: LONGINT;
  18035. BEGIN result := ASH (integer, integer)
  18036. END Test.
  18037. negative: short on variable short integer
  18038. MODULE Test;
  18039. VAR shortint, result: SHORTINT;
  18040. BEGIN result := SHORT (shortint)
  18041. END Test.
  18042. positive: short on variable integer
  18043. MODULE Test;
  18044. VAR integer, result: INTEGER;
  18045. BEGIN result := SHORT (integer)
  18046. END Test.
  18047. positive: short on variable long integer
  18048. MODULE Test;
  18049. VAR longint, result: LONGINT;
  18050. BEGIN result := SHORT (longint)
  18051. END Test.
  18052. positive: short on variable huge integer
  18053. MODULE Test;
  18054. VAR hugeint, result: HUGEINT;
  18055. BEGIN result := SHORT (hugeint)
  18056. END Test.
  18057. positive: long on variable short integer
  18058. MODULE Test;
  18059. VAR shortint, result: SHORTINT;
  18060. BEGIN result := SHORT (LONG (shortint))
  18061. END Test.
  18062. positive: long on variable integer
  18063. MODULE Test;
  18064. VAR integer, result: INTEGER;
  18065. BEGIN result := SHORT (LONG (integer))
  18066. END Test.
  18067. positive: long on variable long integer
  18068. MODULE Test;
  18069. VAR longint, result: LONGINT;
  18070. BEGIN result := SHORT (LONG (longint))
  18071. END Test.
  18072. negative: long on variable huge integer
  18073. MODULE Test;
  18074. VAR hugeint, result: HUGEINT;
  18075. BEGIN result := SHORT (LONG (hugeint))
  18076. END Test.
  18077. negative: entier on variable integer
  18078. MODULE Test;
  18079. VAR integer, result: LONGINT;
  18080. BEGIN result := ENTIER (integer)
  18081. END Test.
  18082. negative: unary length of variable integer
  18083. MODULE Test;
  18084. VAR integer: INTEGER; result: LONGINT;
  18085. BEGIN result := LEN (integer)
  18086. END Test.
  18087. negative: binary length of variable integer
  18088. MODULE Test;
  18089. VAR integer: INTEGER; result: LONGINT;
  18090. BEGIN result := LEN (integer, 0)
  18091. END Test.
  18092. negative: indexing variable integer
  18093. MODULE Test;
  18094. VAR integer: INTEGER; result: CHAR;
  18095. BEGIN result := integer[0]
  18096. END Test.
  18097. positive: variable integer as index
  18098. MODULE Test;
  18099. VAR array: ARRAY 10 OF CHAR; result: CHAR; integer: INTEGER;
  18100. BEGIN result := array[integer]
  18101. END Test.
  18102. positive: variable integer as index in two-dimensional array
  18103. MODULE Test;
  18104. VAR array: ARRAY 5, 10 OF CHAR; result: CHAR; integer: INTEGER;
  18105. BEGIN result := array[integer, integer]
  18106. END Test.
  18107. positive: variable integer as index in two-dimensional open array
  18108. MODULE Test;
  18109. PROCEDURE Procedure (CONST array: ARRAY OF ARRAY OF CHAR);
  18110. VAR result: CHAR; integer: INTEGER;
  18111. BEGIN result := array[integer, integer]; result := array[integer][integer]
  18112. END Procedure;
  18113. END Test.
  18114. negative: member selection on variable integer
  18115. MODULE Test;
  18116. VAR integer, result: INTEGER;
  18117. BEGIN result := integer.member
  18118. END Test.
  18119. negative: calling variable integer
  18120. MODULE Test;
  18121. VAR integer: INTEGER;
  18122. BEGIN integer
  18123. END Test.
  18124. # variable reals
  18125. positive: arithmetic negation on variable real
  18126. MODULE Test;
  18127. VAR real, result: REAL;
  18128. BEGIN result := -real;
  18129. END Test.
  18130. positive: multiple arithmetic negations on variable real
  18131. MODULE Test;
  18132. VAR real, result: REAL;
  18133. BEGIN result := -(-(-real));
  18134. END Test.
  18135. negative: logical negation on variable real
  18136. MODULE Test;
  18137. VAR real: REAL; result: BOOLEAN;
  18138. BEGIN result := ~real;
  18139. END Test.
  18140. negative: dereferencing variable real
  18141. MODULE Test;
  18142. VAR real, result: REAL;
  18143. BEGIN result := real^;
  18144. END Test.
  18145. positive: addition on variable reals
  18146. MODULE Test;
  18147. VAR real, result: REAL;
  18148. BEGIN result := real + real;
  18149. END Test.
  18150. positive: subtraction on variable reals
  18151. MODULE Test;
  18152. VAR real, result: REAL;
  18153. BEGIN result := real - real
  18154. END Test.
  18155. positive: multiplication on variable reals
  18156. MODULE Test;
  18157. VAR real, result: REAL;
  18158. BEGIN result := real * real
  18159. END Test.
  18160. negative: integer division on variable reals
  18161. MODULE Test;
  18162. VAR real: REAL; result: INTEGER;
  18163. BEGIN result := real DIV real
  18164. END Test.
  18165. positive: real division on variable reals
  18166. MODULE Test;
  18167. VAR real, result: REAL;
  18168. BEGIN result := real / real
  18169. END Test.
  18170. negative: modulo on variable reals
  18171. MODULE Test;
  18172. VAR real: REAL; result: INTEGER;
  18173. BEGIN result := real MOD real
  18174. END Test.
  18175. positive: equal relation on variable reals
  18176. MODULE Test;
  18177. VAR real: REAL; result: BOOLEAN;
  18178. BEGIN result := real = real
  18179. END Test.
  18180. positive: unequal relation on variable reals
  18181. MODULE Test;
  18182. VAR real: REAL; result: BOOLEAN;
  18183. BEGIN result := real # real
  18184. END Test.
  18185. positive: less relation on variable reals
  18186. MODULE Test;
  18187. VAR real: REAL; result: BOOLEAN;
  18188. BEGIN result := real < real
  18189. END Test.
  18190. positive: less or equal relation on variable reals
  18191. MODULE Test;
  18192. VAR real: REAL; result: BOOLEAN;
  18193. BEGIN result := real <= real
  18194. END Test.
  18195. positive: greater relation on variable reals
  18196. MODULE Test;
  18197. VAR real: REAL; result: BOOLEAN;
  18198. BEGIN result := real > real
  18199. END Test.
  18200. positive: greater or equal relation on variable reals
  18201. MODULE Test;
  18202. VAR real: REAL; result: BOOLEAN;
  18203. BEGIN result := real >= real
  18204. END Test.
  18205. negative: set membership on variable reals
  18206. MODULE Test;
  18207. VAR real: REAL; result: BOOLEAN;
  18208. BEGIN result := real IN real
  18209. END Test.
  18210. negative: type test on variable reals
  18211. MODULE Test;
  18212. VAR real: REAL; result: BOOLEAN;
  18213. BEGIN result := real IS real
  18214. END Test.
  18215. negative: type test on variable real
  18216. MODULE Test;
  18217. VAR real: REAL; result: BOOLEAN;
  18218. BEGIN result := real IS REAL
  18219. END Test.
  18220. negative: type test on real type
  18221. MODULE Test;
  18222. TYPE Type = REAL;
  18223. VAR real: Type; result: BOOLEAN;
  18224. BEGIN result := real IS Type
  18225. END Test.
  18226. negative: type guard on variable reals
  18227. MODULE Test;
  18228. VAR real, result: REAL;
  18229. BEGIN result := real(real)
  18230. END Test.
  18231. negative: type guard on variable real
  18232. MODULE Test;
  18233. VAR real, result: REAL;
  18234. BEGIN result := real(REAL)
  18235. END Test.
  18236. negative: type guard on real type
  18237. MODULE Test;
  18238. TYPE Type = REAL;
  18239. VAR real: Type; result: BOOLEAN;
  18240. BEGIN result := real(Type)
  18241. END Test.
  18242. negative: logical and on variable reals
  18243. MODULE Test;
  18244. VAR real: REAL; result: BOOLEAN;
  18245. BEGIN result := real & real
  18246. END Test.
  18247. negative: logical or on variable reals
  18248. MODULE Test;
  18249. VAR real: REAL; result: BOOLEAN;
  18250. BEGIN result := real OR real
  18251. END Test.
  18252. negative: ordinal value of variable real
  18253. MODULE Test;
  18254. VAR real: REAL; result: INTEGER;
  18255. BEGIN result := ORD (real)
  18256. END Test.
  18257. negative: character value of variable real
  18258. MODULE Test;
  18259. VAR real: REAL; result: CHAR;
  18260. BEGIN result := CHR (real)
  18261. END Test.
  18262. positive: absolute value of variable real
  18263. MODULE Test;
  18264. VAR real, result: REAL;
  18265. BEGIN result := ABS (real)
  18266. END Test.
  18267. negative: odd test on variable real
  18268. MODULE Test;
  18269. VAR real: REAL; result: BOOLEAN;
  18270. BEGIN result := ODD (real)
  18271. END Test.
  18272. negative: capital letter of variable real
  18273. MODULE Test;
  18274. VAR real: REAL; result: CHAR;
  18275. BEGIN result := CAP (real)
  18276. END Test.
  18277. negative: arithmetic shift of variable reals
  18278. MODULE Test;
  18279. VAR real, result: REAL;
  18280. BEGIN result := ASH (real, real)
  18281. END Test.
  18282. negative: short on variable real
  18283. MODULE Test;
  18284. VAR real, result: REAL;
  18285. BEGIN result := SHORT (real)
  18286. END Test.
  18287. positive: short on variable long real
  18288. MODULE Test;
  18289. VAR longreal, result: LONGREAL;
  18290. BEGIN result := SHORT (longreal)
  18291. END Test.
  18292. positive: long on variable real
  18293. MODULE Test;
  18294. VAR real, result: REAL;
  18295. BEGIN result := SHORT (LONG (real))
  18296. END Test.
  18297. negative: long on variable long real
  18298. MODULE Test;
  18299. VAR longreal, result: LONGREAL;
  18300. BEGIN result := SHORT (LONG (longreal))
  18301. END Test.
  18302. positive: entier on variable real
  18303. MODULE Test;
  18304. VAR real, result: REAL;
  18305. BEGIN result := ENTIER (real)
  18306. END Test.
  18307. positive: entier on variable long real
  18308. MODULE Test;
  18309. VAR longreal, result: LONGREAL;
  18310. BEGIN result := ENTIER (longreal)
  18311. END Test.
  18312. negative: unary length of variable real
  18313. MODULE Test;
  18314. VAR real: REAL; result: LONGINT;
  18315. BEGIN result := LEN (real)
  18316. END Test.
  18317. negative: binary length of variable real
  18318. MODULE Test;
  18319. VAR real: REAL; result: LONGINT;
  18320. BEGIN result := LEN (real, 0)
  18321. END Test.
  18322. negative: indexing variable real
  18323. MODULE Test;
  18324. VAR real: REAL; result: CHAR;
  18325. BEGIN result := real[0]
  18326. END Test.
  18327. negative: variable real as index
  18328. MODULE Test;
  18329. VAR array: ARRAY 10 OF CHAR; result: CHAR; real: REAL;
  18330. BEGIN result := array[real]
  18331. END Test.
  18332. negative: member selection on variable real
  18333. MODULE Test;
  18334. VAR real, result: REAL;
  18335. BEGIN result := real.member
  18336. END Test.
  18337. negative: calling variable real
  18338. MODULE Test;
  18339. VAR real: REAL;
  18340. BEGIN real
  18341. END Test.
  18342. # variable set
  18343. negative: variable boolean as set element
  18344. MODULE Test;
  18345. VAR boolean: BOOLEAN; result: SET;
  18346. BEGIN result := {boolean};
  18347. END Test.
  18348. negative: variable character as set element
  18349. MODULE Test;
  18350. VAR character: CHAR; result: SET;
  18351. BEGIN result := {character};
  18352. END Test.
  18353. positive: variable integer variable as set element
  18354. MODULE Test;
  18355. VAR integer: INTEGER; result: SET;
  18356. BEGIN result := {integer};
  18357. END Test.
  18358. negative: variable real as set element
  18359. MODULE Test;
  18360. VAR real: REAL; result: SET;
  18361. BEGIN result := {real};
  18362. END Test.
  18363. negative: variable set as set element
  18364. MODULE Test;
  18365. VAR set, result: SET;
  18366. BEGIN result := {set};
  18367. END Test.
  18368. positive: several equal variable set elements
  18369. MODULE Test;
  18370. VAR integer: INTEGER; result: SET;
  18371. BEGIN result := {integer, integer, integer};
  18372. END Test.
  18373. positive: several different variable set elements
  18374. MODULE Test;
  18375. VAR integer: INTEGER; result: SET;
  18376. BEGIN result := {integer, integer, integer};
  18377. END Test.
  18378. positive: variable set element range
  18379. MODULE Test;
  18380. VAR integer: INTEGER; result: SET;
  18381. BEGIN result := {integer..integer};
  18382. END Test.
  18383. positive: variable set element range with single element
  18384. MODULE Test;
  18385. VAR integer: INTEGER; result: SET;
  18386. BEGIN result := {integer..integer};
  18387. END Test.
  18388. positive: empty variable set element range
  18389. MODULE Test;
  18390. VAR integer: INTEGER; result: SET;
  18391. BEGIN result := {integer..integer};
  18392. END Test.
  18393. positive: complement on variable set
  18394. MODULE Test;
  18395. VAR set, result: SET;
  18396. BEGIN result := -set;
  18397. END Test.
  18398. positive: multiple complements on variable set
  18399. MODULE Test;
  18400. VAR set, result: SET;
  18401. BEGIN result := -(-(-set));
  18402. END Test.
  18403. negative: logical negation on variable set
  18404. MODULE Test;
  18405. VAR set: SET; result: BOOLEAN;
  18406. BEGIN result := ~set;
  18407. END Test.
  18408. negative: dereferencing variable set
  18409. MODULE Test;
  18410. VAR set, result: SET;
  18411. BEGIN result := set^;
  18412. END Test.
  18413. positive: union on variable sets
  18414. MODULE Test;
  18415. VAR set, result: SET;
  18416. BEGIN result := set + set;
  18417. END Test.
  18418. positive: difference on variable sets
  18419. MODULE Test;
  18420. VAR set, result: SET;
  18421. BEGIN result := set - set
  18422. END Test.
  18423. positive: intersection on variable sets
  18424. MODULE Test;
  18425. VAR set, result: SET;
  18426. BEGIN result := set * set
  18427. END Test.
  18428. negative: integer division on variable sets
  18429. MODULE Test;
  18430. VAR set: SET; result: INTEGER;
  18431. BEGIN result := set DIV set
  18432. END Test.
  18433. positive: symmetric difference on variable sets
  18434. MODULE Test;
  18435. VAR set, result: SET;
  18436. BEGIN result := set / set
  18437. END Test.
  18438. negative: modulo on variable sets
  18439. MODULE Test;
  18440. VAR set: SET; result: INTEGER;
  18441. BEGIN result := set MOD set
  18442. END Test.
  18443. positive: equal relation on variable sets
  18444. MODULE Test;
  18445. VAR set: SET; result: BOOLEAN;
  18446. BEGIN result := set = set
  18447. END Test.
  18448. positive: unequal relation on variable sets
  18449. MODULE Test;
  18450. VAR set: SET; result: BOOLEAN;
  18451. BEGIN result := set # set
  18452. END Test.
  18453. positive: less relation on variable sets
  18454. MODULE Test;
  18455. VAR set: SET; result: BOOLEAN;
  18456. BEGIN result := set < set
  18457. END Test.
  18458. positive: less or equal relation on variable sets
  18459. MODULE Test;
  18460. VAR set: SET; result: BOOLEAN;
  18461. BEGIN result := set <= set
  18462. END Test.
  18463. positive: greater relation on variable sets
  18464. MODULE Test;
  18465. VAR set: SET; result: BOOLEAN;
  18466. BEGIN result := set > set
  18467. END Test.
  18468. positive: greater or equal relation on variable sets
  18469. MODULE Test;
  18470. VAR set: SET; result: BOOLEAN;
  18471. BEGIN result := set >= set
  18472. END Test.
  18473. negative: set membership on variable sets
  18474. MODULE Test;
  18475. VAR set: SET; result: BOOLEAN;
  18476. BEGIN result := set IN set
  18477. END Test.
  18478. positive: set membership on integer and variable set
  18479. MODULE Test;
  18480. VAR integer: INTEGER; set: SET; result: BOOLEAN;
  18481. BEGIN result := integer IN set
  18482. END Test.
  18483. negative: type test on variable sets
  18484. MODULE Test;
  18485. VAR set: SET; result: BOOLEAN;
  18486. BEGIN result := set IS set
  18487. END Test.
  18488. negative: type test on variable set
  18489. MODULE Test;
  18490. VAR set: SET; result: BOOLEAN;
  18491. BEGIN result := set IS SET
  18492. END Test.
  18493. negative: type test on set type
  18494. MODULE Test;
  18495. TYPE Type = SET;
  18496. VAR set: Type; result: BOOLEAN;
  18497. BEGIN result := set IS Type
  18498. END Test.
  18499. negative: type guard on variable sets
  18500. MODULE Test;
  18501. VAR set, result: SET;
  18502. BEGIN result := set(set)
  18503. END Test.
  18504. negative: type guard on variable set
  18505. MODULE Test;
  18506. VAR set, result: SET;
  18507. BEGIN result := set(SET)
  18508. END Test.
  18509. negative: type guard on set type
  18510. MODULE Test;
  18511. TYPE Type = SET;
  18512. VAR set, result: Type;
  18513. BEGIN result := set(Type)
  18514. END Test.
  18515. negative: logical and on variable sets
  18516. MODULE Test;
  18517. VAR set: SET; result: BOOLEAN;
  18518. BEGIN result := set & set
  18519. END Test.
  18520. negative: logical or on variable sets
  18521. MODULE Test;
  18522. VAR set: SET; result: BOOLEAN;
  18523. BEGIN result := set OR set
  18524. END Test.
  18525. negative: ordinal value of variable set
  18526. MODULE Test;
  18527. VAR set: SET; result: INTEGER;
  18528. BEGIN result := ORD (set)
  18529. END Test.
  18530. negative: character value of variable set
  18531. MODULE Test;
  18532. VAR set: SET; result: CHAR;
  18533. BEGIN result := CHR (set)
  18534. END Test.
  18535. negative: absolute value of variable set
  18536. MODULE Test;
  18537. VAR set, result: SET;
  18538. BEGIN result := ABS (set)
  18539. END Test.
  18540. negative: odd test on variable set
  18541. MODULE Test;
  18542. VAR set: SET; result: BOOLEAN;
  18543. BEGIN result := ODD (set)
  18544. END Test.
  18545. negative: capital letter of variable set
  18546. MODULE Test;
  18547. VAR set: SET; result: CHAR;
  18548. BEGIN result := CAP (set)
  18549. END Test.
  18550. negative: arithmetic shift of variable sets
  18551. MODULE Test;
  18552. VAR set, result: SET;
  18553. BEGIN result := ASH (set, set)
  18554. END Test.
  18555. negative: short on variable set
  18556. MODULE Test;
  18557. VAR set, result: SET;
  18558. BEGIN result := SHORT (set)
  18559. END Test.
  18560. negative: long on variable set
  18561. MODULE Test;
  18562. VAR set, result: SET;
  18563. BEGIN result := LONG (set)
  18564. END Test.
  18565. negative: entier on variable set
  18566. MODULE Test;
  18567. VAR set, result: SET;
  18568. BEGIN result := ENTIER (set)
  18569. END Test.
  18570. negative: unary length of variable set
  18571. MODULE Test;
  18572. VAR set: SET; result: LONGINT;
  18573. BEGIN result := LEN (set)
  18574. END Test.
  18575. negative: binary length of variable set
  18576. MODULE Test;
  18577. VAR set: SET; result: LONGINT;
  18578. BEGIN result := LEN (set, 0)
  18579. END Test.
  18580. negative: indexing variable set
  18581. MODULE Test;
  18582. VAR set: SET; result: CHAR;
  18583. BEGIN result := set[0]
  18584. END Test.
  18585. negative: variable set as index
  18586. MODULE Test;
  18587. VAR array: ARRAY 10 OF CHAR; result: CHAR; set: SET;
  18588. BEGIN result := array[set]
  18589. END Test.
  18590. negative: member selection on variable set
  18591. MODULE Test;
  18592. VAR set, result: SET;
  18593. BEGIN result := set.member
  18594. END Test.
  18595. negative: calling variable set
  18596. MODULE Test;
  18597. VAR set: SET;
  18598. BEGIN set
  18599. END Test.
  18600. # variable arrays
  18601. negative: arithmetic negation on variable array
  18602. MODULE Test;
  18603. VAR array, result: ARRAY 10 OF SET;
  18604. BEGIN result := -array;
  18605. END Test.
  18606. negative: logical negation on variable array
  18607. MODULE Test;
  18608. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18609. BEGIN result := ~array;
  18610. END Test.
  18611. negative: dereferencing variable array
  18612. MODULE Test;
  18613. VAR array, result: ARRAY 10 OF SET;
  18614. BEGIN result := array^;
  18615. END Test.
  18616. negative: addition on variable arrays
  18617. MODULE Test;
  18618. VAR array, result: ARRAY 10 OF SET;
  18619. BEGIN result := array + array;
  18620. END Test.
  18621. negative: subtraction on variable arrays
  18622. MODULE Test;
  18623. VAR array, result: ARRAY 10 OF SET;
  18624. BEGIN result := array - array
  18625. END Test.
  18626. negative: multiplication on variable arrays
  18627. MODULE Test;
  18628. VAR array, result: ARRAY 10 OF SET;
  18629. BEGIN result := array * array
  18630. END Test.
  18631. negative: integer division on variable arrays
  18632. MODULE Test;
  18633. VAR array: ARRAY 10 OF SET; result: INTEGER;
  18634. BEGIN result := array DIV array
  18635. END Test.
  18636. negative: real division on variable arrays
  18637. MODULE Test;
  18638. VAR array: ARRAY 10 OF SET; result: REAL;
  18639. BEGIN result := array / array
  18640. END Test.
  18641. negative: modulo on variable arrays
  18642. MODULE Test;
  18643. VAR array: ARRAY 10 OF SET; result: INTEGER;
  18644. BEGIN result := array MOD array
  18645. END Test.
  18646. negative: equal relation on variable arrays
  18647. MODULE Test;
  18648. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18649. BEGIN result := array = array
  18650. END Test.
  18651. positive: equal relation on variable arrays of character
  18652. MODULE Test;
  18653. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18654. BEGIN result := array = array
  18655. END Test.
  18656. positive: equal relation on variable array of character and string
  18657. MODULE Test;
  18658. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18659. BEGIN result := array = "string"
  18660. END Test.
  18661. negative: unequal relation on variable arrays
  18662. MODULE Test;
  18663. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18664. BEGIN result := array # array
  18665. END Test.
  18666. positive: unequal relation on variable arrays of character
  18667. MODULE Test;
  18668. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18669. BEGIN result := array # array
  18670. END Test.
  18671. positive: unequal relation on variable array of character and string
  18672. MODULE Test;
  18673. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18674. BEGIN result := array # "string"
  18675. END Test.
  18676. negative: less relation on variable arrays
  18677. MODULE Test;
  18678. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18679. BEGIN result := array < array
  18680. END Test.
  18681. positive: less relation on variable arrays of character
  18682. MODULE Test;
  18683. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18684. BEGIN result := array < array
  18685. END Test.
  18686. positive: less relation on variable array of character and string
  18687. MODULE Test;
  18688. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18689. BEGIN result := array < "string"
  18690. END Test.
  18691. negative: less or equal relation on variable arrays
  18692. MODULE Test;
  18693. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18694. BEGIN result := array <= array
  18695. END Test.
  18696. positive: less or equal relation on variable arrays of character
  18697. MODULE Test;
  18698. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18699. BEGIN result := array <= array
  18700. END Test.
  18701. positive: less or equal relation on variable array of character and string
  18702. MODULE Test;
  18703. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18704. BEGIN result := array <= "string"
  18705. END Test.
  18706. negative: greater relation on variable arrays
  18707. MODULE Test;
  18708. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18709. BEGIN result := array > array
  18710. END Test.
  18711. positive: greater relation on variable arrays of character
  18712. MODULE Test;
  18713. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18714. BEGIN result := array > array
  18715. END Test.
  18716. positive: greater relation on variable array of character and string
  18717. MODULE Test;
  18718. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18719. BEGIN result := array > "string"
  18720. END Test.
  18721. negative: greater or equal relation on variable arrays
  18722. MODULE Test;
  18723. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18724. BEGIN result := array >= array
  18725. END Test.
  18726. positive: greater or equal relation on variable arrays of character
  18727. MODULE Test;
  18728. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18729. BEGIN result := array >= array
  18730. END Test.
  18731. positive: greater or equal relation on variable array of character and string
  18732. MODULE Test;
  18733. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18734. BEGIN result := array >= "string"
  18735. END Test.
  18736. negative: set membership on variable arrays
  18737. MODULE Test;
  18738. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18739. BEGIN result := array IN array
  18740. END Test.
  18741. negative: type test on variable arrays
  18742. MODULE Test;
  18743. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18744. BEGIN result := array IS array
  18745. END Test.
  18746. negative: type test on variable array
  18747. MODULE Test;
  18748. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18749. BEGIN result := array IS ARRAY 10 OF SET
  18750. END Test.
  18751. negative: type test on array type
  18752. MODULE Test;
  18753. TYPE Type = ARRAY 10 OF SET;
  18754. VAR array: Type; result: BOOLEAN;
  18755. BEGIN result := array IS Type
  18756. END Test.
  18757. negative: type guard on variable arrays
  18758. MODULE Test;
  18759. VAR array, result: ARRAY 10 OF SET;
  18760. BEGIN result := array(array)
  18761. END Test.
  18762. negative: type guard on variable array
  18763. MODULE Test;
  18764. VAR array, result: ARRAY 10 OF SET;
  18765. BEGIN result := array(ARRAY 10 OF SET)
  18766. END Test.
  18767. negative: type guard on array type
  18768. MODULE Test;
  18769. TYPE Type = ARRAY 10 OF SET;
  18770. VAR array, result: Type;
  18771. BEGIN result := array(Type)
  18772. END Test.
  18773. negative: logical and on variable arrays
  18774. MODULE Test;
  18775. VAR array, result: ARRAY 10 OF SET;
  18776. BEGIN result := array & array
  18777. END Test.
  18778. negative: logical or on variable arrays
  18779. MODULE Test;
  18780. VAR array, result: ARRAY 10 OF SET;
  18781. BEGIN result := array OR array
  18782. END Test.
  18783. negative: ordinal value of variable array
  18784. MODULE Test;
  18785. VAR array: ARRAY 10 OF SET; result: INTEGER;
  18786. BEGIN result := ORD (array)
  18787. END Test.
  18788. negative: character value of variable array
  18789. MODULE Test;
  18790. VAR array: ARRAY 10 OF SET; result: CHAR;
  18791. BEGIN result := CHR (array)
  18792. END Test.
  18793. negative: absolute value of variable array
  18794. MODULE Test;
  18795. VAR array, result: ARRAY 10 OF SET;
  18796. BEGIN result := ABS (array)
  18797. END Test.
  18798. negative: odd test on variable array
  18799. MODULE Test;
  18800. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18801. BEGIN result := ODD (array)
  18802. END Test.
  18803. negative: capital letter of variable array
  18804. MODULE Test;
  18805. VAR array: ARRAY 10 OF SET; result: CHAR;
  18806. BEGIN result := CAP (array)
  18807. END Test.
  18808. negative: arithmetic shift of variable arrays
  18809. MODULE Test;
  18810. VAR array, result: ARRAY 10 OF SET;
  18811. BEGIN result := ASH (array, array)
  18812. END Test.
  18813. negative: short on variable array
  18814. MODULE Test;
  18815. VAR array, result: ARRAY 10 OF SET;
  18816. BEGIN result := SHORT (array)
  18817. END Test.
  18818. negative: long on variable array
  18819. MODULE Test;
  18820. VAR array, result: ARRAY 10 OF SET;
  18821. BEGIN result := LONG (array)
  18822. END Test.
  18823. negative: entier on variable array
  18824. MODULE Test;
  18825. VAR array, result: ARRAY 10 OF SET;
  18826. BEGIN result := ENTIER (array)
  18827. END Test.
  18828. positive: unary length of variable array
  18829. MODULE Test;
  18830. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18831. BEGIN result := LEN (array); ASSERT (LEN (array) = 10);
  18832. END Test.
  18833. positive: unary length of variable array as short integer
  18834. MODULE Test;
  18835. VAR array: ARRAY 10 OF CHAR; result: SHORTINT;
  18836. BEGIN result := LEN (array);
  18837. END Test.
  18838. positive: unary length of variable array as integer
  18839. MODULE Test;
  18840. VAR array: ARRAY 10 OF CHAR; result: INTEGER;
  18841. BEGIN result := LEN (array);
  18842. END Test.
  18843. positive: unary length of variable array as long integer
  18844. MODULE Test;
  18845. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18846. BEGIN result := LEN (array);
  18847. END Test.
  18848. positive: unary length of variable array as huge integer
  18849. MODULE Test;
  18850. VAR array: ARRAY 10 OF CHAR; result: HUGEINT;
  18851. BEGIN result := LEN (array);
  18852. END Test.
  18853. positive: unary length of variable open array
  18854. MODULE Test;
  18855. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18856. VAR result: LONGINT;
  18857. BEGIN result := LEN (array)
  18858. END Procedure
  18859. END Test.
  18860. negative: unary length of variable open array as short integer
  18861. MODULE Test;
  18862. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18863. VAR result: SHORTINT;
  18864. BEGIN result := LEN (array)
  18865. END Procedure
  18866. END Test.
  18867. negative: unary length of variable open array as integer
  18868. MODULE Test;
  18869. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18870. VAR result: INTEGER;
  18871. BEGIN result := LEN (array)
  18872. END Procedure
  18873. END Test.
  18874. positive: unary length of variable open array as long integer
  18875. MODULE Test;
  18876. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18877. VAR result: LONGINT;
  18878. BEGIN result := LEN (array)
  18879. END Procedure
  18880. END Test.
  18881. positive: unary length of variable open array as huge integer
  18882. MODULE Test;
  18883. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18884. VAR result: HUGEINT;
  18885. BEGIN result := LEN (array)
  18886. END Procedure
  18887. END Test.
  18888. positive: unary length of two-dimensional variable array
  18889. MODULE Test;
  18890. CONST Length = LEN (array);
  18891. VAR array: ARRAY 10, 20 OF CHAR; result: LONGINT;
  18892. BEGIN result := LEN (array); ASSERT (Length = 10);
  18893. END Test.
  18894. positive: unary length of two-dimensional variable open array
  18895. MODULE Test;
  18896. PROCEDURE Procedure (array: ARRAY OF ARRAY OF CHAR);
  18897. VAR result: LONGINT;
  18898. BEGIN result := LEN (array);
  18899. END Procedure;
  18900. END Test.
  18901. negative: unary length of array as its size
  18902. MODULE Test;
  18903. VAR a: ARRAY LEN (a) OF CHAR;
  18904. END Test.
  18905. negative: indirect unary length of array as its size
  18906. MODULE Test;
  18907. CONST Length = LEN (a)
  18908. VAR a: ARRAY Length OF CHAR;
  18909. END Test.
  18910. positive: unary length of array as size of another array
  18911. MODULE Test;
  18912. VAR a: ARRAY 10 OF CHAR; b: ARRAY LEN (a) OF CHAR;
  18913. BEGIN a := b;
  18914. END Test.
  18915. positive: indirect unary array as size of another array
  18916. MODULE Test;
  18917. CONST Length = LEN (a)
  18918. VAR a: ARRAY 10 OF CHAR; b: ARRAY Length OF CHAR;
  18919. BEGIN a := b;
  18920. END Test.
  18921. positive: binary length of variable array
  18922. MODULE Test;
  18923. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18924. BEGIN result := LEN (array); ASSERT (LEN (array, 0) = 10); ASSERT (LEN (array, 0) = LEN (array));
  18925. END Test.
  18926. positive: constant binary length of variable array as short integer
  18927. MODULE Test;
  18928. VAR array: ARRAY 10 OF CHAR; result: SHORTINT;
  18929. BEGIN result := LEN (array, 0);
  18930. END Test.
  18931. positive: constant binary length of variable array as integer
  18932. MODULE Test;
  18933. VAR array: ARRAY 10 OF CHAR; result: INTEGER;
  18934. BEGIN result := LEN (array, 0);
  18935. END Test.
  18936. positive: constant binary length of variable array as long integer
  18937. MODULE Test;
  18938. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18939. BEGIN result := LEN (array, 0);
  18940. END Test.
  18941. positive: constant binary length of variable array as huge integer
  18942. MODULE Test;
  18943. VAR array: ARRAY 10 OF CHAR; result: HUGEINT;
  18944. BEGIN result := LEN (array, 0);
  18945. END Test.
  18946. negative: binary length of variable array with negative dimension index
  18947. MODULE Test;
  18948. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18949. BEGIN result := LEN (array, -1);
  18950. END Test.
  18951. negative: binary length of variable array with invalid dimension index
  18952. MODULE Test;
  18953. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18954. BEGIN result := LEN (array, 1);
  18955. END Test.
  18956. positive: binary length of variable array with variable dimension index
  18957. MODULE Test;
  18958. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: INTEGER;
  18959. BEGIN result := LEN (array, dimension);
  18960. END Test.
  18961. negative: binary length of variable array with boolean as dimension index
  18962. MODULE Test;
  18963. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: BOOLEAN;
  18964. BEGIN result := LEN (array, dimension);
  18965. END Test.
  18966. negative: binary length of variable array with character as dimension index
  18967. MODULE Test;
  18968. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: CHAR;
  18969. BEGIN result := LEN (array, dimension);
  18970. END Test.
  18971. positive: binary length of variable array with integer as dimension index
  18972. MODULE Test;
  18973. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: INTEGER;
  18974. BEGIN result := LEN (array, dimension);
  18975. END Test.
  18976. negative: binary length of variable array with real as dimension index
  18977. MODULE Test;
  18978. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: REAL;
  18979. BEGIN result := LEN (array, dimension);
  18980. END Test.
  18981. negative: binary length of variable array with set as dimension index
  18982. MODULE Test;
  18983. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: SET;
  18984. BEGIN result := LEN (array, dimension);
  18985. END Test.
  18986. negative: binary length of variable array with constant string as dimension index
  18987. MODULE Test;
  18988. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18989. BEGIN result := LEN (array, "index");
  18990. END Test.
  18991. negative: binary length of variable array with nil pointer as dimension index
  18992. MODULE Test;
  18993. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18994. BEGIN result := LEN (array, NIL);
  18995. END Test.
  18996. positive: binary length of two-dimensional variable array
  18997. MODULE Test;
  18998. CONST Length0 = LEN (array, 0); Length1 = LEN (array, 1)
  18999. VAR array: ARRAY 10, 20 OF CHAR; result: LONGINT;
  19000. BEGIN result := LEN (array, 0); ASSERT (Length0 = 10); ASSERT (Length1 = 20);
  19001. END Test.
  19002. positive: binary length of two-dimensional variable open array
  19003. MODULE Test;
  19004. PROCEDURE Procedure (array: ARRAY OF ARRAY OF CHAR);
  19005. VAR result: LONGINT;
  19006. BEGIN result := LEN (array, 0); result := LEN (array, 1);
  19007. END Procedure;
  19008. END Test.
  19009. negative: binary length of array as its size
  19010. MODULE Test;
  19011. VAR array: ARRAY LEN (array, 0), LEN (array, 1) OF CHAR;
  19012. END Test.
  19013. negative: indirect binary length of array as its size
  19014. MODULE Test;
  19015. CONST Length0 = LEN (array, 0); Length1 = LEN (array, 1)
  19016. VAR array: ARRAY Length0, Length1 OF CHAR;
  19017. END Test.
  19018. positive: binary length of array as size of another array
  19019. MODULE Test;
  19020. VAR a: ARRAY 10, 20 OF CHAR; b: ARRAY LEN (a, 0), LEN (a, 1) OF CHAR;
  19021. BEGIN a := b;
  19022. END Test.
  19023. positive: indirect binary array as size of another array
  19024. MODULE Test;
  19025. CONST Length0 = LEN (a, 0); Length1 = LEN (a, 1)
  19026. VAR a: ARRAY 10, 20 OF CHAR; b: ARRAY Length0, Length1 OF CHAR;
  19027. BEGIN a := b;
  19028. END Test.
  19029. positive: array length constants
  19030. MODULE Test;
  19031. CONST
  19032. ls1=LEN(s1,0);
  19033. ls20=LEN(s2,0);
  19034. ls21=LEN(s2,1);
  19035. lp1=LEN(p1);
  19036. lp20=LEN(p2,0);
  19037. lp21=LEN(p2,1);
  19038. lp31=LEN(p3,1);
  19039. lp32=LEN(p3,2);
  19040. VAR
  19041. s1: ARRAY 2 OF CHAR;
  19042. s2: ARRAY 2 OF ARRAY 12 OF CHAR;
  19043. p1: POINTER TO ARRAY 2 OF CHAR;
  19044. p2: POINTER TO ARRAY 2 OF ARRAY 12 OF CHAR;
  19045. p3: POINTER TO ARRAY OF ARRAY 2 OF ARRAY 12 OF CHAR;
  19046. BEGIN
  19047. ASSERT(ls1=2);
  19048. ASSERT(ls20=2);
  19049. ASSERT(ls21=12);
  19050. ASSERT(lp1=2);
  19051. ASSERT(lp20=2);
  19052. ASSERT(lp21=12);
  19053. ASSERT(lp31=2);
  19054. ASSERT(lp32=12);
  19055. END Test.
  19056. positive: binary length of variable open array
  19057. MODULE Test;
  19058. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19059. VAR result: LONGINT;
  19060. BEGIN result := LEN (array, 0);
  19061. END Procedure;
  19062. END Test.
  19063. negative: binary length of variable open array as short integer
  19064. MODULE Test;
  19065. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19066. VAR result: SHORTINT;
  19067. BEGIN result := LEN (array, 0);
  19068. END Procedure;
  19069. END Test.
  19070. negative: binary length of variable open array as integer
  19071. MODULE Test;
  19072. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19073. VAR result: INTEGER;
  19074. BEGIN result := LEN (array, 0);
  19075. END Procedure;
  19076. END Test.
  19077. positive: binary length of variable open array as long integer
  19078. MODULE Test;
  19079. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19080. VAR result: LONGINT;
  19081. BEGIN result := LEN (array);
  19082. END Procedure;
  19083. END Test.
  19084. positive: binary length of variable open array as huge integer
  19085. MODULE Test;
  19086. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19087. VAR result: HUGEINT;
  19088. BEGIN result := LEN (array);
  19089. END Procedure;
  19090. END Test.
  19091. positive: indexing variable boolean array
  19092. MODULE Test;
  19093. VAR array: ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  19094. BEGIN result := array[0]
  19095. END Test.
  19096. positive: indexing temporary boolean array
  19097. MODULE Test;
  19098. VAR array: PROCEDURE (): ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  19099. BEGIN result := array()[0]
  19100. END Test.
  19101. negative: changing indexed temporary boolean array
  19102. MODULE Test;
  19103. VAR array: PROCEDURE (): ARRAY 10 OF BOOLEAN;
  19104. BEGIN array()[0] := TRUE;
  19105. END Test.
  19106. positive: indexing variable character array
  19107. MODULE Test;
  19108. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  19109. BEGIN result := array[0]
  19110. END Test.
  19111. positive: indexing temporary character array
  19112. MODULE Test;
  19113. VAR array: PROCEDURE (): ARRAY 10 OF CHAR; result: CHAR;
  19114. BEGIN result := array()[0]
  19115. END Test.
  19116. negative: changing indexed temporary character array
  19117. MODULE Test;
  19118. VAR array: PROCEDURE (): ARRAY 10 OF CHAR;
  19119. BEGIN array()[0] := '0';
  19120. END Test.
  19121. positive: indexing variable integer array
  19122. MODULE Test;
  19123. VAR array: ARRAY 10 OF INTEGER; result: INTEGER;
  19124. BEGIN result := array[0]
  19125. END Test.
  19126. positive: indexing temporary integer array
  19127. MODULE Test;
  19128. VAR array: PROCEDURE (): ARRAY 10 OF INTEGER; result: INTEGER;
  19129. BEGIN result := array()[0]
  19130. END Test.
  19131. negative: changing indexed temporary integer array
  19132. MODULE Test;
  19133. VAR array: PROCEDURE (): ARRAY 10 OF INTEGER;
  19134. BEGIN array()[0] := 5;
  19135. END Test.
  19136. positive: indexing variable real array
  19137. MODULE Test;
  19138. VAR array: ARRAY 10 OF REAL; result: REAL;
  19139. BEGIN result := array[0]
  19140. END Test.
  19141. positive: indexing temporary real array
  19142. MODULE Test;
  19143. VAR array: PROCEDURE (): ARRAY 10 OF REAL; result: REAL;
  19144. BEGIN result := array()[0]
  19145. END Test.
  19146. negative: changing indexed temporary real array
  19147. MODULE Test;
  19148. VAR array: PROCEDURE (): ARRAY 10 OF REAL;
  19149. BEGIN array()[0] := 5.0;
  19150. END Test.
  19151. positive: indexing variable set array
  19152. MODULE Test;
  19153. VAR array: ARRAY 10 OF SET; result: SET;
  19154. BEGIN result := array[0]
  19155. END Test.
  19156. positive: indexing temporary set array
  19157. MODULE Test;
  19158. VAR array: PROCEDURE (): ARRAY 10 OF SET; result: SET;
  19159. BEGIN result := array()[0]
  19160. END Test.
  19161. negative: changing indexed temporary set array
  19162. MODULE Test;
  19163. VAR array: PROCEDURE (): ARRAY 10 OF SET;
  19164. BEGIN array()[0] := {5};
  19165. END Test.
  19166. positive: indexing variable array of array
  19167. MODULE Test;
  19168. VAR array: ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  19169. BEGIN result := array[0]
  19170. END Test.
  19171. positive: indexing temporary array of array
  19172. MODULE Test;
  19173. VAR array: PROCEDURE (): ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  19174. BEGIN result := array()[0]
  19175. END Test.
  19176. negative: changing indexed temporary array of array
  19177. MODULE Test;
  19178. VAR array: PROCEDURE (): ARRAY 10 OF ARRAY 10 OF CHAR; value: ARRAY 10 OF CHAR;
  19179. BEGIN array()[0] := value;
  19180. END Test.
  19181. positive: indexing variable record array
  19182. MODULE Test;
  19183. TYPE Record = RECORD END;
  19184. VAR array: ARRAY 10 OF Record; result: Record;
  19185. BEGIN result := array[0]
  19186. END Test.
  19187. positive: indexing temporary record array
  19188. MODULE Test;
  19189. TYPE Record = RECORD END;
  19190. VAR array: PROCEDURE (): ARRAY 10 OF Record; result: Record;
  19191. BEGIN result := array()[0]
  19192. END Test.
  19193. negative: changing indexed temporary record array
  19194. MODULE Test;
  19195. TYPE Record = RECORD END;
  19196. VAR array: PROCEDURE (): ARRAY 10 OF Record; value: Record;
  19197. BEGIN array()[0] := value;
  19198. END Test.
  19199. negative: changing member of indexed temporary record array
  19200. MODULE Test;
  19201. TYPE Record = RECORD i: INTEGER END;
  19202. VAR array: PROCEDURE (): ARRAY 10 OF Record;
  19203. BEGIN array()[0].i := 5;
  19204. END Test.
  19205. positive: indexing variable object array
  19206. MODULE Test;
  19207. TYPE Object = OBJECT END Object;
  19208. VAR array: ARRAY 10 OF Object; result: Object;
  19209. BEGIN result := array[0]
  19210. END Test.
  19211. positive: indexing temporary object array
  19212. MODULE Test;
  19213. TYPE Object = OBJECT END Object;
  19214. VAR array: PROCEDURE (): ARRAY 10 OF Object; result: Object;
  19215. BEGIN result := array()[0]
  19216. END Test.
  19217. negative: changing indexed temporary object array
  19218. MODULE Test;
  19219. TYPE Object = OBJECT END Object;
  19220. VAR array: PROCEDURE (): ARRAY 10 OF Object; value: Object;
  19221. BEGIN array()[0] := value;
  19222. END Test.
  19223. positive: changing member of indexed temporary object array
  19224. MODULE Test;
  19225. TYPE Object = OBJECT VAR i: INTEGER END Object;
  19226. VAR array: PROCEDURE (): ARRAY 10 OF Object;
  19227. BEGIN array()[0].i := 5;
  19228. END Test.
  19229. positive: indexing variable base object array
  19230. MODULE Test;
  19231. VAR array: ARRAY 10 OF OBJECT; result: OBJECT;
  19232. BEGIN result := array[0]
  19233. END Test.
  19234. positive: indexing temporary base object array
  19235. MODULE Test;
  19236. VAR array: PROCEDURE (): ARRAY 10 OF OBJECT; result: OBJECT;
  19237. BEGIN result := array()[0]
  19238. END Test.
  19239. negative: changing indexed temporary base object array
  19240. MODULE Test;
  19241. VAR array: PROCEDURE (): ARRAY 10 OF OBJECT; value: OBJECT;
  19242. BEGIN array()[0] := value;
  19243. END Test.
  19244. positive: indexing variable pointer to array array
  19245. MODULE Test;
  19246. VAR array: ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  19247. BEGIN result := array[0]
  19248. END Test.
  19249. positive: indexing temporary pointer to array array
  19250. MODULE Test;
  19251. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  19252. BEGIN result := array()[0]
  19253. END Test.
  19254. negative: changing indexed temporary pointer to array array
  19255. MODULE Test;
  19256. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; value: POINTER TO ARRAY 10 OF CHAR;
  19257. BEGIN array()[0] := value;
  19258. END Test.
  19259. positive: changing element of indexed temporary pointer to array array
  19260. MODULE Test;
  19261. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR;
  19262. BEGIN array()[0][0] := 'f';
  19263. END Test.
  19264. positive: indexing variable array of pointer to record
  19265. MODULE Test;
  19266. TYPE Record = RECORD END;
  19267. VAR array: ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  19268. BEGIN result := array[0]
  19269. END Test.
  19270. positive: indexing temporary array of pointer to record
  19271. MODULE Test;
  19272. TYPE Record = RECORD END;
  19273. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  19274. BEGIN result := array()[0]
  19275. END Test.
  19276. negative: changing indexed temporary array of pointer to record
  19277. MODULE Test;
  19278. TYPE Record = RECORD END;
  19279. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO Record; value: POINTER TO Record;
  19280. BEGIN array()[0] := value;
  19281. END Test.
  19282. positive: changing element of indexed temporary array of pointer to record
  19283. MODULE Test;
  19284. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO RECORD i: INTEGER END;
  19285. BEGIN array()[0].i := 5;
  19286. END Test.
  19287. positive: indexing variable procedure array
  19288. MODULE Test;
  19289. VAR array: ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  19290. BEGIN result := array[0]
  19291. END Test.
  19292. positive: indexing temporary procedure array
  19293. MODULE Test;
  19294. VAR array: PROCEDURE (): ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  19295. BEGIN result := array()[0]
  19296. END Test.
  19297. negative: changing indexed temporary procedure array
  19298. MODULE Test;
  19299. VAR array: PROCEDURE (): ARRAY 10 OF PROCEDURE; value: PROCEDURE;
  19300. BEGIN array()[0] := value;
  19301. END Test.
  19302. negative: variable array as index
  19303. MODULE Test;
  19304. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  19305. BEGIN result := array[array]
  19306. END Test.
  19307. negative: member selection on variable array
  19308. MODULE Test;
  19309. VAR array, result: ARRAY 10 OF CHAR;
  19310. BEGIN result := array.member
  19311. END Test.
  19312. negative: calling variable array
  19313. MODULE Test;
  19314. VAR array: ARRAY 10 OF CHAR;
  19315. BEGIN array
  19316. END Test.
  19317. # variable records
  19318. negative: arithmetic negation on variable record
  19319. MODULE Test;
  19320. VAR record, result: RECORD END;
  19321. BEGIN result := -record;
  19322. END Test.
  19323. negative: logical negation on variable record
  19324. MODULE Test;
  19325. VAR record, result: RECORD END;
  19326. BEGIN result := ~record;
  19327. END Test.
  19328. negative: dereferencing variable record
  19329. MODULE Test;
  19330. VAR record, result: RECORD END;
  19331. BEGIN result := record^;
  19332. END Test.
  19333. negative: addition on variable records
  19334. MODULE Test;
  19335. VAR record, result: RECORD END;
  19336. BEGIN result := record + record;
  19337. END Test.
  19338. negative: subtraction on variable records
  19339. MODULE Test;
  19340. VAR record, result: RECORD END;
  19341. BEGIN result := record - record
  19342. END Test.
  19343. negative: multiplication on variable records
  19344. MODULE Test;
  19345. VAR record, result: RECORD END;
  19346. BEGIN result := record * record
  19347. END Test.
  19348. negative: integer division on variable records
  19349. MODULE Test;
  19350. VAR record: RECORD END; result: INTEGER;
  19351. BEGIN result := record DIV record
  19352. END Test.
  19353. negative: real division on variable records
  19354. MODULE Test;
  19355. VAR record: RECORD END; result: REAL;
  19356. BEGIN result := record / record
  19357. END Test.
  19358. negative: modulo on variable records
  19359. MODULE Test;
  19360. VAR record: RECORD END; result: INTEGER;
  19361. BEGIN result := record MOD record
  19362. END Test.
  19363. negative: equal relation on variable records
  19364. MODULE Test;
  19365. VAR record: RECORD END; result: BOOLEAN;
  19366. BEGIN result := record = record
  19367. END Test.
  19368. negative: unequal relation on variable records
  19369. MODULE Test;
  19370. VAR record: RECORD END; result: BOOLEAN;
  19371. BEGIN result := record # record
  19372. END Test.
  19373. negative: less relation on variable records
  19374. MODULE Test;
  19375. VAR record: RECORD END; result: BOOLEAN;
  19376. BEGIN result := record < record
  19377. END Test.
  19378. negative: less or equal relation on variable records
  19379. MODULE Test;
  19380. VAR record: RECORD END; result: BOOLEAN;
  19381. BEGIN result := record <= record
  19382. END Test.
  19383. negative: greater relation on variable records
  19384. MODULE Test;
  19385. VAR record: RECORD END; result: BOOLEAN;
  19386. BEGIN result := record > record
  19387. END Test.
  19388. negative: greater or equal relation on variable records
  19389. MODULE Test;
  19390. VAR record: RECORD END; result: BOOLEAN;
  19391. BEGIN result := record >= record
  19392. END Test.
  19393. negative: set membership on variable records
  19394. MODULE Test;
  19395. VAR record: RECORD END; result: BOOLEAN;
  19396. BEGIN result := record IN record
  19397. END Test.
  19398. negative: type test on variable records
  19399. MODULE Test;
  19400. VAR record: RECORD END; result: BOOLEAN;
  19401. BEGIN result := record IS record
  19402. END Test.
  19403. negative: type test on variable record
  19404. MODULE Test;
  19405. VAR record: RECORD END; result: BOOLEAN;
  19406. BEGIN result := record IS RECORD END
  19407. END Test.
  19408. positive: type test on same record type
  19409. MODULE Test;
  19410. TYPE Type = RECORD END;
  19411. VAR record: Type; result: BOOLEAN;
  19412. BEGIN result := record IS Type
  19413. END Test.
  19414. positive: type test on extending record type
  19415. MODULE Test;
  19416. TYPE Record = RECORD END; Type = RECORD (Record) END;
  19417. VAR record: Record; result: BOOLEAN;
  19418. BEGIN result := record IS Type
  19419. END Test.
  19420. negative: type test on extended record type
  19421. MODULE Test;
  19422. TYPE Record = RECORD END; Type = Record;
  19423. VAR record: RECORD (Record) END; result: BOOLEAN;
  19424. BEGIN result := record IS Type
  19425. END Test.
  19426. negative: type test on incompatible record type
  19427. MODULE Test;
  19428. TYPE Type = RECORD END;
  19429. VAR record: RECORD END; result: BOOLEAN;
  19430. BEGIN result := record IS Type
  19431. END Test.
  19432. negative: type guard on variable records
  19433. MODULE Test;
  19434. PROCEDURE Procedure (VAR record, result: RECORD END);
  19435. BEGIN result := record(record)
  19436. END Procedure;
  19437. END Test.
  19438. negative: type guard on variable record
  19439. MODULE Test;
  19440. PROCEDURE Procedure (VAR record, result: RECORD END);
  19441. BEGIN result := record(RECORD END)
  19442. END Procedure;
  19443. END Test.
  19444. positive: type guard on same record type
  19445. MODULE Test;
  19446. TYPE Type = RECORD END;
  19447. PROCEDURE Procedure (VAR record, result: Type);
  19448. BEGIN result := record(Type)
  19449. END Procedure;
  19450. END Test.
  19451. positive: type guard on extending record type
  19452. MODULE Test;
  19453. TYPE Record = RECORD END; Type = RECORD (Record) END;
  19454. PROCEDURE Procedure (VAR record: Record; result: Type);
  19455. BEGIN result := record(Type)
  19456. END Procedure;
  19457. END Test.
  19458. negative: type guard on static extending record type
  19459. MODULE Test;
  19460. TYPE Record = RECORD END; Type = RECORD (Record) END;
  19461. VAR record: Record; result: Type;
  19462. BEGIN result := record(Type)
  19463. END Test.
  19464. negative: type guard on extended record type
  19465. MODULE Test;
  19466. TYPE Record = RECORD END; Type = Record;
  19467. PROCEDURE Procedure (VAR record: RECORD (Record) END; result: Type);
  19468. BEGIN result := record(Type)
  19469. END Procedure;
  19470. END Test.
  19471. negative: type guard on incompatible record type
  19472. MODULE Test;
  19473. TYPE Type = RECORD END;
  19474. PROCEDURE Procedure (VAR record: RECORD END; result: Type);
  19475. BEGIN result := record(Type)
  19476. END Procedure;
  19477. END Test.
  19478. negative: logical and on variable records
  19479. MODULE Test;
  19480. VAR record, result: RECORD END;
  19481. BEGIN result := record & record
  19482. END Test.
  19483. negative: logical or on variable records
  19484. MODULE Test;
  19485. VAR record, result: RECORD END;
  19486. BEGIN result := record OR record
  19487. END Test.
  19488. negative: ordinal value of variable record
  19489. MODULE Test;
  19490. VAR record: RECORD END; result: INTEGER;
  19491. BEGIN result := ORD (record)
  19492. END Test.
  19493. negative: character value of variable record
  19494. MODULE Test;
  19495. VAR record: RECORD END; result: CHAR;
  19496. BEGIN result := CHR (record)
  19497. END Test.
  19498. negative: absolute value of variable record
  19499. MODULE Test;
  19500. VAR record, result: RECORD END;
  19501. BEGIN result := ABS (record)
  19502. END Test.
  19503. negative: odd test on variable record
  19504. MODULE Test;
  19505. VAR record: RECORD END; result: BOOLEAN;
  19506. BEGIN result := ODD (record)
  19507. END Test.
  19508. negative: capital letter of variable record
  19509. MODULE Test;
  19510. VAR record: RECORD END; result: CHAR;
  19511. BEGIN result := CAP (record)
  19512. END Test.
  19513. negative: arithmetic shift of variable records
  19514. MODULE Test;
  19515. VAR record, result: RECORD END;
  19516. BEGIN result := ASH (record, record)
  19517. END Test.
  19518. negative: short on variable record
  19519. MODULE Test;
  19520. VAR record, result: RECORD END;
  19521. BEGIN result := SHORT (record)
  19522. END Test.
  19523. negative: long on variable record
  19524. MODULE Test;
  19525. VAR record, result: RECORD END;
  19526. BEGIN result := LONG (record)
  19527. END Test.
  19528. negative: entier on variable record
  19529. MODULE Test;
  19530. VAR record, result: RECORD END;
  19531. BEGIN result := ENTIER (record)
  19532. END Test.
  19533. negative: unary length of variable record
  19534. MODULE Test;
  19535. VAR record: RECORD END; result: LONGINT;
  19536. BEGIN result := LEN (record)
  19537. END Test.
  19538. negative: binary length of variable record
  19539. MODULE Test;
  19540. VAR record: RECORD END; result: LONGINT;
  19541. BEGIN result := LEN (record, 0)
  19542. END Test.
  19543. negative: indexing variable record
  19544. MODULE Test;
  19545. VAR record: RECORD END; result: CHAR;
  19546. BEGIN result := record[0]
  19547. END Test.
  19548. negative: variable record as index
  19549. MODULE Test;
  19550. VAR array: ARRAY 10 OF CHAR; result: CHAR; record: RECORD END;
  19551. BEGIN result := array[record]
  19552. END Test.
  19553. positive: member selection on variable record
  19554. MODULE Test;
  19555. VAR record: RECORD member: SET END; result: SET;
  19556. BEGIN result := record.member
  19557. END Test.
  19558. positive: member modification on variable record
  19559. MODULE Test;
  19560. VAR record: RECORD member: SET END; value: SET;
  19561. BEGIN record.member := value
  19562. END Test.
  19563. positive: member selection on temporary record
  19564. MODULE Test;
  19565. VAR record: PROCEDURE (): RECORD member: SET END; result: SET;
  19566. BEGIN result := record ().member
  19567. END Test.
  19568. negative: member modification on temporary record
  19569. MODULE Test;
  19570. VAR record: PROCEDURE (): RECORD member: SET END; value: SET;
  19571. BEGIN record ().member := value
  19572. END Test.
  19573. negative: calling variable record
  19574. MODULE Test;
  19575. VAR record: RECORD END;
  19576. BEGIN record
  19577. END Test.
  19578. # variable objects
  19579. negative: arithmetic negation on variable object
  19580. MODULE Test;
  19581. VAR object, result: OBJECT END;
  19582. BEGIN result := -object;
  19583. END Test.
  19584. negative: logical negation on variable object
  19585. MODULE Test;
  19586. VAR object, result: OBJECT END;
  19587. BEGIN result := ~object;
  19588. END Test.
  19589. negative: dereferencing variable object
  19590. MODULE Test;
  19591. VAR object, result: OBJECT END;
  19592. BEGIN result := object^;
  19593. END Test.
  19594. negative: addition on variable objects
  19595. MODULE Test;
  19596. VAR object, result: OBJECT END;
  19597. BEGIN result := object + object;
  19598. END Test.
  19599. negative: subtraction on variable objects
  19600. MODULE Test;
  19601. VAR object, result: OBJECT END;
  19602. BEGIN result := object - object
  19603. END Test.
  19604. negative: multiplication on variable objects
  19605. MODULE Test;
  19606. VAR object, result: OBJECT END;
  19607. BEGIN result := object * object
  19608. END Test.
  19609. negative: integer division on variable objects
  19610. MODULE Test;
  19611. VAR object: OBJECT END; result: INTEGER;
  19612. BEGIN result := object DIV object
  19613. END Test.
  19614. negative: real division on variable objects
  19615. MODULE Test;
  19616. VAR object: OBJECT END; result: REAL;
  19617. BEGIN result := object / object
  19618. END Test.
  19619. negative: modulo on variable objects
  19620. MODULE Test;
  19621. VAR object: OBJECT END; result: INTEGER;
  19622. BEGIN result := object MOD object
  19623. END Test.
  19624. positive: equal relation on variable objects
  19625. MODULE Test;
  19626. VAR object: OBJECT END; result: BOOLEAN;
  19627. BEGIN result := object = object
  19628. END Test.
  19629. positive: equal relation on compatible variable objects
  19630. MODULE Test;
  19631. TYPE Object = OBJECT END Object;
  19632. VAR object1: Object; object2: OBJECT (Object) END; result: BOOLEAN;
  19633. BEGIN result := (object1 = object1) OR (object2 = object1)
  19634. END Test.
  19635. negative: equal relation on incompatible variable objects
  19636. MODULE Test;
  19637. VAR object1: OBJECT END; object2: OBJECT END; result: BOOLEAN;
  19638. BEGIN result := (object1 = object1) OR (object2 = object1)
  19639. END Test.
  19640. positive: unequal relation on variable objects
  19641. MODULE Test;
  19642. VAR object: OBJECT END; result: BOOLEAN;
  19643. BEGIN result := object # object
  19644. END Test.
  19645. positive: unequal relation on compatible variable objects
  19646. MODULE Test;
  19647. TYPE Object = OBJECT END Object;
  19648. VAR object1: Object; object2: OBJECT (Object) END; result: BOOLEAN;
  19649. BEGIN result := (object1 # object1) OR (object2 # object1)
  19650. END Test.
  19651. negative: unequal relation on incompatible variable objects
  19652. MODULE Test;
  19653. VAR object1: OBJECT END; object2: OBJECT END; result: BOOLEAN;
  19654. BEGIN result := (object1 # object1) OR (object2 # object1)
  19655. END Test.
  19656. negative: less relation on variable objects
  19657. MODULE Test;
  19658. VAR object: OBJECT END; result: BOOLEAN;
  19659. BEGIN result := object < object
  19660. END Test.
  19661. negative: less or equal relation on variable objects
  19662. MODULE Test;
  19663. VAR object: OBJECT END; result: BOOLEAN;
  19664. BEGIN result := object <= object
  19665. END Test.
  19666. negative: greater relation on variable objects
  19667. MODULE Test;
  19668. VAR object: OBJECT END; result: BOOLEAN;
  19669. BEGIN result := object > object
  19670. END Test.
  19671. negative: greater or equal relation on variable objects
  19672. MODULE Test;
  19673. VAR object: OBJECT END; result: BOOLEAN;
  19674. BEGIN result := object >= object
  19675. END Test.
  19676. negative: set membership on variable objects
  19677. MODULE Test;
  19678. VAR object: OBJECT END; result: BOOLEAN;
  19679. BEGIN result := object IN object
  19680. END Test.
  19681. negative: type test on variable objects
  19682. MODULE Test;
  19683. VAR object: OBJECT END; result: BOOLEAN;
  19684. BEGIN result := object IS object
  19685. END Test.
  19686. negative: type test on variable object
  19687. MODULE Test;
  19688. VAR object: OBJECT END; result: BOOLEAN;
  19689. BEGIN result := object IS OBJECT;
  19690. END Test.
  19691. positive: type test on same object type
  19692. MODULE Test;
  19693. TYPE Type = OBJECT END Type;
  19694. VAR object: Type; result: BOOLEAN;
  19695. BEGIN result := object IS Type
  19696. END Test.
  19697. positive: type test on extending object type
  19698. MODULE Test;
  19699. TYPE Object = OBJECT END Object; Type = OBJECT (Object) END Type;
  19700. VAR object: Object; result: BOOLEAN;
  19701. BEGIN result := object IS Type
  19702. END Test.
  19703. negative: type test on extended object type
  19704. MODULE Test;
  19705. TYPE Object = OBJECT END Object; Type = Object;
  19706. VAR object: OBJECT (Object) END; result: BOOLEAN;
  19707. BEGIN result := object IS Type
  19708. END Test.
  19709. negative: type test on incompatible object type
  19710. MODULE Test;
  19711. TYPE Type = OBJECT END Type;
  19712. VAR object: OBJECT END; result: BOOLEAN;
  19713. BEGIN result := object IS Type
  19714. END Test.
  19715. positive: type test on self and same object type
  19716. MODULE Test;
  19717. TYPE Object = OBJECT
  19718. VAR result: BOOLEAN;
  19719. BEGIN result := SELF IS Type
  19720. END Object;
  19721. TYPE Type = Object;
  19722. END Test.
  19723. positive: type test on self and extending object type
  19724. MODULE Test;
  19725. TYPE Object = OBJECT
  19726. VAR result: BOOLEAN;
  19727. BEGIN result := SELF IS Type
  19728. END Object;
  19729. TYPE Type = OBJECT (Object) END Type;
  19730. END Test.
  19731. negative: type test on self and extended object type
  19732. MODULE Test;
  19733. TYPE Object = OBJECT (Type)
  19734. VAR result: BOOLEAN;
  19735. BEGIN result := SELF IS Type
  19736. END Object;
  19737. TYPE Type = OBJECT END Type;
  19738. END Test.
  19739. negative: type guard on variable objects
  19740. MODULE Test;
  19741. VAR object, result: OBJECT END;
  19742. BEGIN result := object(object)
  19743. END Test.
  19744. negative: type guard on variable object
  19745. MODULE Test;
  19746. TYPE Type = OBJECT;
  19747. VAR object, result: OBJECT END;
  19748. BEGIN result := object(Type)
  19749. END Test.
  19750. positive: type guard on same object type
  19751. MODULE Test;
  19752. TYPE Type = OBJECT END Type;
  19753. VAR object, result: Type;
  19754. BEGIN result := object(Type)
  19755. END Test.
  19756. positive: type guard on extending object type
  19757. MODULE Test;
  19758. TYPE Object = OBJECT END Object; Type = OBJECT (Object) END Type;
  19759. VAR object: Object; result: Type;
  19760. BEGIN result := object(Type)
  19761. END Test.
  19762. negative: type guard on extended object type
  19763. MODULE Test;
  19764. TYPE Object = OBJECT END Object; Type = Object;
  19765. VAR object: OBJECT (Object) END; result: Type;
  19766. BEGIN result := object(Type)
  19767. END Test.
  19768. negative: type guard on incompatible object type
  19769. MODULE Test;
  19770. TYPE Type = OBJECT END Type;
  19771. VAR object: OBJECT END; result: Type;
  19772. BEGIN result := object(Type)
  19773. END Test.
  19774. positive: type guard on self and same object type
  19775. MODULE Test;
  19776. TYPE Object = OBJECT
  19777. VAR result: Type;
  19778. BEGIN result := SELF(Type)
  19779. END Object;
  19780. TYPE Type = Object;
  19781. END Test.
  19782. positive: type guard on self and extending object type
  19783. MODULE Test;
  19784. TYPE Object = OBJECT
  19785. VAR result: Type;
  19786. BEGIN result := SELF(Type)
  19787. END Object;
  19788. TYPE Type = OBJECT (Object) END Type;
  19789. END Test.
  19790. negative: type guard on self and extended object type
  19791. MODULE Test;
  19792. TYPE Object = OBJECT (Type)
  19793. VAR result: Type;
  19794. BEGIN result := SELF(Type)
  19795. END Object;
  19796. TYPE Type = OBJECT END Type;
  19797. END Test.
  19798. negative: logical and on variable objects
  19799. MODULE Test;
  19800. VAR object, result: OBJECT END;
  19801. BEGIN result := object & object
  19802. END Test.
  19803. negative: logical or on variable objects
  19804. MODULE Test;
  19805. VAR object, result: OBJECT END;
  19806. BEGIN result := object OR object
  19807. END Test.
  19808. negative: ordinal value of variable object
  19809. MODULE Test;
  19810. VAR object: OBJECT END; result: INTEGER;
  19811. BEGIN result := ORD (object)
  19812. END Test.
  19813. negative: character value of variable object
  19814. MODULE Test;
  19815. VAR object: OBJECT END; result: CHAR;
  19816. BEGIN result := CHR (object)
  19817. END Test.
  19818. negative: absolute value of variable object
  19819. MODULE Test;
  19820. VAR object, result: OBJECT END;
  19821. BEGIN result := ABS (object)
  19822. END Test.
  19823. negative: odd test on variable object
  19824. MODULE Test;
  19825. VAR object: OBJECT END; result: BOOLEAN;
  19826. BEGIN result := ODD (object)
  19827. END Test.
  19828. negative: capital letter of variable object
  19829. MODULE Test;
  19830. VAR object: OBJECT END; result: CHAR;
  19831. BEGIN result := CAP (object)
  19832. END Test.
  19833. negative: arithmetic shift of variable objects
  19834. MODULE Test;
  19835. VAR object, result: OBJECT END;
  19836. BEGIN result := ASH (object, object)
  19837. END Test.
  19838. negative: short on variable object
  19839. MODULE Test;
  19840. VAR object, result: OBJECT END;
  19841. BEGIN result := SHORT (object)
  19842. END Test.
  19843. negative: long on variable object
  19844. MODULE Test;
  19845. VAR object, result: OBJECT END;
  19846. BEGIN result := LONG (object)
  19847. END Test.
  19848. negative: entier on variable object
  19849. MODULE Test;
  19850. VAR object, result: OBJECT END;
  19851. BEGIN result := ENTIER (object)
  19852. END Test.
  19853. negative: unary length of variable object
  19854. MODULE Test;
  19855. VAR object: OBJECT END; result: LONGINT;
  19856. BEGIN result := LEN (object)
  19857. END Test.
  19858. negative: binary length of variable object
  19859. MODULE Test;
  19860. VAR object: OBJECT END; result: LONGINT;
  19861. BEGIN result := LEN (object, 0)
  19862. END Test.
  19863. negative: indexing variable object
  19864. MODULE Test;
  19865. VAR object: OBJECT END; result: CHAR;
  19866. BEGIN result := object[0]
  19867. END Test.
  19868. negative: variable object as index
  19869. MODULE Test;
  19870. VAR array: ARRAY 10 OF CHAR; result: CHAR; object: OBJECT END;
  19871. BEGIN result := array[object]
  19872. END Test.
  19873. positive: member selection on variable object
  19874. MODULE Test;
  19875. VAR object: OBJECT VAR member: SET END; result: SET;
  19876. BEGIN result := object.member
  19877. END Test.
  19878. positive: member modification on variable object
  19879. MODULE Test;
  19880. VAR object: OBJECT VAR member: SET END; value: SET;
  19881. BEGIN object.member := value
  19882. END Test.
  19883. positive: member selection on temporary object
  19884. MODULE Test;
  19885. VAR object: PROCEDURE (): OBJECT VAR member: SET END; result: SET;
  19886. BEGIN result := object ().member
  19887. END Test.
  19888. positive: member modification on temporary object
  19889. MODULE Test;
  19890. VAR record: PROCEDURE (): OBJECT VAR member: SET END; value: SET;
  19891. BEGIN record ().member := value
  19892. END Test.
  19893. negative: calling variable object
  19894. MODULE Test;
  19895. VAR object: OBJECT END;
  19896. BEGIN object
  19897. END Test.
  19898. # variable base objects
  19899. negative: arithmetic negation on variable base object
  19900. MODULE Test;
  19901. VAR object, result: OBJECT;
  19902. BEGIN result := -object;
  19903. END Test.
  19904. negative: logical negation on variable base object
  19905. MODULE Test;
  19906. VAR object, result: OBJECT;
  19907. BEGIN result := ~object;
  19908. END Test.
  19909. negative: dereferencing variable base object
  19910. MODULE Test;
  19911. VAR object, result: OBJECT;
  19912. BEGIN result := object^;
  19913. END Test.
  19914. negative: addition on variable base objects
  19915. MODULE Test;
  19916. VAR object, result: OBJECT;
  19917. BEGIN result := object + object;
  19918. END Test.
  19919. negative: subtraction on variable base objects
  19920. MODULE Test;
  19921. VAR object, result: OBJECT;
  19922. BEGIN result := object - object
  19923. END Test.
  19924. negative: multiplication on variable base objects
  19925. MODULE Test;
  19926. VAR object, result: OBJECT;
  19927. BEGIN result := object * object
  19928. END Test.
  19929. negative: integer division on variable base objects
  19930. MODULE Test;
  19931. VAR object: OBJECT; result: INTEGER;
  19932. BEGIN result := object DIV object
  19933. END Test.
  19934. negative: real division on variable base objects
  19935. MODULE Test;
  19936. VAR object: OBJECT; result: REAL;
  19937. BEGIN result := object / object
  19938. END Test.
  19939. negative: modulo on variable base objects
  19940. MODULE Test;
  19941. VAR object: OBJECT; result: INTEGER;
  19942. BEGIN result := object MOD object
  19943. END Test.
  19944. positive: equal relation on variable base objects
  19945. MODULE Test;
  19946. VAR object: OBJECT; result: BOOLEAN;
  19947. BEGIN result := object = object
  19948. END Test.
  19949. positive: equal relation on compatible variable base objects
  19950. MODULE Test;
  19951. VAR object1: OBJECT; object2: OBJECT END; result: BOOLEAN;
  19952. BEGIN result := (object1 = object1) OR (object2 = object1)
  19953. END Test.
  19954. positive: unequal relation on variable base objects
  19955. MODULE Test;
  19956. VAR object: OBJECT; result: BOOLEAN;
  19957. BEGIN result := object # object
  19958. END Test.
  19959. positive: unequal relation on compatible variable base objects
  19960. MODULE Test;
  19961. VAR object1: OBJECT; object2: OBJECT END; result: BOOLEAN;
  19962. BEGIN result := (object1 # object1) OR (object2 # object1)
  19963. END Test.
  19964. negative: less relation on variable base objects
  19965. MODULE Test;
  19966. VAR object: OBJECT; result: BOOLEAN;
  19967. BEGIN result := object < object
  19968. END Test.
  19969. negative: less or equal relation on variable base objects
  19970. MODULE Test;
  19971. VAR object: OBJECT; result: BOOLEAN;
  19972. BEGIN result := object <= object
  19973. END Test.
  19974. negative: greater relation on variable base objects
  19975. MODULE Test;
  19976. VAR object: OBJECT; result: BOOLEAN;
  19977. BEGIN result := object > object
  19978. END Test.
  19979. negative: greater or equal relation on variable base objects
  19980. MODULE Test;
  19981. VAR object: OBJECT; result: BOOLEAN;
  19982. BEGIN result := object >= object
  19983. END Test.
  19984. negative: set membership on variable base objects
  19985. MODULE Test;
  19986. VAR object: OBJECT; result: BOOLEAN;
  19987. BEGIN result := object IN object
  19988. END Test.
  19989. negative: type test on variable base objects
  19990. MODULE Test;
  19991. VAR object: OBJECT; result: BOOLEAN;
  19992. BEGIN result := object IS object
  19993. END Test.
  19994. negative: type test on variable base object
  19995. MODULE Test;
  19996. VAR object: OBJECT; result: BOOLEAN;
  19997. BEGIN result := object IS OBJECT;
  19998. END Test.
  19999. positive: type test on base object type
  20000. MODULE Test;
  20001. TYPE Type = OBJECT;
  20002. VAR object: Type; result: BOOLEAN;
  20003. BEGIN result := object IS Type
  20004. END Test.
  20005. positive: type test on extending base object type
  20006. MODULE Test;
  20007. TYPE Type = OBJECT END Type;
  20008. VAR object: OBJECT; result: BOOLEAN;
  20009. BEGIN result := object IS Type
  20010. END Test.
  20011. negative: type test on extended base object type
  20012. MODULE Test;
  20013. TYPE Type = OBJECT;
  20014. VAR object: OBJECT END; result: BOOLEAN;
  20015. BEGIN result := object IS Type
  20016. END Test.
  20017. negative: type guard on variable base objects
  20018. MODULE Test;
  20019. VAR object, result: OBJECT;
  20020. BEGIN result := object(object)
  20021. END Test.
  20022. negative: type guard on variable base object
  20023. MODULE Test;
  20024. VAR object, result: OBJECT;
  20025. BEGIN result := object(OBJECT);
  20026. END Test.
  20027. positive: type guard on base object type
  20028. MODULE Test;
  20029. TYPE Type = OBJECT;
  20030. VAR object, result: Type;
  20031. BEGIN result := object(Type)
  20032. END Test.
  20033. positive: type guard on extending base object type
  20034. MODULE Test;
  20035. TYPE Type = OBJECT END Type;
  20036. VAR object: OBJECT; result: Type;
  20037. BEGIN result := object(Type)
  20038. END Test.
  20039. negative: type guard on extended base object type
  20040. MODULE Test;
  20041. TYPE Type = OBJECT;
  20042. VAR object: OBJECT END; result: Type;
  20043. BEGIN result := object(Type)
  20044. END Test.
  20045. negative: logical and on variable base objects
  20046. MODULE Test;
  20047. VAR object, result: OBJECT;
  20048. BEGIN result := object & object
  20049. END Test.
  20050. negative: logical or on variable base objects
  20051. MODULE Test;
  20052. VAR object, result: OBJECT;
  20053. BEGIN result := object OR object
  20054. END Test.
  20055. negative: ordinal value of variable base object
  20056. MODULE Test;
  20057. VAR object: OBJECT; result: INTEGER;
  20058. BEGIN result := ORD (object)
  20059. END Test.
  20060. negative: character value of variable base object
  20061. MODULE Test;
  20062. VAR object: OBJECT; result: CHAR;
  20063. BEGIN result := CHR (object)
  20064. END Test.
  20065. negative: absolute value of variable base object
  20066. MODULE Test;
  20067. VAR object, result: OBJECT;
  20068. BEGIN result := ABS (object)
  20069. END Test.
  20070. negative: odd test on variable base object
  20071. MODULE Test;
  20072. VAR object: OBJECT; result: BOOLEAN;
  20073. BEGIN result := ODD (object)
  20074. END Test.
  20075. negative: capital letter of variable base object
  20076. MODULE Test;
  20077. VAR object: OBJECT; result: CHAR;
  20078. BEGIN result := CAP (object)
  20079. END Test.
  20080. negative: arithmetic shift of variable base objects
  20081. MODULE Test;
  20082. VAR object, result: OBJECT;
  20083. BEGIN result := ASH (object, object)
  20084. END Test.
  20085. negative: short on variable base object
  20086. MODULE Test;
  20087. VAR object, result: OBJECT;
  20088. BEGIN result := SHORT (object)
  20089. END Test.
  20090. negative: long on variable base object
  20091. MODULE Test;
  20092. VAR object, result: OBJECT;
  20093. BEGIN result := LONG (object)
  20094. END Test.
  20095. negative: entier on variable base object
  20096. MODULE Test;
  20097. VAR object, result: OBJECT;
  20098. BEGIN result := ENTIER (object)
  20099. END Test.
  20100. negative: unary length of variable base object
  20101. MODULE Test;
  20102. VAR object: OBJECT; result: LONGINT;
  20103. BEGIN result := LEN (object)
  20104. END Test.
  20105. negative: binary length of variable base object
  20106. MODULE Test;
  20107. VAR object: OBJECT; result: LONGINT;
  20108. BEGIN result := LEN (object, 0)
  20109. END Test.
  20110. negative: indexing variable base object
  20111. MODULE Test;
  20112. VAR object: OBJECT; result: CHAR;
  20113. BEGIN result := object[0]
  20114. END Test.
  20115. negative: variable base object as index
  20116. MODULE Test;
  20117. VAR array: ARRAY 10 OF CHAR; result: CHAR; object: OBJECT;
  20118. BEGIN result := array[object]
  20119. END Test.
  20120. negative: member selection on variable base object
  20121. MODULE Test;
  20122. VAR object, result: OBJECT;
  20123. BEGIN result := object.member
  20124. END Test.
  20125. negative: calling variable base object
  20126. MODULE Test;
  20127. VAR object: OBJECT;
  20128. BEGIN object
  20129. END Test.
  20130. # variable pointers to record
  20131. negative: arithmetic negation on variable pointer to record
  20132. MODULE Test;
  20133. VAR pointer, result: POINTER TO RECORD END;
  20134. BEGIN result := -pointer;
  20135. END Test.
  20136. negative: logical negation on variable pointer to record
  20137. MODULE Test;
  20138. VAR pointer, result: POINTER TO RECORD END;
  20139. BEGIN result := ~pointer;
  20140. END Test.
  20141. positive: dereferencing variable pointer to record
  20142. MODULE Test;
  20143. TYPE Record = RECORD END;
  20144. VAR pointer: POINTER TO Record; result: Record;
  20145. BEGIN result := pointer^;
  20146. END Test.
  20147. negative: addition on variable pointers to record
  20148. MODULE Test;
  20149. VAR pointer, result: POINTER TO RECORD END;
  20150. BEGIN result := pointer + pointer;
  20151. END Test.
  20152. negative: subtraction on variable pointers to record
  20153. MODULE Test;
  20154. VAR pointer, result: POINTER TO RECORD END;
  20155. BEGIN result := pointer - pointer
  20156. END Test.
  20157. negative: multiplication on variable pointers to record
  20158. MODULE Test;
  20159. VAR pointer, result: POINTER TO RECORD END;
  20160. BEGIN result := pointer * pointer
  20161. END Test.
  20162. negative: integer division on variable pointers to record
  20163. MODULE Test;
  20164. VAR pointer: POINTER TO RECORD END; result: INTEGER;
  20165. BEGIN result := pointer DIV pointer
  20166. END Test.
  20167. negative: real division on variable pointers to record
  20168. MODULE Test;
  20169. VAR pointer: POINTER TO RECORD END; result: REAL;
  20170. BEGIN result := pointer / pointer
  20171. END Test.
  20172. negative: modulo on variable pointers to record
  20173. MODULE Test;
  20174. VAR pointer: POINTER TO RECORD END; result: INTEGER;
  20175. BEGIN result := pointer MOD pointer
  20176. END Test.
  20177. positive: equal relation on variable pointers to record
  20178. MODULE Test;
  20179. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20180. BEGIN result := pointer = pointer
  20181. END Test.
  20182. positive: equal relation on compatible variable pointers to record
  20183. MODULE Test;
  20184. TYPE Record = RECORD END;
  20185. VAR pointer1: POINTER TO Record; pointer2: POINTER TO RECORD (Record) END; result: BOOLEAN;
  20186. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20187. END Test.
  20188. negative: equal relation on incompatible variable pointers to record
  20189. MODULE Test;
  20190. VAR pointer1: POINTER TO RECORD END; pointer2: POINTER TO RECORD END; result: BOOLEAN;
  20191. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20192. END Test.
  20193. negative: equal relation on incompatible variable pointers to record and array
  20194. MODULE Test;
  20195. VAR pointer1: POINTER TO RECORD END; pointer2: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20196. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20197. END Test.
  20198. positive: unequal relation on variable pointers to record
  20199. MODULE Test;
  20200. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20201. BEGIN result := pointer # pointer
  20202. END Test.
  20203. positive: unequal relation on compatible variable pointers to record
  20204. MODULE Test;
  20205. TYPE Record = RECORD END;
  20206. VAR pointer1: POINTER TO Record; pointer2: POINTER TO RECORD (Record) END; result: BOOLEAN;
  20207. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20208. END Test.
  20209. negative: unequal relation on incompatible variable pointers to record
  20210. MODULE Test;
  20211. VAR pointer1: POINTER TO RECORD END; pointer2: POINTER TO RECORD END; result: BOOLEAN;
  20212. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20213. END Test.
  20214. negative: unequal relation on incompatible variable pointers to record and array
  20215. MODULE Test;
  20216. VAR pointer1: POINTER TO RECORD END; pointer2: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20217. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20218. END Test.
  20219. negative: less relation on variable pointers to record
  20220. MODULE Test;
  20221. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20222. BEGIN result := pointer < pointer
  20223. END Test.
  20224. negative: less or equal relation on variable pointers to record
  20225. MODULE Test;
  20226. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20227. BEGIN result := pointer <= pointer
  20228. END Test.
  20229. negative: greater relation on variable pointers to record
  20230. MODULE Test;
  20231. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20232. BEGIN result := pointer > pointer
  20233. END Test.
  20234. negative: greater or equal relation on variable pointers to record
  20235. MODULE Test;
  20236. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20237. BEGIN result := pointer >= pointer
  20238. END Test.
  20239. negative: set membership on variable pointers to record
  20240. MODULE Test;
  20241. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20242. BEGIN result := pointer IN pointer
  20243. END Test.
  20244. negative: type test on variable pointers to record
  20245. MODULE Test;
  20246. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20247. BEGIN result := pointer IS pointer
  20248. END Test.
  20249. negative: type test on variable pointer to record
  20250. MODULE Test;
  20251. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20252. BEGIN result := pointer IS POINTER TO RECORD END
  20253. END Test.
  20254. positive: type test on same pointer to record type
  20255. MODULE Test;
  20256. TYPE Type = POINTER TO RECORD END;
  20257. VAR pointer: Type; result: BOOLEAN;
  20258. BEGIN result := pointer IS Type
  20259. END Test.
  20260. positive: type test on extending pointer to record type
  20261. MODULE Test;
  20262. TYPE Record = RECORD END; Type = POINTER TO RECORD (Record) END;
  20263. VAR pointer: POINTER TO Record; result: BOOLEAN;
  20264. BEGIN result := pointer IS Type
  20265. END Test.
  20266. negative: type test on extended pointer to record type
  20267. MODULE Test;
  20268. TYPE Record = RECORD END; Type = POINTER TO Record;
  20269. VAR pointer: POINTER TO RECORD (Record) END; result: BOOLEAN;
  20270. BEGIN result := pointer IS Type
  20271. END Test.
  20272. negative: type test on incompatible pointer to record type
  20273. MODULE Test;
  20274. TYPE Type = POINTER TO RECORD END;
  20275. VAR record: POINTER TO RECORD END; result: BOOLEAN;
  20276. BEGIN result := record IS Type
  20277. END Test.
  20278. negative: type guard on variable pointers to record
  20279. MODULE Test;
  20280. VAR pointer, result: POINTER TO RECORD END;
  20281. BEGIN result := pointer(pointer)
  20282. END Test.
  20283. negative: type guard on variable pointer to record
  20284. MODULE Test;
  20285. VAR pointer, result: POINTER TO RECORD END;
  20286. BEGIN result := pointer(POINTER TO RECORD END)
  20287. END Test.
  20288. positive: type guard on same pointer to record type
  20289. MODULE Test;
  20290. TYPE Type = POINTER TO RECORD END;
  20291. VAR pointer, result: Type;
  20292. BEGIN result := pointer(Type)
  20293. END Test.
  20294. positive: type guard on extending pointer to record type
  20295. MODULE Test;
  20296. TYPE Record = RECORD END; Type = POINTER TO RECORD (Record) END;
  20297. VAR pointer: POINTER TO Record; result: Type;
  20298. BEGIN result := pointer(Type)
  20299. END Test.
  20300. negative: type guard on extended pointer to record type
  20301. MODULE Test;
  20302. TYPE Record = RECORD END; Type = POINTER TO Record;
  20303. VAR pointer: POINTER TO RECORD (Record) END; result: Type;
  20304. BEGIN result := pointer(Type)
  20305. END Test.
  20306. negative: type guard on incompatible pointer to record type
  20307. MODULE Test;
  20308. TYPE Type = POINTER TO RECORD END;
  20309. VAR record: POINTER TO RECORD END; result: Type;
  20310. BEGIN result := record(Type)
  20311. END Test.
  20312. negative: logical and on variable pointers to record
  20313. MODULE Test;
  20314. VAR pointer, result: POINTER TO RECORD END;
  20315. BEGIN result := pointer & pointer
  20316. END Test.
  20317. negative: logical or on variable pointers to record
  20318. MODULE Test;
  20319. VAR pointer, result: POINTER TO RECORD END;
  20320. BEGIN result := pointer OR pointer
  20321. END Test.
  20322. negative: ordinal value of variable pointer to record
  20323. MODULE Test;
  20324. VAR pointer: POINTER TO RECORD END; result: INTEGER;
  20325. BEGIN result := ORD (pointer)
  20326. END Test.
  20327. negative: character value of variable pointer to record
  20328. MODULE Test;
  20329. VAR pointer: POINTER TO RECORD END; result: CHAR;
  20330. BEGIN result := CHR (pointer)
  20331. END Test.
  20332. negative: absolute value of variable pointer to record
  20333. MODULE Test;
  20334. VAR pointer, result: POINTER TO RECORD END;
  20335. BEGIN result := ABS (pointer)
  20336. END Test.
  20337. negative: odd test on variable pointer to record
  20338. MODULE Test;
  20339. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20340. BEGIN result := ODD (pointer)
  20341. END Test.
  20342. negative: capital letter of variable pointer to record
  20343. MODULE Test;
  20344. VAR pointer: POINTER TO RECORD END; result: CHAR;
  20345. BEGIN result := CAP (pointer)
  20346. END Test.
  20347. negative: arithmetic shift of variable pointers to record
  20348. MODULE Test;
  20349. VAR pointer, result: POINTER TO RECORD END;
  20350. BEGIN result := ASH (pointer, pointer)
  20351. END Test.
  20352. negative: short on variable pointer to record
  20353. MODULE Test;
  20354. VAR pointer, result: POINTER TO RECORD END;
  20355. BEGIN result := SHORT (pointer)
  20356. END Test.
  20357. negative: long on variable pointer to record
  20358. MODULE Test;
  20359. VAR pointer, result: POINTER TO RECORD END;
  20360. BEGIN result := LONG (pointer)
  20361. END Test.
  20362. negative: entier on variable pointer to record
  20363. MODULE Test;
  20364. VAR pointer, result: POINTER TO RECORD END;
  20365. BEGIN result := ENTIER (pointer)
  20366. END Test.
  20367. negative: unary length of variable pointer to record
  20368. MODULE Test;
  20369. VAR pointer: POINTER TO RECORD END; result: LONGINT;
  20370. BEGIN result := LEN (pointer)
  20371. END Test.
  20372. negative: binary length of variable pointer to record
  20373. MODULE Test;
  20374. VAR pointer: POINTER TO RECORD END; result: LONGINT;
  20375. BEGIN result := LEN (pointer, 0)
  20376. END Test.
  20377. negative: indexing variable pointer to record
  20378. MODULE Test;
  20379. VAR pointer: POINTER TO RECORD END; result: CHAR;
  20380. BEGIN result := pointer[0]
  20381. END Test.
  20382. negative: variable pointer to record as index
  20383. MODULE Test;
  20384. VAR array: ARRAY 10 OF CHAR; result: CHAR; pointer: POINTER TO RECORD END;
  20385. BEGIN result := array[pointer]
  20386. END Test.
  20387. positive: member selection on variable pointer to record
  20388. MODULE Test;
  20389. VAR pointer: POINTER TO RECORD member: SET END; result: SET;
  20390. BEGIN result := pointer.member
  20391. END Test.
  20392. positive: member modification on variable pointer to record
  20393. MODULE Test;
  20394. VAR pointer: POINTER TO RECORD member: SET END; value: SET;
  20395. BEGIN pointer.member := value
  20396. END Test.
  20397. positive: member selection on temporary pointer to record
  20398. MODULE Test;
  20399. VAR pointer: PROCEDURE (): POINTER TO RECORD member: SET END; result: SET;
  20400. BEGIN result := pointer ().member
  20401. END Test.
  20402. positive: member modification on temporary pointer to record
  20403. MODULE Test;
  20404. VAR pointer: PROCEDURE (): POINTER TO RECORD member: SET END; value: SET;
  20405. BEGIN pointer ().member := value
  20406. END Test.
  20407. positive: member selection on dereferenced variable pointer to record
  20408. MODULE Test;
  20409. VAR pointer: POINTER TO RECORD member: SET END; result: SET;
  20410. BEGIN result := pointer^.member
  20411. END Test.
  20412. positive: member modification on dereferenced variable pointer to record
  20413. MODULE Test;
  20414. VAR pointer: POINTER TO RECORD member: SET END; value: SET;
  20415. BEGIN pointer^.member := value
  20416. END Test.
  20417. positive: member selection on dereferenced temporary pointer to record
  20418. MODULE Test;
  20419. VAR pointer: PROCEDURE (): POINTER TO RECORD member: SET END; result: SET;
  20420. BEGIN result := pointer ()^.member
  20421. END Test.
  20422. positive: member modification on dereferenced temporary pointer to record
  20423. MODULE Test;
  20424. VAR pointer: PROCEDURE (): POINTER TO RECORD member: SET END; value: SET;
  20425. BEGIN pointer ()^.member := value
  20426. END Test.
  20427. negative: calling variable pointer to record
  20428. MODULE Test;
  20429. VAR pointer: POINTER TO RECORD END;
  20430. BEGIN pointer
  20431. END Test.
  20432. # variable pointers to array
  20433. negative: arithmetic negation on variable pointer to array
  20434. MODULE Test;
  20435. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20436. BEGIN result := -pointer;
  20437. END Test.
  20438. negative: logical negation on variable pointer to array
  20439. MODULE Test;
  20440. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20441. BEGIN result := ~pointer;
  20442. END Test.
  20443. positive: dereferencing variable pointer to array
  20444. MODULE Test;
  20445. TYPE Array = ARRAY 10 OF CHAR;
  20446. VAR pointer: POINTER TO Array; result: Array;
  20447. BEGIN result := pointer^;
  20448. END Test.
  20449. negative: addition on variable pointers to array
  20450. MODULE Test;
  20451. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20452. BEGIN result := pointer + pointer;
  20453. END Test.
  20454. negative: subtraction on variable pointers to array
  20455. MODULE Test;
  20456. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20457. BEGIN result := pointer - pointer
  20458. END Test.
  20459. negative: multiplication on variable pointers to array
  20460. MODULE Test;
  20461. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20462. BEGIN result := pointer * pointer
  20463. END Test.
  20464. negative: integer division on variable pointers to array
  20465. MODULE Test;
  20466. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: INTEGER;
  20467. BEGIN result := pointer DIV pointer
  20468. END Test.
  20469. negative: real division on variable pointers to array
  20470. MODULE Test;
  20471. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: REAL;
  20472. BEGIN result := pointer / pointer
  20473. END Test.
  20474. negative: modulo on variable pointers to array
  20475. MODULE Test;
  20476. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: INTEGER;
  20477. BEGIN result := pointer MOD pointer
  20478. END Test.
  20479. positive: equal relation on variable pointers to array
  20480. MODULE Test;
  20481. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20482. BEGIN result := pointer = pointer
  20483. END Test.
  20484. positive: equal relation on compatible variable pointers to array
  20485. MODULE Test;
  20486. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20487. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20488. END Test.
  20489. negative: equal relation on incompatible variable pointers to array
  20490. MODULE Test;
  20491. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: POINTER TO ARRAY 20 OF CHAR; result: BOOLEAN;
  20492. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20493. END Test.
  20494. negative: equal relation on incompatible variable pointers to array and record
  20495. MODULE Test;
  20496. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: RECORD END; result: BOOLEAN;
  20497. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20498. END Test.
  20499. positive: unequal relation on variable pointers to array
  20500. MODULE Test;
  20501. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20502. BEGIN result := pointer # pointer
  20503. END Test.
  20504. positive: unequal relation on compatible variable pointers to array
  20505. MODULE Test;
  20506. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20507. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20508. END Test.
  20509. negative: unequal relation on incompatible variable pointers to array
  20510. MODULE Test;
  20511. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: POINTER TO ARRAY 20 OF CHAR; result: BOOLEAN;
  20512. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20513. END Test.
  20514. negative: unequal relation on incompatible variable pointers to array and record
  20515. MODULE Test;
  20516. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: RECORD END; result: BOOLEAN;
  20517. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20518. END Test.
  20519. negative: less relation on variable pointers to array
  20520. MODULE Test;
  20521. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20522. BEGIN result := pointer < pointer
  20523. END Test.
  20524. negative: less or equal relation on variable pointers to array
  20525. MODULE Test;
  20526. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20527. BEGIN result := pointer <= pointer
  20528. END Test.
  20529. negative: greater relation on variable pointers to array
  20530. MODULE Test;
  20531. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20532. BEGIN result := pointer > pointer
  20533. END Test.
  20534. negative: greater or equal relation on variable pointers to array
  20535. MODULE Test;
  20536. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20537. BEGIN result := pointer >= pointer
  20538. END Test.
  20539. negative: set membership on variable pointers to array
  20540. MODULE Test;
  20541. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20542. BEGIN result := pointer IN pointer
  20543. END Test.
  20544. negative: type test on variable pointers to array
  20545. MODULE Test;
  20546. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20547. BEGIN result := pointer IS pointer
  20548. END Test.
  20549. negative: type test on variable pointer to array
  20550. MODULE Test;
  20551. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20552. BEGIN result := pointer IS POINTER TO ARRAY 10 OF CHAR
  20553. END Test.
  20554. negative: type test on pointer to array type
  20555. MODULE Test;
  20556. TYPE Type = POINTER TO ARRAY 10 OF CHAR;
  20557. VAR pointer: Type; result: BOOLEAN;
  20558. BEGIN result := pointer IS Type
  20559. END Test.
  20560. negative: type guard on variable pointers to array
  20561. MODULE Test;
  20562. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20563. BEGIN result := pointer(pointer)
  20564. END Test.
  20565. negative: type guard on variable pointer to array
  20566. MODULE Test;
  20567. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20568. BEGIN result := pointer(POINTER TO ARRAY 10 OF CHAR)
  20569. END Test.
  20570. negative: type guard on pointer to array type
  20571. MODULE Test;
  20572. TYPE Type = POINTER TO ARRAY 10 OF CHAR;
  20573. VAR pointer: Type; result: Type;
  20574. BEGIN result := pointer(Type)
  20575. END Test.
  20576. negative: logical and on variable pointers to array
  20577. MODULE Test;
  20578. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20579. BEGIN result := pointer & pointer
  20580. END Test.
  20581. negative: logical or on variable pointers to array
  20582. MODULE Test;
  20583. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20584. BEGIN result := pointer OR pointer
  20585. END Test.
  20586. negative: ordinal value of variable pointer to array
  20587. MODULE Test;
  20588. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: INTEGER;
  20589. BEGIN result := ORD (pointer)
  20590. END Test.
  20591. negative: character value of variable pointer to array
  20592. MODULE Test;
  20593. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20594. BEGIN result := CHR (pointer)
  20595. END Test.
  20596. negative: absolute value of variable pointer to array
  20597. MODULE Test;
  20598. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20599. BEGIN result := ABS (pointer)
  20600. END Test.
  20601. negative: odd test on variable pointer to array
  20602. MODULE Test;
  20603. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20604. BEGIN result := ODD (pointer)
  20605. END Test.
  20606. negative: capital letter of variable pointer to array
  20607. MODULE Test;
  20608. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20609. BEGIN result := CAP (pointer)
  20610. END Test.
  20611. negative: arithmetic shift of variable pointers to array
  20612. MODULE Test;
  20613. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20614. BEGIN result := ASH (pointer, pointer)
  20615. END Test.
  20616. negative: short on variable pointer to array
  20617. MODULE Test;
  20618. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20619. BEGIN result := SHORT (pointer)
  20620. END Test.
  20621. negative: long on variable pointer to array
  20622. MODULE Test;
  20623. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20624. BEGIN result := LONG (pointer)
  20625. END Test.
  20626. negative: entier on variable pointer to array
  20627. MODULE Test;
  20628. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20629. BEGIN result := ENTIER (pointer)
  20630. END Test.
  20631. positive: unary length of variable pointer to array
  20632. MODULE Test;
  20633. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: LONGINT;
  20634. BEGIN result := LEN (pointer)
  20635. END Test.
  20636. positive: binary length of variable pointer to array
  20637. MODULE Test;
  20638. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: LONGINT;
  20639. BEGIN result := LEN (pointer, 0)
  20640. END Test.
  20641. positive: indexing variable pointer to boolean array
  20642. MODULE Test;
  20643. VAR array: POINTER TO ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  20644. BEGIN result := array[0]
  20645. END Test.
  20646. positive: indexing temporary pointer to boolean array
  20647. MODULE Test;
  20648. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  20649. BEGIN result := array()[0]
  20650. END Test.
  20651. positive: changing indexed temporary pointer to boolean array
  20652. MODULE Test;
  20653. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF BOOLEAN;
  20654. BEGIN array()[0] := TRUE;
  20655. END Test.
  20656. positive: indexing dereferenced variable pointer to boolean array
  20657. MODULE Test;
  20658. VAR array: POINTER TO ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  20659. BEGIN result := array^[0]
  20660. END Test.
  20661. positive: indexing dereferenced temporary pointer to boolean array
  20662. MODULE Test;
  20663. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  20664. BEGIN result := array()^[0]
  20665. END Test.
  20666. positive: changing dereferenced indexed temporary pointer to boolean array
  20667. MODULE Test;
  20668. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF BOOLEAN;
  20669. BEGIN array()^[0] := TRUE;
  20670. END Test.
  20671. positive: indexing variable pointer to character array
  20672. MODULE Test;
  20673. VAR array: POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20674. BEGIN result := array[0]
  20675. END Test.
  20676. positive: indexing temporary pointer to character array
  20677. MODULE Test;
  20678. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20679. BEGIN result := array()[0]
  20680. END Test.
  20681. positive: changing indexed temporary pointer to character array
  20682. MODULE Test;
  20683. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR;
  20684. BEGIN array()[0] := '0';
  20685. END Test.
  20686. positive: indexing dereferenced variable pointer to character array
  20687. MODULE Test;
  20688. VAR array: POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20689. BEGIN result := array^[0]
  20690. END Test.
  20691. positive: indexing dereferenced temporary pointer to character array
  20692. MODULE Test;
  20693. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20694. BEGIN result := array()^[0]
  20695. END Test.
  20696. positive: changing dereferenced indexed temporary pointer to character array
  20697. MODULE Test;
  20698. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR;
  20699. BEGIN array()^[0] := '0';
  20700. END Test.
  20701. positive: indexing variable pointer to integer array
  20702. MODULE Test;
  20703. VAR array: POINTER TO ARRAY 10 OF INTEGER; result: INTEGER;
  20704. BEGIN result := array[0]
  20705. END Test.
  20706. positive: indexing temporary pointer to integer array
  20707. MODULE Test;
  20708. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF INTEGER; result: INTEGER;
  20709. BEGIN result := array()[0]
  20710. END Test.
  20711. positive: changing indexed temporary pointer to integer array
  20712. MODULE Test;
  20713. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF INTEGER;
  20714. BEGIN array()[0] := 5;
  20715. END Test.
  20716. positive: indexing dereferenced variable pointer to integer array
  20717. MODULE Test;
  20718. VAR array: POINTER TO ARRAY 10 OF INTEGER; result: INTEGER;
  20719. BEGIN result := array^[0]
  20720. END Test.
  20721. positive: indexing dereferenced temporary pointer to integer array
  20722. MODULE Test;
  20723. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF INTEGER; result: INTEGER;
  20724. BEGIN result := array()^[0]
  20725. END Test.
  20726. positive: changing dereferenced indexed temporary pointer to integer array
  20727. MODULE Test;
  20728. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF INTEGER;
  20729. BEGIN array()^[0] := 5;
  20730. END Test.
  20731. positive: indexing variable pointer to real array
  20732. MODULE Test;
  20733. VAR array: POINTER TO ARRAY 10 OF REAL; result: REAL;
  20734. BEGIN result := array[0]
  20735. END Test.
  20736. positive: indexing temporary pointer to real array
  20737. MODULE Test;
  20738. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF REAL; result: REAL;
  20739. BEGIN result := array()[0]
  20740. END Test.
  20741. positive: changing indexed temporary pointer to real array
  20742. MODULE Test;
  20743. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF REAL;
  20744. BEGIN array()[0] := 5.0;
  20745. END Test.
  20746. positive: indexing dereferenced variable pointer to real array
  20747. MODULE Test;
  20748. VAR array: POINTER TO ARRAY 10 OF REAL; result: REAL;
  20749. BEGIN result := array^[0]
  20750. END Test.
  20751. positive: indexing dereferenced temporary pointer to real array
  20752. MODULE Test;
  20753. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF REAL; result: REAL;
  20754. BEGIN result := array()^[0]
  20755. END Test.
  20756. positive: changing dereferenced indexed temporary pointer to real array
  20757. MODULE Test;
  20758. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF REAL;
  20759. BEGIN array()^[0] := 5.0;
  20760. END Test.
  20761. positive: indexing variable pointer to set array
  20762. MODULE Test;
  20763. VAR array: POINTER TO ARRAY 10 OF SET; result: SET;
  20764. BEGIN result := array[0]
  20765. END Test.
  20766. positive: indexing temporary pointer to set array
  20767. MODULE Test;
  20768. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF SET; result: SET;
  20769. BEGIN result := array()[0]
  20770. END Test.
  20771. positive: changing indexed temporary pointer to set array
  20772. MODULE Test;
  20773. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF SET;
  20774. BEGIN array()[0] := {5};
  20775. END Test.
  20776. positive: indexing dereferenced variable pointer to set array
  20777. MODULE Test;
  20778. VAR array: POINTER TO ARRAY 10 OF SET; result: SET;
  20779. BEGIN result := array^[0]
  20780. END Test.
  20781. positive: indexing dereferenced temporary pointer to set array
  20782. MODULE Test;
  20783. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF SET; result: SET;
  20784. BEGIN result := array()^[0]
  20785. END Test.
  20786. positive: changing dereferenced indexed temporary pointer to set array
  20787. MODULE Test;
  20788. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF SET;
  20789. BEGIN array()^[0] := {5};
  20790. END Test.
  20791. positive: indexing variable pointer to array of array
  20792. MODULE Test;
  20793. VAR array: POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  20794. BEGIN result := array[0]
  20795. END Test.
  20796. positive: indexing temporary pointer to array of array
  20797. MODULE Test;
  20798. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  20799. BEGIN result := array()[0]
  20800. END Test.
  20801. positive: changing indexed temporary pointer to array of array
  20802. MODULE Test;
  20803. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; value: ARRAY 10 OF CHAR;
  20804. BEGIN array()[0] := value;
  20805. END Test.
  20806. positive: indexing dereferenced variable pointer to array of array
  20807. MODULE Test;
  20808. VAR array: POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  20809. BEGIN result := array^[0]
  20810. END Test.
  20811. positive: indexing dereferenced temporary pointer to array of array
  20812. MODULE Test;
  20813. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  20814. BEGIN result := array()^[0]
  20815. END Test.
  20816. positive: changing dereferenced indexed temporary pointer to array of array
  20817. MODULE Test;
  20818. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; value: ARRAY 10 OF CHAR;
  20819. BEGIN array()^[0] := value;
  20820. END Test.
  20821. positive: indexing variable pointer to record array
  20822. MODULE Test;
  20823. TYPE Record = RECORD END;
  20824. VAR array: POINTER TO ARRAY 10 OF Record; result: Record;
  20825. BEGIN result := array[0]
  20826. END Test.
  20827. positive: indexing temporary pointer to record array
  20828. MODULE Test;
  20829. TYPE Record = RECORD END;
  20830. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record; result: Record;
  20831. BEGIN result := array()[0]
  20832. END Test.
  20833. positive: changing indexed temporary pointer to record array
  20834. MODULE Test;
  20835. TYPE Record = RECORD END;
  20836. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record; value: Record;
  20837. BEGIN array()[0] := value;
  20838. END Test.
  20839. positive: changing member of indexed temporary pointer to record array
  20840. MODULE Test;
  20841. TYPE Record = RECORD i: INTEGER END;
  20842. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record;
  20843. BEGIN array()[0].i := 5;
  20844. END Test.
  20845. positive: indexing dereferenced variable pointer to array of record
  20846. MODULE Test;
  20847. TYPE Record = RECORD END;
  20848. VAR array: POINTER TO ARRAY 10 OF Record; result: Record;
  20849. BEGIN result := array^[0]
  20850. END Test.
  20851. positive: indexing dereferenced temporary pointer to array of record
  20852. MODULE Test;
  20853. TYPE Record = RECORD END;
  20854. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record; result: Record;
  20855. BEGIN result := array()^[0]
  20856. END Test.
  20857. positive: changing dereferenced indexed temporary pointer to array of record
  20858. MODULE Test;
  20859. TYPE Record = RECORD END;
  20860. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record; value: Record;
  20861. BEGIN array()^[0] := value;
  20862. END Test.
  20863. positive: changing member of dereferenced indexed temporary pointer to array of record
  20864. MODULE Test;
  20865. TYPE Record = RECORD i: INTEGER END;
  20866. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record;
  20867. BEGIN array()^[0].i := 5;
  20868. END Test.
  20869. positive: indexing variable pointer to object array
  20870. MODULE Test;
  20871. TYPE Object = OBJECT END Object;
  20872. VAR array: POINTER TO ARRAY 10 OF Object; result: Object;
  20873. BEGIN result := array[0]
  20874. END Test.
  20875. positive: indexing temporary pointer to object array
  20876. MODULE Test;
  20877. TYPE Object = OBJECT END Object;
  20878. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object; result: Object;
  20879. BEGIN result := array()[0]
  20880. END Test.
  20881. positive: changing indexed temporary pointer to object array
  20882. MODULE Test;
  20883. TYPE Object = OBJECT END Object;
  20884. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object; value: Object;
  20885. BEGIN array()[0] := value;
  20886. END Test.
  20887. positive: changing member of indexed temporary pointer to object array
  20888. MODULE Test;
  20889. TYPE Object = OBJECT VAR i: INTEGER END Object;
  20890. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object;
  20891. BEGIN array()[0].i := 5;
  20892. END Test.
  20893. positive: indexing dereferenced variable pointer to object array
  20894. MODULE Test;
  20895. TYPE Object = OBJECT END Object;
  20896. VAR array: POINTER TO ARRAY 10 OF Object; result: Object;
  20897. BEGIN result := array^[0]
  20898. END Test.
  20899. positive: indexing dereferenced temporary pointer to object array
  20900. MODULE Test;
  20901. TYPE Object = OBJECT END Object;
  20902. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object; result: Object;
  20903. BEGIN result := array()^[0]
  20904. END Test.
  20905. positive: changing dereferenced indexed temporary pointer to object array
  20906. MODULE Test;
  20907. TYPE Object = OBJECT END Object;
  20908. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object; value: Object;
  20909. BEGIN array()^[0] := value;
  20910. END Test.
  20911. positive: changing member of dereferenced indexed temporary pointer to object array
  20912. MODULE Test;
  20913. TYPE Object = OBJECT VAR i: INTEGER END Object;
  20914. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object;
  20915. BEGIN array()^[0].i := 5;
  20916. END Test.
  20917. positive: indexing variable pointer to base object array
  20918. MODULE Test;
  20919. VAR array: POINTER TO ARRAY 10 OF OBJECT; result: OBJECT;
  20920. BEGIN result := array[0]
  20921. END Test.
  20922. positive: indexing temporary pointer to base object array
  20923. MODULE Test;
  20924. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF OBJECT; result: OBJECT;
  20925. BEGIN result := array()[0]
  20926. END Test.
  20927. positive: changing indexed temporary pointer to base object array
  20928. MODULE Test;
  20929. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF OBJECT; value: OBJECT;
  20930. BEGIN array()[0] := value;
  20931. END Test.
  20932. positive: indexing dereferenced variable pointer to base object array
  20933. MODULE Test;
  20934. VAR array: POINTER TO ARRAY 10 OF OBJECT; result: OBJECT;
  20935. BEGIN result := array^[0]
  20936. END Test.
  20937. positive: indexing dereferenced temporary pointer to base object array
  20938. MODULE Test;
  20939. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF OBJECT; result: OBJECT;
  20940. BEGIN result := array()^[0]
  20941. END Test.
  20942. positive: changing dereferenced indexed temporary pointer to base object array
  20943. MODULE Test;
  20944. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF OBJECT; value: OBJECT;
  20945. BEGIN array()^[0] := value;
  20946. END Test.
  20947. positive: indexing variable pointer to pointer to array array
  20948. MODULE Test;
  20949. VAR array: POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  20950. BEGIN result := array[0]
  20951. END Test.
  20952. positive: indexing temporary pointer to pointer to array array
  20953. MODULE Test;
  20954. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  20955. BEGIN result := array()[0]
  20956. END Test.
  20957. positive: changing indexed temporary pointer to pointer to array array
  20958. MODULE Test;
  20959. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; value: POINTER TO ARRAY 10 OF CHAR;
  20960. BEGIN array()[0] := value;
  20961. END Test.
  20962. positive: changing element of indexed temporary pointer to pointer to array array
  20963. MODULE Test;
  20964. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR;
  20965. BEGIN array()[0][0] := 'f';
  20966. END Test.
  20967. positive: indexing dereferenced variable pointer to pointer to array array
  20968. MODULE Test;
  20969. VAR array: POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  20970. BEGIN result := array^[0]
  20971. END Test.
  20972. positive: indexing dereferenced temporary pointer to pointer to array array
  20973. MODULE Test;
  20974. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  20975. BEGIN result := array()^[0]
  20976. END Test.
  20977. positive: changing dereferenced indexed temporary pointer to pointer to array array
  20978. MODULE Test;
  20979. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; value: POINTER TO ARRAY 10 OF CHAR;
  20980. BEGIN array()^[0] := value;
  20981. END Test.
  20982. positive: changing element of dereferenced indexed temporary pointer to pointer to array array
  20983. MODULE Test;
  20984. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR;
  20985. BEGIN array()^[0][0] := 'f';
  20986. END Test.
  20987. positive: indexing variable pointer to pointer to record array
  20988. MODULE Test;
  20989. TYPE Record = RECORD END;
  20990. VAR array: POINTER TO ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  20991. BEGIN result := array[0]
  20992. END Test.
  20993. positive: indexing temporary pointer to pointer to record array
  20994. MODULE Test;
  20995. TYPE Record = RECORD END;
  20996. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  20997. BEGIN result := array()[0]
  20998. END Test.
  20999. positive: changing indexed temporary pointer to pointer to record array
  21000. MODULE Test;
  21001. TYPE Record = RECORD END;
  21002. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO Record; value: POINTER TO Record;
  21003. BEGIN array()[0] := value;
  21004. END Test.
  21005. positive: changing element of indexed temporary pointer to pointer to record array
  21006. MODULE Test;
  21007. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO RECORD i: INTEGER END;
  21008. BEGIN array()[0].i := 5;
  21009. END Test.
  21010. positive: indexing dereferenced variable pointer to record array
  21011. MODULE Test;
  21012. TYPE Record = RECORD END;
  21013. VAR array: POINTER TO ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  21014. BEGIN result := array^[0]
  21015. END Test.
  21016. positive: indexing dereferenced temporary pointer to pointer to record array
  21017. MODULE Test;
  21018. TYPE Record = RECORD END;
  21019. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  21020. BEGIN result := array()^[0]
  21021. END Test.
  21022. positive: changing dereferenced indexed temporary pointer to pointer to record array
  21023. MODULE Test;
  21024. TYPE Record = RECORD END;
  21025. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO Record; value: POINTER TO Record;
  21026. BEGIN array()^[0] := value;
  21027. END Test.
  21028. positive: changing element of dereferenced indexed temporary pointer to pointer to record array
  21029. MODULE Test;
  21030. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO RECORD i: INTEGER END;
  21031. BEGIN array()^[0].i := 5;
  21032. END Test.
  21033. positive: indexing variable pointer to procedure array
  21034. MODULE Test;
  21035. VAR array: POINTER TO ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  21036. BEGIN result := array[0]
  21037. END Test.
  21038. positive: indexing temporary pointer to procedure array
  21039. MODULE Test;
  21040. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  21041. BEGIN result := array()[0]
  21042. END Test.
  21043. positive: changing indexed temporary pointer to procedure array
  21044. MODULE Test;
  21045. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF PROCEDURE; value: PROCEDURE;
  21046. BEGIN array()[0] := value;
  21047. END Test.
  21048. positive: indexing dereferenced variable pointer to procedure array
  21049. MODULE Test;
  21050. VAR array: POINTER TO ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  21051. BEGIN result := array^[0]
  21052. END Test.
  21053. positive: indexing dereferenced temporary pointer to procedure array
  21054. MODULE Test;
  21055. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  21056. BEGIN result := array()^[0]
  21057. END Test.
  21058. positive: changing dereferenced indexed temporary pointer to procedure array
  21059. MODULE Test;
  21060. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF PROCEDURE; value: PROCEDURE;
  21061. BEGIN array()^[0] := value;
  21062. END Test.
  21063. negative: variable pointer to array as index
  21064. MODULE Test;
  21065. VAR array: ARRAY 10 OF CHAR; result: CHAR; pointer: POINTER TO ARRAY 10 OF CHAR;
  21066. BEGIN result := array[pointer]
  21067. END Test.
  21068. negative: member selection on variable pointer to array
  21069. MODULE Test;
  21070. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  21071. BEGIN result := pointer.member
  21072. END Test.
  21073. negative: member selection on dereferenced variable pointer to array
  21074. MODULE Test;
  21075. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  21076. BEGIN result := pointer^.member
  21077. END Test.
  21078. negative: calling variable pointer to array
  21079. MODULE Test;
  21080. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  21081. BEGIN pointer
  21082. END Test.
  21083. # variable procedures
  21084. negative: arithmetic negation on variable procedure
  21085. MODULE Test;
  21086. VAR procedure, result: PROCEDURE;
  21087. BEGIN result := -procedure;
  21088. END Test.
  21089. negative: logical negation on variable procedure
  21090. MODULE Test;
  21091. VAR procedure, result: PROCEDURE;
  21092. BEGIN result := ~procedure;
  21093. END Test.
  21094. negative: dereferencing variable pointer to procedure
  21095. MODULE Test;
  21096. VAR procedure, result: PROCEDURE;
  21097. BEGIN result := procedure^;
  21098. END Test.
  21099. negative: addition on variable procedures
  21100. MODULE Test;
  21101. VAR procedure, result: PROCEDURE;
  21102. BEGIN result := procedure + procedure;
  21103. END Test.
  21104. negative: subtraction on variable procedures
  21105. MODULE Test;
  21106. VAR procedure, result: PROCEDURE;
  21107. BEGIN result := procedure - procedure
  21108. END Test.
  21109. negative: multiplication on variable procedures
  21110. MODULE Test;
  21111. VAR procedure, result: PROCEDURE;
  21112. BEGIN result := procedure * procedure
  21113. END Test.
  21114. negative: integer division on variable procedures
  21115. MODULE Test;
  21116. VAR procedure: PROCEDURE; result: INTEGER;
  21117. BEGIN result := procedure DIV procedure
  21118. END Test.
  21119. negative: real division on variable procedures
  21120. MODULE Test;
  21121. VAR procedure: PROCEDURE; result: REAL;
  21122. BEGIN result := procedure / procedure
  21123. END Test.
  21124. negative: modulo on variable procedures
  21125. MODULE Test;
  21126. VAR procedure: PROCEDURE; result: INTEGER;
  21127. BEGIN result := procedure MOD procedure
  21128. END Test.
  21129. positive: equal relation on variable procedures
  21130. MODULE Test;
  21131. VAR procedure: PROCEDURE; result: BOOLEAN;
  21132. BEGIN result := procedure = procedure
  21133. END Test.
  21134. positive: equal relation on compatible variable procedures
  21135. MODULE Test;
  21136. VAR procedure1: PROCEDURE; procedure2: PROCEDURE; result: BOOLEAN;
  21137. BEGIN result := (procedure1 = procedure2) OR (procedure2 = procedure1)
  21138. END Test.
  21139. negative: equal relation on incompatible variable procedures
  21140. MODULE Test;
  21141. VAR procedure1: PROCEDURE; procedure2: PROCEDURE (p: PROCEDURE); result: BOOLEAN;
  21142. BEGIN result := (procedure1 = procedure2) OR (procedure2 = procedure1)
  21143. END Test.
  21144. positive: unequal relation on variable procedures
  21145. MODULE Test;
  21146. VAR procedure: PROCEDURE; result: BOOLEAN;
  21147. BEGIN result := procedure # procedure
  21148. END Test.
  21149. positive: unequal relation on compatible variable procedures
  21150. MODULE Test;
  21151. VAR procedure1: PROCEDURE; procedure2: PROCEDURE; result: BOOLEAN;
  21152. BEGIN result := (procedure1 # procedure2) OR (procedure2 # procedure1)
  21153. END Test.
  21154. negative: unequal relation on incompatible variable procedures
  21155. MODULE Test;
  21156. VAR procedure1: PROCEDURE; procedure2: PROCEDURE (p: PROCEDURE); result: BOOLEAN;
  21157. BEGIN result := (procedure1 # procedure2) OR (procedure2 # procedure1)
  21158. END Test.
  21159. negative: less relation on variable procedures
  21160. MODULE Test;
  21161. VAR procedure: PROCEDURE; result: BOOLEAN;
  21162. BEGIN result := procedure < procedure
  21163. END Test.
  21164. negative: less or equal relation on variable procedures
  21165. MODULE Test;
  21166. VAR procedure: PROCEDURE; result: BOOLEAN;
  21167. BEGIN result := procedure <= procedure
  21168. END Test.
  21169. negative: greater relation on variable procedures
  21170. MODULE Test;
  21171. VAR procedure: PROCEDURE; result: BOOLEAN;
  21172. BEGIN result := procedure > procedure
  21173. END Test.
  21174. negative: greater or equal relation on variable procedures
  21175. MODULE Test;
  21176. VAR procedure: PROCEDURE; result: BOOLEAN;
  21177. BEGIN result := procedure >= procedure
  21178. END Test.
  21179. negative: set membership on variable procedures
  21180. MODULE Test;
  21181. VAR procedure: PROCEDURE; result: BOOLEAN;
  21182. BEGIN result := procedure IN procedure
  21183. END Test.
  21184. negative: type test on variable procedures
  21185. MODULE Test;
  21186. VAR procedure: PROCEDURE; result: BOOLEAN;
  21187. BEGIN result := procedure IS procedure
  21188. END Test.
  21189. negative: type test on variable procedure
  21190. MODULE Test;
  21191. VAR procedure: PROCEDURE; result: BOOLEAN;
  21192. BEGIN result := procedure IS PROCEDURE
  21193. END Test.
  21194. negative: type test on pointer to procedure type
  21195. MODULE Test;
  21196. TYPE Type = PROCEDURE;
  21197. VAR procedure: Type; result: BOOLEAN;
  21198. BEGIN result := procedure IS Type
  21199. END Test.
  21200. negative: type guard on variable procedures
  21201. MODULE Test;
  21202. VAR procedure, result: PROCEDURE;
  21203. BEGIN result := procedure(procedure)
  21204. END Test.
  21205. negative: type guard on variable procedure
  21206. MODULE Test;
  21207. VAR procedure, result: PROCEDURE;
  21208. BEGIN result := procedure(PROCEDURE)
  21209. END Test.
  21210. negative: type guard on pointer to procedure type
  21211. MODULE Test;
  21212. TYPE Type = PROCEDURE;
  21213. VAR procedure: Type; result: Type;
  21214. BEGIN result := procedure(Type)
  21215. END Test.
  21216. negative: logical and on variable procedures
  21217. MODULE Test;
  21218. VAR procedure, result: PROCEDURE;
  21219. BEGIN result := procedure & procedure
  21220. END Test.
  21221. negative: logical or on variable procedures
  21222. MODULE Test;
  21223. VAR procedure, result: PROCEDURE;
  21224. BEGIN result := procedure OR procedure
  21225. END Test.
  21226. negative: ordinal value of variable procedure
  21227. MODULE Test;
  21228. VAR procedure: PROCEDURE; result: INTEGER;
  21229. BEGIN result := ORD (procedure)
  21230. END Test.
  21231. negative: character value of variable procedure
  21232. MODULE Test;
  21233. VAR procedure: PROCEDURE; result: CHAR;
  21234. BEGIN result := CHR (procedure)
  21235. END Test.
  21236. negative: absolute value of variable procedure
  21237. MODULE Test;
  21238. VAR procedure, result: PROCEDURE;
  21239. BEGIN result := ABS (procedure)
  21240. END Test.
  21241. negative: odd test on variable procedure
  21242. MODULE Test;
  21243. VAR procedure: PROCEDURE; result: BOOLEAN;
  21244. BEGIN result := ODD (procedure)
  21245. END Test.
  21246. negative: capital letter of variable procedure
  21247. MODULE Test;
  21248. VAR procedure: PROCEDURE; result: CHAR;
  21249. BEGIN result := CAP (procedure)
  21250. END Test.
  21251. negative: arithmetic shift of variable procedures
  21252. MODULE Test;
  21253. VAR procedure, result: PROCEDURE;
  21254. BEGIN result := ASH (procedure, procedure)
  21255. END Test.
  21256. negative: short on variable procedure
  21257. MODULE Test;
  21258. VAR procedure, result: PROCEDURE;
  21259. BEGIN result := SHORT (procedure)
  21260. END Test.
  21261. negative: long on variable procedure
  21262. MODULE Test;
  21263. VAR procedure, result: PROCEDURE;
  21264. BEGIN result := LONG (procedure)
  21265. END Test.
  21266. negative: entier on variable procedure
  21267. MODULE Test;
  21268. VAR procedure, result: PROCEDURE;
  21269. BEGIN result := ENTIER (procedure)
  21270. END Test.
  21271. negative: unary length of variable procedure
  21272. MODULE Test;
  21273. VAR procedure: PROCEDURE; result: LONGINT;
  21274. BEGIN result := LEN (procedure)
  21275. END Test.
  21276. negative: binary length of variable procedure
  21277. MODULE Test;
  21278. VAR procedure: PROCEDURE; result: LONGINT;
  21279. BEGIN result := LEN (procedure, 0)
  21280. END Test.
  21281. negative: indexing variable procedure
  21282. MODULE Test;
  21283. VAR procedure: PROCEDURE; result: CHAR;
  21284. BEGIN result := procedure[0]
  21285. END Test.
  21286. negative: variable procedure as index
  21287. MODULE Test;
  21288. VAR array: ARRAY 10 OF CHAR; result: CHAR; procedure: PROCEDURE;
  21289. BEGIN result := array[procedure]
  21290. END Test.
  21291. positive: calling variable procedure
  21292. MODULE Test;
  21293. VAR procedure: PROCEDURE;
  21294. BEGIN procedure
  21295. END Test.
  21296. negative: calling variable procedure returning boolean
  21297. MODULE Test;
  21298. VAR procedure: PROCEDURE (): BOOLEAN;
  21299. BEGIN procedure
  21300. END Test.
  21301. negative: calling variable procedure returning character
  21302. MODULE Test;
  21303. VAR procedure: PROCEDURE (): CHAR;
  21304. BEGIN procedure
  21305. END Test.
  21306. negative: calling variable procedure returning integer
  21307. MODULE Test;
  21308. VAR procedure: PROCEDURE (): INTEGER;
  21309. BEGIN procedure
  21310. END Test.
  21311. negative: calling variable procedure returning real
  21312. MODULE Test;
  21313. VAR procedure: PROCEDURE (): REAL;
  21314. BEGIN procedure
  21315. END Test.
  21316. negative: calling variable procedure returning set
  21317. MODULE Test;
  21318. VAR procedure: PROCEDURE (): SET;
  21319. BEGIN procedure
  21320. END Test.
  21321. negative: calling variable procedure returning array
  21322. MODULE Test;
  21323. VAR procedure: PROCEDURE (): ARRAY 10 OF CHAR;
  21324. BEGIN procedure
  21325. END Test.
  21326. negative: calling variable procedure returning record
  21327. MODULE Test;
  21328. VAR procedure: PROCEDURE (): RECORD END;
  21329. BEGIN procedure
  21330. END Test.
  21331. negative: calling variable procedure returning object
  21332. MODULE Test;
  21333. VAR procedure: PROCEDURE (): OBJECT END;
  21334. BEGIN procedure
  21335. END Test.
  21336. negative: calling variable procedure returning base object
  21337. MODULE Test;
  21338. VAR procedure: PROCEDURE (): OBJECT;
  21339. BEGIN procedure
  21340. END Test.
  21341. negative: calling variable procedure returning pointer to array
  21342. MODULE Test;
  21343. VAR procedure: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR;
  21344. BEGIN procedure
  21345. END Test.
  21346. negative: calling variable procedure returning pointer to record
  21347. MODULE Test;
  21348. VAR procedure: PROCEDURE (): POINTER TO ARRAY 10 OF RECORD END;
  21349. BEGIN procedure
  21350. END Test.
  21351. negative: calling variable procedure returning procedure
  21352. MODULE Test;
  21353. VAR procedure: PROCEDURE (): PROCEDURE;
  21354. BEGIN procedure
  21355. END Test.
  21356. # implicit variable conversions
  21357. positive: implicit variable short to integer conversion
  21358. MODULE Test;
  21359. VAR shortint: SHORTINT; integer, result: INTEGER;
  21360. BEGIN result := shortint + integer
  21361. END Test.
  21362. positive: implicit variable short to long integer conversion
  21363. MODULE Test;
  21364. VAR shortint: SHORTINT; longint, result: LONGINT;
  21365. BEGIN result := shortint * longint
  21366. END Test.
  21367. positive: implicit variable short to huge integer conversion
  21368. MODULE Test;
  21369. VAR shortint: SHORTINT; hugeint, result: HUGEINT;
  21370. BEGIN result := hugeint DIV shortint
  21371. END Test.
  21372. positive: implicit variable integer to long integer conversion
  21373. MODULE Test;
  21374. VAR integer: INTEGER; longint, result: LONGINT;
  21375. BEGIN result := integer - longint
  21376. END Test.
  21377. positive: implicit variable integer to huge integer conversion
  21378. MODULE Test;
  21379. VAR integer: INTEGER; hugeint, result: HUGEINT;
  21380. BEGIN result := integer * hugeint
  21381. END Test.
  21382. positive: implicit variable long to huge integer conversion
  21383. MODULE Test;
  21384. VAR longint: INTEGER; hugeint, result: HUGEINT;
  21385. BEGIN result := hugeint + longint
  21386. END Test.
  21387. positive: implicit variable integer to real conversion
  21388. MODULE Test;
  21389. VAR integer: INTEGER; real, result: REAL;
  21390. BEGIN result := real + integer
  21391. END Test.
  21392. positive: implicit variable integer to long real conversion
  21393. MODULE Test;
  21394. VAR integer: INTEGER; longreal, result: LONGREAL;
  21395. BEGIN result := integer / longreal
  21396. END Test.
  21397. positive: implicit variable real to long real conversion
  21398. MODULE Test;
  21399. VAR real: REAL; longreal, result: LONGREAL;
  21400. BEGIN result := longreal * real
  21401. END Test.
  21402. negative: implicit conversion between variable boolean and character
  21403. MODULE Test;
  21404. VAR boolean, result: BOOLEAN; character: CHAR;
  21405. BEGIN result := boolean = character
  21406. END Test.
  21407. negative: implicit conversion between variable boolean and integer
  21408. MODULE Test;
  21409. VAR boolean, result: BOOLEAN; integer: INTEGER;
  21410. BEGIN result := boolean # integer
  21411. END Test.
  21412. negative: implicit conversion between variable boolean and real
  21413. MODULE Test;
  21414. VAR boolean, result: BOOLEAN; real: REAL;
  21415. BEGIN result := boolean = real
  21416. END Test.
  21417. negative: implicit conversion between variable boolean and set
  21418. MODULE Test;
  21419. VAR boolean, result: BOOLEAN; set: SET;
  21420. BEGIN result := boolean = set
  21421. END Test.
  21422. negative: implicit conversion between variable character and integer
  21423. MODULE Test;
  21424. VAR character: CHAR; integer: INTEGER; result: BOOLEAN;
  21425. BEGIN result := character # integer
  21426. END Test.
  21427. negative: implicit conversion between variable character and real
  21428. MODULE Test;
  21429. VAR character: CHAR; real: REAL; result: BOOLEAN;
  21430. BEGIN result := 't' # real
  21431. END Test.
  21432. negative: implicit conversion between variable character and set
  21433. MODULE Test;
  21434. VAR character: CHAR; set: SET; result: BOOLEAN;
  21435. BEGIN result := character = set
  21436. END Test.
  21437. positive: implicit conversion between variable integer and real
  21438. MODULE Test;
  21439. VAR integer: INTEGER; real: REAL; result: BOOLEAN;
  21440. BEGIN result := integer # real
  21441. END Test.
  21442. negative: implicit conversion between variable integer and set
  21443. MODULE Test;
  21444. VAR integer: INTEGER; set: SET; result: BOOLEAN;
  21445. BEGIN result := integer = set
  21446. END Test.
  21447. negative: implicit conversion between variable real and set
  21448. MODULE Test;
  21449. VAR real: REAL; set: SET; result: BOOLEAN;
  21450. BEGIN result := real = set
  21451. END Test.
  21452. # explicit variable conversions
  21453. negative: explicit long conversion on variable short integer
  21454. MODULE Test;
  21455. VAR shortint: SHORTINT;
  21456. BEGIN shortint := LONG (shortint);
  21457. END Test.
  21458. negative: explicit short conversion on variable short integer
  21459. MODULE Test;
  21460. VAR shortint: SHORTINT;
  21461. BEGIN shortint := SHORT (shortint);
  21462. END Test.
  21463. negative: explicit long conversion on variable integer
  21464. MODULE Test;
  21465. VAR integer: INTEGER;
  21466. BEGIN integer := LONG (integer);
  21467. END Test.
  21468. positive: explicit short conversion on variable integer
  21469. MODULE Test;
  21470. VAR integer: INTEGER;
  21471. BEGIN integer := SHORT (integer);
  21472. END Test.
  21473. negative: explicit long conversion on variable long integer
  21474. MODULE Test;
  21475. VAR longint: LONGINT;
  21476. BEGIN longint := LONG (longint);
  21477. END Test.
  21478. positive: explicit short conversion on variable long integer
  21479. MODULE Test;
  21480. VAR longint: LONGINT;
  21481. BEGIN longint := SHORT (longint);
  21482. END Test.
  21483. negative: explicit long conversion on variable huge integer
  21484. MODULE Test;
  21485. VAR hugeint: HUGEINT;
  21486. BEGIN hugeint := LONG (hugeint);
  21487. END Test.
  21488. positive: explicit short conversion on variable huge integer
  21489. MODULE Test;
  21490. VAR hugeint: HUGEINT;
  21491. BEGIN hugeint := SHORT (hugeint);
  21492. END Test.
  21493. positive: explicit variable short integer to integer conversion
  21494. MODULE Test;
  21495. VAR shortint: SHORTINT; integer: INTEGER;
  21496. BEGIN integer := LONG (shortint);
  21497. END Test.
  21498. positive: explicit variable short to long integer conversion
  21499. MODULE Test;
  21500. VAR shortint: SHORTINT; longint: LONGINT;
  21501. BEGIN longint := LONG (LONG (shortint));
  21502. END Test.
  21503. positive: explicit variable short to huge integer conversion
  21504. MODULE Test;
  21505. VAR shortint: SHORTINT; hugeint: HUGEINT;
  21506. BEGIN hugeint := LONG (LONG (LONG (shortint)));
  21507. END Test.
  21508. positive: explicit variable integer to short integer conversion
  21509. MODULE Test;
  21510. VAR integer: INTEGER; shortint: SHORTINT;
  21511. BEGIN integer := SHORT (integer);
  21512. END Test.
  21513. positive: explicit variable integer to long integer conversion
  21514. MODULE Test;
  21515. VAR integer: INTEGER; longint: LONGINT;
  21516. BEGIN longint := LONG (integer);
  21517. END Test.
  21518. positive: explicit variable integer to huge integer conversion
  21519. MODULE Test;
  21520. VAR integer: INTEGER; hugeint: HUGEINT;
  21521. BEGIN hugeint := LONG (LONG (integer));
  21522. END Test.
  21523. positive: explicit variable long to short integer conversion
  21524. MODULE Test;
  21525. VAR longint: LONGINT; shortint: SHORTINT;
  21526. BEGIN shortint := SHORT (SHORT (longint));
  21527. END Test.
  21528. positive: explicit variable long to integer conversion
  21529. MODULE Test;
  21530. VAR longint: LONGINT; integer: INTEGER;
  21531. BEGIN integer := SHORT (longint);
  21532. END Test.
  21533. positive: explicit variable long to huge integer conversion
  21534. MODULE Test;
  21535. VAR longint: LONGINT; hugeint: HUGEINT;
  21536. BEGIN hugeint := LONG (longint);
  21537. END Test.
  21538. positive: explicit variable huge to short integer conversion
  21539. MODULE Test;
  21540. VAR hugeint: HUGEINT; shortint: SHORTINT;
  21541. BEGIN shortint := SHORT (SHORT (SHORT (hugeint)));
  21542. END Test.
  21543. positive: explicit variable huge to integer conversion
  21544. MODULE Test;
  21545. VAR hugeint: HUGEINT; integer: INTEGER;
  21546. BEGIN integer := SHORT (SHORT (hugeint));
  21547. END Test.
  21548. positive: explicit variable huge to long integer conversion
  21549. MODULE Test;
  21550. VAR hugeint: HUGEINT; longint: LONGINT;
  21551. BEGIN hugeint := SHORT (hugeint);
  21552. END Test.
  21553. negative: explicit variable real to short integer conversion
  21554. MODULE Test;
  21555. VAR real: REAL; shortint: SHORTINT;
  21556. BEGIN shortint := ENTIER (real);
  21557. END Test.
  21558. negative: explicit variable real to integer conversion
  21559. MODULE Test;
  21560. VAR real: REAL; integer: INTEGER;
  21561. BEGIN integer := ENTIER (real);
  21562. END Test.
  21563. positive: explicit variable real to long integer conversion
  21564. MODULE Test;
  21565. VAR real: REAL; longint: LONGINT;
  21566. BEGIN longint := ENTIER (real);
  21567. END Test.
  21568. positive: explicit variable real to huge integer conversion
  21569. MODULE Test;
  21570. VAR real: REAL; hugeint: HUGEINT;
  21571. BEGIN hugeint := ENTIER (real);
  21572. END Test.
  21573. negative: explicit variable long real to short integer conversion
  21574. MODULE Test;
  21575. VAR longreal: LONGREAL; shortint: SHORTINT;
  21576. BEGIN shortint := ENTIER (longreal);
  21577. END Test.
  21578. negative: explicit variable long real to integer conversion
  21579. MODULE Test;
  21580. VAR longreal: LONGREAL; integer: INTEGER;
  21581. BEGIN integer := ENTIER (longreal);
  21582. END Test.
  21583. positive: explicit variable long real to long integer conversion
  21584. MODULE Test;
  21585. VAR longreal: LONGREAL; longint: LONGINT;
  21586. BEGIN longint := ENTIER (longreal);
  21587. END Test.
  21588. positive: explicit variable long real to huge integer conversion
  21589. MODULE Test;
  21590. VAR longreal: LONGREAL; hugeint: HUGEINT;
  21591. BEGIN hugeint := ENTIER (longreal);
  21592. END Test.
  21593. # for statement
  21594. negative: for statement with unknown counter
  21595. MODULE Test;
  21596. BEGIN FOR i := 0 TO 10 DO END
  21597. END Test.
  21598. negative: for statement with constant as counter
  21599. MODULE Test;
  21600. CONST i = 0;
  21601. BEGIN FOR i := 0 TO 10 DO END
  21602. END Test.
  21603. negative: for statement with type as counter
  21604. MODULE Test;
  21605. TYPE i = LONGINT;
  21606. BEGIN FOR i := 0 TO 10 DO END
  21607. END Test.
  21608. positive: for statement with variable as counter
  21609. MODULE Test;
  21610. VAR i: INTEGER;
  21611. BEGIN FOR i := 0 TO 10 DO END
  21612. END Test.
  21613. positive: for statement with parameter as counter
  21614. MODULE Test;
  21615. PROCEDURE Procedure (i: INTEGER);
  21616. BEGIN FOR i := 0 TO 10 DO END
  21617. END Procedure;
  21618. END Test.
  21619. negative: for statement with procedure as counter
  21620. MODULE Test;
  21621. PROCEDURE i; END i;
  21622. BEGIN FOR i := 0 TO 10 DO END
  21623. END Test.
  21624. negative: for statement with constant counter
  21625. MODULE Test;
  21626. VAR s, e: INTEGER;
  21627. BEGIN FOR 0 := s TO e DO END
  21628. END Test.
  21629. positive: for statement with constant start counter
  21630. MODULE Test;
  21631. VAR i, e: INTEGER;
  21632. BEGIN FOR i := 0 TO e DO END
  21633. END Test.
  21634. positive: for statement with constant end counter
  21635. MODULE Test;
  21636. VAR i, s: INTEGER;
  21637. BEGIN FOR i := s TO 0 DO END
  21638. END Test.
  21639. positive: for statement with variable counter
  21640. MODULE Test;
  21641. VAR i: INTEGER;
  21642. BEGIN FOR i := 0 TO 10 DO END
  21643. END Test.
  21644. positive: for statement with variable start counter
  21645. MODULE Test;
  21646. VAR i, s: INTEGER;
  21647. BEGIN FOR i := s TO 10 DO END
  21648. END Test.
  21649. positive: for statement with variable end counter
  21650. MODULE Test;
  21651. VAR i, e: INTEGER;
  21652. BEGIN FOR i := 0 TO e DO END
  21653. END Test.
  21654. negative: for statement with variable increment
  21655. MODULE Test;
  21656. VAR i, s: INTEGER;
  21657. BEGIN FOR i := 0 TO 10 BY s DO END
  21658. END Test.
  21659. positive: for statement with parameter counter
  21660. MODULE Test;
  21661. PROCEDURE P (i: INTEGER);
  21662. BEGIN FOR i := 0 TO 10 DO END
  21663. END P;
  21664. END Test.
  21665. positive: for statement with variable parameter counter
  21666. MODULE Test;
  21667. PROCEDURE P (VAR i: INTEGER);
  21668. BEGIN FOR i := 0 TO 10 DO END
  21669. END P;
  21670. END Test.
  21671. negative: for statement with constant parameter counter
  21672. MODULE Test;
  21673. PROCEDURE P (CONST i: INTEGER);
  21674. BEGIN FOR i := 0 TO 10 DO END
  21675. END P;
  21676. END Test.
  21677. positive: for statement with parameter start counter
  21678. MODULE Test;
  21679. VAR i: INTEGER;
  21680. PROCEDURE P (s: INTEGER);
  21681. BEGIN FOR i := s TO 10 DO END
  21682. END P;
  21683. END Test.
  21684. positive: for statement with variable parameter start counter
  21685. MODULE Test;
  21686. VAR i: INTEGER;
  21687. PROCEDURE P (VAR s: INTEGER);
  21688. BEGIN FOR i := s TO 10 DO END
  21689. END P;
  21690. END Test.
  21691. positive: for statement with constant parameter start counter
  21692. MODULE Test;
  21693. VAR i: INTEGER;
  21694. PROCEDURE P (CONST s: INTEGER);
  21695. BEGIN FOR i := s TO 10 DO END
  21696. END P;
  21697. END Test.
  21698. positive: for statement with parameter end counter
  21699. MODULE Test;
  21700. VAR i: INTEGER;
  21701. PROCEDURE P (e: INTEGER);
  21702. BEGIN FOR i := 0 TO e DO END
  21703. END P;
  21704. END Test.
  21705. positive: for statement with variable parameter end counter
  21706. MODULE Test;
  21707. VAR i: INTEGER;
  21708. PROCEDURE P (VAR e: INTEGER);
  21709. BEGIN FOR i := 0 TO e DO END
  21710. END P;
  21711. END Test.
  21712. positive: for statement with constant parameter end counter
  21713. MODULE Test;
  21714. VAR i: INTEGER;
  21715. PROCEDURE P (CONST e: INTEGER);
  21716. BEGIN FOR i := 0 TO e DO END
  21717. END P;
  21718. END Test.
  21719. negative: for statement with parameter increment
  21720. MODULE Test;
  21721. VAR i: INTEGER;
  21722. PROCEDURE P (s: INTEGER);
  21723. BEGIN FOR i := 0 TO 10 BY s DO END
  21724. END P;
  21725. END Test.
  21726. negative: for statement with variable parameter increment
  21727. MODULE Test;
  21728. VAR i: INTEGER;
  21729. PROCEDURE P (VAR s: INTEGER);
  21730. BEGIN FOR i := 0 TO 10 BY s DO END
  21731. END P;
  21732. END Test.
  21733. negative: for statement with constant parameter increment
  21734. MODULE Test;
  21735. VAR i: INTEGER;
  21736. PROCEDURE P (CONST s: INTEGER);
  21737. BEGIN FOR i := 0 TO 10 BY s DO END
  21738. END P;
  21739. END Test.
  21740. positive: for statement with positive constant increment
  21741. MODULE Test;
  21742. VAR i: INTEGER;
  21743. BEGIN FOR i := 0 TO 10 BY 1 DO END
  21744. END Test.
  21745. positive: for statement with negative constant increment
  21746. MODULE Test;
  21747. VAR i: INTEGER;
  21748. BEGIN FOR i := 0 TO 10 BY -1 DO END
  21749. END Test.
  21750. negative: for statement with zero increment
  21751. MODULE Test;
  21752. VAR i: INTEGER;
  21753. BEGIN FOR i := 0 TO 10 BY 0 DO END
  21754. END Test.
  21755. negative: for statement with counter of type boolean
  21756. MODULE Test;
  21757. VAR i, s, e: BOOLEAN;
  21758. BEGIN FOR i := s TO e DO END
  21759. END Test.
  21760. negative: for statement with counter of type character
  21761. MODULE Test;
  21762. VAR i, s, e: CHAR;
  21763. BEGIN FOR i := s TO e DO END
  21764. END Test.
  21765. positive: for statement with counter of type short integer
  21766. MODULE Test;
  21767. VAR i, s, e: SHORTINT;
  21768. BEGIN FOR i := s TO e DO END
  21769. END Test.
  21770. positive: for statement with counter of type integer
  21771. MODULE Test;
  21772. VAR i, s, e: INTEGER;
  21773. BEGIN FOR i := s TO e DO END
  21774. END Test.
  21775. positive: for statement with counter of type long integer
  21776. MODULE Test;
  21777. VAR i, s, e: LONGINT;
  21778. BEGIN FOR i := s TO e DO END
  21779. END Test.
  21780. positive: for statement with counter of type huge integer
  21781. MODULE Test;
  21782. VAR i, s, e: HUGEINT;
  21783. BEGIN FOR i := s TO e DO END
  21784. END Test.
  21785. negative: for statement with counter of type real
  21786. MODULE Test;
  21787. VAR i, s, e: REAL;
  21788. BEGIN FOR i := s TO e DO END
  21789. END Test.
  21790. negative: for statement with counter of type long real
  21791. MODULE Test;
  21792. VAR i, s, e: REAL;
  21793. BEGIN FOR i := s TO e DO END
  21794. END Test.
  21795. negative: for statement with counter of type set
  21796. MODULE Test;
  21797. VAR i, s, e: SET;
  21798. BEGIN FOR i := s TO e DO END
  21799. END Test.
  21800. negative: for statement with counter of type array
  21801. MODULE Test;
  21802. VAR i, s, e: ARRAY 10 OF CHAR;
  21803. BEGIN FOR i := s TO e DO END
  21804. END Test.
  21805. negative: for statement with counter of type record
  21806. MODULE Test;
  21807. VAR i, s, e: RECORD END;
  21808. BEGIN FOR i := s TO e DO END
  21809. END Test.
  21810. negative: for statement with counter of type object
  21811. MODULE Test;
  21812. VAR i, s, e: OBJECT END;
  21813. BEGIN FOR i := s TO e DO END
  21814. END Test.
  21815. negative: for statement with counter of type pointer
  21816. MODULE Test;
  21817. VAR i, s, e: POINTER TO RECORD;
  21818. BEGIN FOR i := s TO e DO END
  21819. END Test.
  21820. negative: for statement with counter of type procedure
  21821. MODULE Test;
  21822. VAR i, s, e: PROCEDURE;
  21823. BEGIN FOR i := s TO e DO END
  21824. END Test.
  21825. positive: for statement with short integer counter and short integer start counter
  21826. MODULE Test;
  21827. VAR i, s: SHORTINT;
  21828. BEGIN FOR i := s TO 10 DO END
  21829. END Test.
  21830. negative: for statement with short integer counter and integer start counter
  21831. MODULE Test;
  21832. VAR i: SHORTINT; s: INTEGER;
  21833. BEGIN FOR i := s TO 10 DO END
  21834. END Test.
  21835. negative: for statement with short integer counter and long integer start counter
  21836. MODULE Test;
  21837. VAR i: SHORTINT; s: LONGINT;
  21838. BEGIN FOR i := s TO 10 DO END
  21839. END Test.
  21840. negative: for statement with short integer counter and huge integer start counter
  21841. MODULE Test;
  21842. VAR i: SHORTINT; s: HUGEINT;
  21843. BEGIN FOR i := s TO 10 DO END
  21844. END Test.
  21845. positive: for statement with integer counter and short integer start counter
  21846. MODULE Test;
  21847. VAR i: INTEGER; s: SHORTINT;
  21848. BEGIN FOR i := s TO 10 DO END
  21849. END Test.
  21850. positive: for statement with integer counter and integer start counter
  21851. MODULE Test;
  21852. VAR i, s: INTEGER;
  21853. BEGIN FOR i := s TO 10 DO END
  21854. END Test.
  21855. negative: for statement with integer counter and long integer start counter
  21856. MODULE Test;
  21857. VAR i: INTEGER; s: LONGINT;
  21858. BEGIN FOR i := s TO 10 DO END
  21859. END Test.
  21860. negative: for statement with integer counter and huge integer start counter
  21861. MODULE Test;
  21862. VAR i: INTEGER; s: HUGEINT;
  21863. BEGIN FOR i := s TO 10 DO END
  21864. END Test.
  21865. positive: for statement with long integer counter and short integer start counter
  21866. MODULE Test;
  21867. VAR i: LONGINT; s: SHORTINT;
  21868. BEGIN FOR i := s TO 10 DO END
  21869. END Test.
  21870. positive: for statement with long integer counter and integer start counter
  21871. MODULE Test;
  21872. VAR i: LONGINT; s: INTEGER;
  21873. BEGIN FOR i := s TO 10 DO END
  21874. END Test.
  21875. positive: for statement with long integer counter and long integer start counter
  21876. MODULE Test;
  21877. VAR i, s: LONGINT;
  21878. BEGIN FOR i := s TO 10 DO END
  21879. END Test.
  21880. negative: for statement with long integer counter and huge integer start counter
  21881. MODULE Test;
  21882. VAR i: LONGINT; s: HUGEINT;
  21883. BEGIN FOR i := s TO 10 DO END
  21884. END Test.
  21885. positive: for statement with huge integer counter and short integer start counter
  21886. MODULE Test;
  21887. VAR i: HUGEINT; s: SHORTINT;
  21888. BEGIN FOR i := s TO 10 DO END
  21889. END Test.
  21890. positive: for statement with huge integer counter and integer start counter
  21891. MODULE Test;
  21892. VAR i: HUGEINT; s: INTEGER;
  21893. BEGIN FOR i := s TO 10 DO END
  21894. END Test.
  21895. positive: for statement with huge integer counter and long integer start counter
  21896. MODULE Test;
  21897. VAR i: HUGEINT; s: LONGINT;
  21898. BEGIN FOR i := s TO 10 DO END
  21899. END Test.
  21900. positive: for statement with huge integer counter and huge integer start counter
  21901. MODULE Test;
  21902. VAR i, s: HUGEINT;
  21903. BEGIN FOR i := s TO 10 DO END
  21904. END Test.
  21905. positive: for statement with short integer counter and short integer end counter
  21906. MODULE Test;
  21907. VAR i, e: SHORTINT;
  21908. BEGIN FOR i := 0 TO e DO END
  21909. END Test.
  21910. negative: for statement with short integer counter and integer end counter
  21911. MODULE Test;
  21912. VAR i: SHORTINT; e: INTEGER;
  21913. BEGIN FOR i := 0 TO e DO END
  21914. END Test.
  21915. negative: for statement with short integer counter and long integer end counter
  21916. MODULE Test;
  21917. VAR i: SHORTINT; e: LONGINT;
  21918. BEGIN FOR i := 0 TO e DO END
  21919. END Test.
  21920. negative: for statement with short integer counter and huge integer end counter
  21921. MODULE Test;
  21922. VAR i: SHORTINT; e: HUGEINT;
  21923. BEGIN FOR i := 0 TO e DO END
  21924. END Test.
  21925. positive: for statement with integer counter and short integer end counter
  21926. MODULE Test;
  21927. VAR i: INTEGER; e: SHORTINT;
  21928. BEGIN FOR i := 0 TO e DO END
  21929. END Test.
  21930. positive: for statement with integer counter and integer end counter
  21931. MODULE Test;
  21932. VAR i, e: INTEGER;
  21933. BEGIN FOR i := 0 TO e DO END
  21934. END Test.
  21935. negative: for statement with integer counter and long integer end counter
  21936. MODULE Test;
  21937. VAR i: INTEGER; e: LONGINT;
  21938. BEGIN FOR i := 0 TO e DO END
  21939. END Test.
  21940. negative: for statement with integer counter and huge integer end counter
  21941. MODULE Test;
  21942. VAR i: INTEGER; e: HUGEINT;
  21943. BEGIN FOR i := 0 TO e DO END
  21944. END Test.
  21945. positive: for statement with long integer counter and short integer end counter
  21946. MODULE Test;
  21947. VAR i: LONGINT; e: SHORTINT;
  21948. BEGIN FOR i := 0 TO e DO END
  21949. END Test.
  21950. positive: for statement with long integer counter and integer end counter
  21951. MODULE Test;
  21952. VAR i: LONGINT; e: INTEGER;
  21953. BEGIN FOR i := 0 TO e DO END
  21954. END Test.
  21955. positive: for statement with long integer counter and long integer end counter
  21956. MODULE Test;
  21957. VAR i, e: LONGINT;
  21958. BEGIN FOR i := 0 TO e DO END
  21959. END Test.
  21960. negative: for statement with long integer counter and huge integer end counter
  21961. MODULE Test;
  21962. VAR i: LONGINT; e: HUGEINT;
  21963. BEGIN FOR i := 0 TO e DO END
  21964. END Test.
  21965. positive: for statement with huge integer counter and short integer end counter
  21966. MODULE Test;
  21967. VAR i: HUGEINT; e: SHORTINT;
  21968. BEGIN FOR i := 0 TO e DO END
  21969. END Test.
  21970. positive: for statement with huge integer counter and integer end counter
  21971. MODULE Test;
  21972. VAR i: HUGEINT; e: INTEGER;
  21973. BEGIN FOR i := 0 TO e DO END
  21974. END Test.
  21975. positive: for statement with huge integer counter and long integer end counter
  21976. MODULE Test;
  21977. VAR i: HUGEINT; e: LONGINT;
  21978. BEGIN FOR i := 0 TO e DO END
  21979. END Test.
  21980. positive: for statement with huge integer counter and huge integer end counter
  21981. MODULE Test;
  21982. VAR i, e: HUGEINT;
  21983. BEGIN FOR i := 0 TO e DO END
  21984. END Test.
  21985. # return statement
  21986. negative: return statement with value in module body
  21987. MODULE Test;
  21988. BEGIN RETURN 0
  21989. END Test.
  21990. positive: return statement without value in module body
  21991. MODULE Test;
  21992. BEGIN RETURN
  21993. END Test.
  21994. negative: return statement with value in object body
  21995. MODULE Test;
  21996. TYPE Object = OBJECT
  21997. BEGIN RETURN 0
  21998. END Object;
  21999. END Test.
  22000. positive: return statement without value in object body
  22001. MODULE Test;
  22002. TYPE Object = OBJECT
  22003. BEGIN RETURN
  22004. END Object;
  22005. END Test.
  22006. positive: return statement with value in procedure with return type
  22007. MODULE Test;
  22008. PROCEDURE Procedure (): INTEGER;
  22009. BEGIN RETURN 0
  22010. END Procedure;
  22011. END Test.
  22012. negative: return statement without value in procedure with return type
  22013. MODULE Test;
  22014. PROCEDURE Procedure (): INTEGER;
  22015. BEGIN RETURN
  22016. END Procedure;
  22017. END Test.
  22018. negative: return statement with value in procedure without return type
  22019. MODULE Test;
  22020. PROCEDURE Procedure;
  22021. BEGIN RETURN 0
  22022. END Procedure;
  22023. END Test.
  22024. positive: return statement without value in procedure without return type
  22025. MODULE Test;
  22026. PROCEDURE Procedure;
  22027. BEGIN RETURN
  22028. END Procedure;
  22029. END Test.
  22030. positive: procedure with boolean as return type returning boolean
  22031. MODULE Test;
  22032. PROCEDURE Procedure (value: BOOLEAN): BOOLEAN; BEGIN RETURN value END Procedure;
  22033. END Test.
  22034. negative: procedure with boolean as return type returning character
  22035. MODULE Test;
  22036. PROCEDURE Procedure (value: CHAR): BOOLEAN; BEGIN RETURN value END Procedure;
  22037. END Test.
  22038. negative: procedure with boolean as return type returning integer
  22039. MODULE Test;
  22040. PROCEDURE Procedure (value: INTEGER): BOOLEAN; BEGIN RETURN value END Procedure;
  22041. END Test.
  22042. negative: procedure with boolean as return type returning real
  22043. MODULE Test;
  22044. PROCEDURE Procedure (value: REAL): BOOLEAN; BEGIN RETURN value END Procedure;
  22045. END Test.
  22046. negative: procedure with boolean as return type returning set
  22047. MODULE Test;
  22048. PROCEDURE Procedure (value: SET): BOOLEAN; BEGIN RETURN value END Procedure;
  22049. END Test.
  22050. negative: procedure with boolean as return type returning array
  22051. MODULE Test;
  22052. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): BOOLEAN; BEGIN RETURN value END Procedure;
  22053. END Test.
  22054. negative: procedure with boolean as return type returning record
  22055. MODULE Test;
  22056. PROCEDURE Procedure (value: RECORD END): BOOLEAN; BEGIN RETURN value END Procedure;
  22057. END Test.
  22058. negative: procedure with boolean as return type returning object
  22059. MODULE Test;
  22060. PROCEDURE Procedure (value: OBJECT END): BOOLEAN; BEGIN RETURN value END Procedure;
  22061. END Test.
  22062. negative: procedure with boolean as return type returning base object
  22063. MODULE Test;
  22064. PROCEDURE Procedure (value: OBJECT): BOOLEAN; BEGIN RETURN value END Procedure;
  22065. END Test.
  22066. negative: procedure with boolean as return type returning pointer to array
  22067. MODULE Test;
  22068. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): BOOLEAN; BEGIN RETURN value END Procedure;
  22069. END Test.
  22070. negative: procedure with boolean as return type returning pointer to record
  22071. MODULE Test;
  22072. PROCEDURE Procedure (value: POINTER TO RECORD END): BOOLEAN; BEGIN RETURN value END Procedure;
  22073. END Test.
  22074. negative: procedure with boolean as return type returning procedure
  22075. MODULE Test;
  22076. PROCEDURE Procedure (value: PROCEDURE): BOOLEAN; BEGIN RETURN value END Procedure;
  22077. END Test.
  22078. negative: procedure with character as return type returning boolean
  22079. MODULE Test;
  22080. PROCEDURE Procedure (value: BOOLEAN): CHAR; BEGIN RETURN value END Procedure;
  22081. END Test.
  22082. positive: procedure with character as return type returning character
  22083. MODULE Test;
  22084. PROCEDURE Procedure (value: CHAR): CHAR; BEGIN RETURN value END Procedure;
  22085. END Test.
  22086. negative: procedure with character as return type returning integer
  22087. MODULE Test;
  22088. PROCEDURE Procedure (value: INTEGER): CHAR; BEGIN RETURN value END Procedure;
  22089. END Test.
  22090. negative: procedure with character as return type returning real
  22091. MODULE Test;
  22092. PROCEDURE Procedure (value: REAL): CHAR; BEGIN RETURN value END Procedure;
  22093. END Test.
  22094. negative: procedure with character as return type returning set
  22095. MODULE Test;
  22096. PROCEDURE Procedure (value: SET): CHAR; BEGIN RETURN value END Procedure;
  22097. END Test.
  22098. negative: procedure with character as return type returning array
  22099. MODULE Test;
  22100. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): CHAR; BEGIN RETURN value END Procedure;
  22101. END Test.
  22102. negative: procedure with character as return type returning record
  22103. MODULE Test;
  22104. PROCEDURE Procedure (value: RECORD END): CHAR; BEGIN RETURN value END Procedure;
  22105. END Test.
  22106. negative: procedure with character as return type returning object
  22107. MODULE Test;
  22108. PROCEDURE Procedure (value: OBJECT END): CHAR; BEGIN RETURN value END Procedure;
  22109. END Test.
  22110. negative: procedure with character as return type returning base object
  22111. MODULE Test;
  22112. PROCEDURE Procedure (value: OBJECT): CHAR; BEGIN RETURN value END Procedure;
  22113. END Test.
  22114. negative: procedure with character as return type returning pointer to array
  22115. MODULE Test;
  22116. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): CHAR; BEGIN RETURN value END Procedure;
  22117. END Test.
  22118. negative: procedure with character as return type returning pointer to record
  22119. MODULE Test;
  22120. PROCEDURE Procedure (value: POINTER TO RECORD END): CHAR; BEGIN RETURN value END Procedure;
  22121. END Test.
  22122. negative: procedure with character as return type returning procedure
  22123. MODULE Test;
  22124. PROCEDURE Procedure (value: PROCEDURE): CHAR; BEGIN RETURN value END Procedure;
  22125. END Test.
  22126. negative: procedure with short integer as return type returning boolean
  22127. MODULE Test;
  22128. PROCEDURE Procedure (value: BOOLEAN): SHORTINT; BEGIN RETURN value END Procedure;
  22129. END Test.
  22130. negative: procedure with short integer as return type returning character
  22131. MODULE Test;
  22132. PROCEDURE Procedure (value: CHAR): SHORTINT; BEGIN RETURN value END Procedure;
  22133. END Test.
  22134. positive: procedure with short integer as return type returning short integer
  22135. MODULE Test;
  22136. PROCEDURE Procedure (value: SHORTINT): SHORTINT; BEGIN RETURN value END Procedure;
  22137. END Test.
  22138. negative: procedure with short integer as return type returning integer
  22139. MODULE Test;
  22140. PROCEDURE Procedure (value: INTEGER): SHORTINT; BEGIN RETURN value END Procedure;
  22141. END Test.
  22142. negative: procedure with short integer as return type returning long integer
  22143. MODULE Test;
  22144. PROCEDURE Procedure (value: LONGINT): SHORTINT; BEGIN RETURN value END Procedure;
  22145. END Test.
  22146. negative: procedure with short integer as return type returning huge integer
  22147. MODULE Test;
  22148. PROCEDURE Procedure (value: HUGEINT): SHORTINT; BEGIN RETURN value END Procedure;
  22149. END Test.
  22150. negative: procedure with short integer as return type returning real
  22151. MODULE Test;
  22152. PROCEDURE Procedure (value: REAL): SHORTINT; BEGIN RETURN value END Procedure;
  22153. END Test.
  22154. negative: procedure with short integer as return type returning set
  22155. MODULE Test;
  22156. PROCEDURE Procedure (value: SET): SHORTINT; BEGIN RETURN value END Procedure;
  22157. END Test.
  22158. negative: procedure with short integer as return type returning array
  22159. MODULE Test;
  22160. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): SHORTINT; BEGIN RETURN value END Procedure;
  22161. END Test.
  22162. negative: procedure with short integer as return type returning record
  22163. MODULE Test;
  22164. PROCEDURE Procedure (value: RECORD END): SHORTINT; BEGIN RETURN value END Procedure;
  22165. END Test.
  22166. negative: procedure with short integer as return type returning object
  22167. MODULE Test;
  22168. PROCEDURE Procedure (value: OBJECT END): SHORTINT; BEGIN RETURN value END Procedure;
  22169. END Test.
  22170. negative: procedure with short integer as return type returning base object
  22171. MODULE Test;
  22172. PROCEDURE Procedure (value: OBJECT): SHORTINT; BEGIN RETURN value END Procedure;
  22173. END Test.
  22174. negative: procedure with short integer as return type returning pointer to array
  22175. MODULE Test;
  22176. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): SHORTINT; BEGIN RETURN value END Procedure;
  22177. END Test.
  22178. negative: procedure with short integer as return type returning pointer to record
  22179. MODULE Test;
  22180. PROCEDURE Procedure (value: POINTER TO RECORD END): SHORTINT; BEGIN RETURN value END Procedure;
  22181. END Test.
  22182. negative: procedure with short integer as return type returning procedure
  22183. MODULE Test;
  22184. PROCEDURE Procedure (value: PROCEDURE): SHORTINT; BEGIN RETURN value END Procedure;
  22185. END Test.
  22186. negative: procedure with integer as return type returning boolean
  22187. MODULE Test;
  22188. PROCEDURE Procedure (value: BOOLEAN): INTEGER; BEGIN RETURN value END Procedure;
  22189. END Test.
  22190. negative: procedure with integer as return type returning character
  22191. MODULE Test;
  22192. PROCEDURE Procedure (value: CHAR): INTEGER; BEGIN RETURN value END Procedure;
  22193. END Test.
  22194. positive: procedure with integer as return type returning short integer
  22195. MODULE Test;
  22196. PROCEDURE Procedure (value: SHORTINT): INTEGER; BEGIN RETURN value END Procedure;
  22197. END Test.
  22198. positive: procedure with integer as return type returning integer
  22199. MODULE Test;
  22200. PROCEDURE Procedure (value: INTEGER): INTEGER; BEGIN RETURN value END Procedure;
  22201. END Test.
  22202. negative: procedure with integer as return type returning long integer
  22203. MODULE Test;
  22204. PROCEDURE Procedure (value: LONGINT): INTEGER; BEGIN RETURN value END Procedure;
  22205. END Test.
  22206. negative: procedure with integer as return type returning huge integer
  22207. MODULE Test;
  22208. PROCEDURE Procedure (value: HUGEINT): INTEGER; BEGIN RETURN value END Procedure;
  22209. END Test.
  22210. negative: procedure with integer as return type returning real
  22211. MODULE Test;
  22212. PROCEDURE Procedure (value: REAL): INTEGER; BEGIN RETURN value END Procedure;
  22213. END Test.
  22214. negative: procedure with integer as return type returning set
  22215. MODULE Test;
  22216. PROCEDURE Procedure (value: SET): INTEGER; BEGIN RETURN value END Procedure;
  22217. END Test.
  22218. negative: procedure with integer as return type returning array
  22219. MODULE Test;
  22220. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): INTEGER; BEGIN RETURN value END Procedure;
  22221. END Test.
  22222. negative: procedure with integer as return type returning record
  22223. MODULE Test;
  22224. PROCEDURE Procedure (value: RECORD END): INTEGER; BEGIN RETURN value END Procedure;
  22225. END Test.
  22226. negative: procedure with integer as return type returning object
  22227. MODULE Test;
  22228. PROCEDURE Procedure (value: OBJECT END): INTEGER; BEGIN RETURN value END Procedure;
  22229. END Test.
  22230. negative: procedure with integer as return type returning base object
  22231. MODULE Test;
  22232. PROCEDURE Procedure (value: OBJECT): INTEGER; BEGIN RETURN value END Procedure;
  22233. END Test.
  22234. negative: procedure with integer as return type returning pointer to array
  22235. MODULE Test;
  22236. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): INTEGER; BEGIN RETURN value END Procedure;
  22237. END Test.
  22238. negative: procedure with integer as return type returning pointer to record
  22239. MODULE Test;
  22240. PROCEDURE Procedure (value: POINTER TO RECORD END): INTEGER; BEGIN RETURN value END Procedure;
  22241. END Test.
  22242. negative: procedure with integer as return type returning procedure
  22243. MODULE Test;
  22244. PROCEDURE Procedure (value: PROCEDURE): INTEGER; BEGIN RETURN value END Procedure;
  22245. END Test.
  22246. negative: procedure with long integer as return type returning boolean
  22247. MODULE Test;
  22248. PROCEDURE Procedure (value: BOOLEAN): LONGINT; BEGIN RETURN value END Procedure;
  22249. END Test.
  22250. negative: procedure with long integer as return type returning character
  22251. MODULE Test;
  22252. PROCEDURE Procedure (value: CHAR): LONGINT; BEGIN RETURN value END Procedure;
  22253. END Test.
  22254. positive: procedure with long integer as return type returning short integer
  22255. MODULE Test;
  22256. PROCEDURE Procedure (value: SHORTINT): LONGINT; BEGIN RETURN value END Procedure;
  22257. END Test.
  22258. positive: procedure with long integer as return type returning integer
  22259. MODULE Test;
  22260. PROCEDURE Procedure (value: INTEGER): LONGINT; BEGIN RETURN value END Procedure;
  22261. END Test.
  22262. positive: procedure with long integer as return type returning long integer
  22263. MODULE Test;
  22264. PROCEDURE Procedure (value: LONGINT): LONGINT; BEGIN RETURN value END Procedure;
  22265. END Test.
  22266. negative: procedure with long integer as return type returning huge integer
  22267. MODULE Test;
  22268. PROCEDURE Procedure (value: HUGEINT): LONGINT; BEGIN RETURN value END Procedure;
  22269. END Test.
  22270. negative: procedure with long integer as return type returning real
  22271. MODULE Test;
  22272. PROCEDURE Procedure (value: REAL): LONGINT; BEGIN RETURN value END Procedure;
  22273. END Test.
  22274. negative: procedure with long integer as return type returning set
  22275. MODULE Test;
  22276. PROCEDURE Procedure (value: SET): LONGINT; BEGIN RETURN value END Procedure;
  22277. END Test.
  22278. negative: procedure with long integer as return type returning array
  22279. MODULE Test;
  22280. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): LONGINT; BEGIN RETURN value END Procedure;
  22281. END Test.
  22282. negative: procedure with long integer as return type returning record
  22283. MODULE Test;
  22284. PROCEDURE Procedure (value: RECORD END): LONGINT; BEGIN RETURN value END Procedure;
  22285. END Test.
  22286. negative: procedure with long integer as return type returning object
  22287. MODULE Test;
  22288. PROCEDURE Procedure (value: OBJECT END): LONGINT; BEGIN RETURN value END Procedure;
  22289. END Test.
  22290. negative: procedure with long integer as return type returning base object
  22291. MODULE Test;
  22292. PROCEDURE Procedure (value: OBJECT): LONGINT; BEGIN RETURN value END Procedure;
  22293. END Test.
  22294. negative: procedure with long integer as return type returning pointer to array
  22295. MODULE Test;
  22296. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): LONGINT; BEGIN RETURN value END Procedure;
  22297. END Test.
  22298. negative: procedure with long integer as return type returning pointer to record
  22299. MODULE Test;
  22300. PROCEDURE Procedure (value: POINTER TO RECORD END): LONGINT; BEGIN RETURN value END Procedure;
  22301. END Test.
  22302. negative: procedure with long integer as return type returning procedure
  22303. MODULE Test;
  22304. PROCEDURE Procedure (value: PROCEDURE): LONGINT; BEGIN RETURN value END Procedure;
  22305. END Test.
  22306. negative: procedure with huge integer as return type returning boolean
  22307. MODULE Test;
  22308. PROCEDURE Procedure (value: BOOLEAN): HUGEINT; BEGIN RETURN value END Procedure;
  22309. END Test.
  22310. negative: procedure with huge integer as return type returning character
  22311. MODULE Test;
  22312. PROCEDURE Procedure (value: CHAR): HUGEINT; BEGIN RETURN value END Procedure;
  22313. END Test.
  22314. positive: procedure with huge integer as return type returning short integer
  22315. MODULE Test;
  22316. PROCEDURE Procedure (value: SHORTINT): HUGEINT; BEGIN RETURN value END Procedure;
  22317. END Test.
  22318. positive: procedure with huge integer as return type returning integer
  22319. MODULE Test;
  22320. PROCEDURE Procedure (value: INTEGER): HUGEINT; BEGIN RETURN value END Procedure;
  22321. END Test.
  22322. positive: procedure with huge integer as return type returning long integer
  22323. MODULE Test;
  22324. PROCEDURE Procedure (value: LONGINT): HUGEINT; BEGIN RETURN value END Procedure;
  22325. END Test.
  22326. positive: procedure with huge integer as return type returning huge integer
  22327. MODULE Test;
  22328. PROCEDURE Procedure (value: HUGEINT): HUGEINT; BEGIN RETURN value END Procedure;
  22329. END Test.
  22330. negative: procedure with huge integer as return type returning real
  22331. MODULE Test;
  22332. PROCEDURE Procedure (value: REAL): HUGEINT; BEGIN RETURN value END Procedure;
  22333. END Test.
  22334. negative: procedure with huge integer as return type returning set
  22335. MODULE Test;
  22336. PROCEDURE Procedure (value: SET): HUGEINT; BEGIN RETURN value END Procedure;
  22337. END Test.
  22338. negative: procedure with huge integer as return type returning array
  22339. MODULE Test;
  22340. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): HUGEINT; BEGIN RETURN value END Procedure;
  22341. END Test.
  22342. negative: procedure with huge integer as return type returning record
  22343. MODULE Test;
  22344. PROCEDURE Procedure (value: RECORD END): HUGEINT; BEGIN RETURN value END Procedure;
  22345. END Test.
  22346. negative: procedure with huge integer as return type returning object
  22347. MODULE Test;
  22348. PROCEDURE Procedure (value: OBJECT END): HUGEINT; BEGIN RETURN value END Procedure;
  22349. END Test.
  22350. negative: procedure with huge integer as return type returning base object
  22351. MODULE Test;
  22352. PROCEDURE Procedure (value: OBJECT): HUGEINT; BEGIN RETURN value END Procedure;
  22353. END Test.
  22354. negative: procedure with huge integer as return type returning pointer to array
  22355. MODULE Test;
  22356. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): HUGEINT; BEGIN RETURN value END Procedure;
  22357. END Test.
  22358. negative: procedure with huge integer as return type returning pointer to record
  22359. MODULE Test;
  22360. PROCEDURE Procedure (value: POINTER TO RECORD END): HUGEINT; BEGIN RETURN value END Procedure;
  22361. END Test.
  22362. negative: procedure with huge integer as return type returning procedure
  22363. MODULE Test;
  22364. PROCEDURE Procedure (value: PROCEDURE): HUGEINT; BEGIN RETURN value END Procedure;
  22365. END Test.
  22366. negative: procedure with real as return type returning boolean
  22367. MODULE Test;
  22368. PROCEDURE Procedure (value: BOOLEAN): REAL; BEGIN RETURN value END Procedure;
  22369. END Test.
  22370. negative: procedure with real as return type returning character
  22371. MODULE Test;
  22372. PROCEDURE Procedure (value: CHAR): REAL; BEGIN RETURN value END Procedure;
  22373. END Test.
  22374. positive: procedure with real as return type returning short integer
  22375. MODULE Test;
  22376. PROCEDURE Procedure (value: SHORTINT): REAL; BEGIN RETURN value END Procedure;
  22377. END Test.
  22378. positive: procedure with real as return type returning integer
  22379. MODULE Test;
  22380. PROCEDURE Procedure (value: INTEGER): REAL; BEGIN RETURN value END Procedure;
  22381. END Test.
  22382. positive: procedure with real as return type returning long integer
  22383. MODULE Test;
  22384. PROCEDURE Procedure (value: LONGINT): REAL; BEGIN RETURN value END Procedure;
  22385. END Test.
  22386. positive: procedure with real as return type returning huge integer
  22387. MODULE Test;
  22388. PROCEDURE Procedure (value: HUGEINT): REAL; BEGIN RETURN value END Procedure;
  22389. END Test.
  22390. positive: procedure with real as return type returning real
  22391. MODULE Test;
  22392. PROCEDURE Procedure (value: REAL): REAL; BEGIN RETURN value END Procedure;
  22393. END Test.
  22394. negative: procedure with real as return type returning long real
  22395. MODULE Test;
  22396. PROCEDURE Procedure (value: LONGREAL): REAL; BEGIN RETURN value END Procedure;
  22397. END Test.
  22398. negative: procedure with real as return type returning set
  22399. MODULE Test;
  22400. PROCEDURE Procedure (value: SET): REAL; BEGIN RETURN value END Procedure;
  22401. END Test.
  22402. negative: procedure with real as return type returning array
  22403. MODULE Test;
  22404. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): REAL; BEGIN RETURN value END Procedure;
  22405. END Test.
  22406. negative: procedure with real as return type returning record
  22407. MODULE Test;
  22408. PROCEDURE Procedure (value: RECORD END): REAL; BEGIN RETURN value END Procedure;
  22409. END Test.
  22410. negative: procedure with real as return type returning object
  22411. MODULE Test;
  22412. PROCEDURE Procedure (value: OBJECT END): REAL; BEGIN RETURN value END Procedure;
  22413. END Test.
  22414. negative: procedure with real as return type returning base object
  22415. MODULE Test;
  22416. PROCEDURE Procedure (value: OBJECT): REAL; BEGIN RETURN value END Procedure;
  22417. END Test.
  22418. negative: procedure with real as return type returning pointer to array
  22419. MODULE Test;
  22420. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): REAL; BEGIN RETURN value END Procedure;
  22421. END Test.
  22422. negative: procedure with real as return type returning pointer to record
  22423. MODULE Test;
  22424. PROCEDURE Procedure (value: POINTER TO RECORD END): REAL; BEGIN RETURN value END Procedure;
  22425. END Test.
  22426. negative: procedure with real as return type returning procedure
  22427. MODULE Test;
  22428. PROCEDURE Procedure (value: PROCEDURE): REAL; BEGIN RETURN value END Procedure;
  22429. END Test.
  22430. negative: procedure with long real as return type returning boolean
  22431. MODULE Test;
  22432. PROCEDURE Procedure (value: BOOLEAN): LONGREAL; BEGIN RETURN value END Procedure;
  22433. END Test.
  22434. negative: procedure with long real as return type returning character
  22435. MODULE Test;
  22436. PROCEDURE Procedure (value: CHAR): LONGREAL; BEGIN RETURN value END Procedure;
  22437. END Test.
  22438. positive: procedure with long real as return type returning short integer
  22439. MODULE Test;
  22440. PROCEDURE Procedure (value: SHORTINT): LONGREAL; BEGIN RETURN value END Procedure;
  22441. END Test.
  22442. positive: procedure with long real as return type returning integer
  22443. MODULE Test;
  22444. PROCEDURE Procedure (value: INTEGER): LONGREAL; BEGIN RETURN value END Procedure;
  22445. END Test.
  22446. positive: procedure with long real as return type returning long integer
  22447. MODULE Test;
  22448. PROCEDURE Procedure (value: LONGINT): LONGREAL; BEGIN RETURN value END Procedure;
  22449. END Test.
  22450. positive: procedure with long real as return type returning huge integer
  22451. MODULE Test;
  22452. PROCEDURE Procedure (value: HUGEINT): LONGREAL; BEGIN RETURN value END Procedure;
  22453. END Test.
  22454. positive: procedure with long real as return type returning real
  22455. MODULE Test;
  22456. PROCEDURE Procedure (value: REAL): LONGREAL; BEGIN RETURN value END Procedure;
  22457. END Test.
  22458. positive: procedure with long real as return type returning long real
  22459. MODULE Test;
  22460. PROCEDURE Procedure (value: LONGREAL): LONGREAL; BEGIN RETURN value END Procedure;
  22461. END Test.
  22462. negative: procedure with long real as return type returning set
  22463. MODULE Test;
  22464. PROCEDURE Procedure (value: SET): LONGREAL; BEGIN RETURN value END Procedure;
  22465. END Test.
  22466. negative: procedure with long real as return type returning array
  22467. MODULE Test;
  22468. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): LONGREAL; BEGIN RETURN value END Procedure;
  22469. END Test.
  22470. negative: procedure with long real as return type returning record
  22471. MODULE Test;
  22472. PROCEDURE Procedure (value: RECORD END): LONGREAL; BEGIN RETURN value END Procedure;
  22473. END Test.
  22474. negative: procedure with long real as return type returning object
  22475. MODULE Test;
  22476. PROCEDURE Procedure (value: OBJECT END): LONGREAL; BEGIN RETURN value END Procedure;
  22477. END Test.
  22478. negative: procedure with long real as return type returning base object
  22479. MODULE Test;
  22480. PROCEDURE Procedure (value: OBJECT): LONGREAL; BEGIN RETURN value END Procedure;
  22481. END Test.
  22482. negative: procedure with long real as return type returning pointer to array
  22483. MODULE Test;
  22484. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): LONGREAL; BEGIN RETURN value END Procedure;
  22485. END Test.
  22486. negative: procedure with long real as return type returning pointer to record
  22487. MODULE Test;
  22488. PROCEDURE Procedure (value: POINTER TO RECORD END): LONGREAL; BEGIN RETURN value END Procedure;
  22489. END Test.
  22490. negative: procedure with long real as return type returning procedure
  22491. MODULE Test;
  22492. PROCEDURE Procedure (value: PROCEDURE): LONGREAL; BEGIN RETURN value END Procedure;
  22493. END Test.
  22494. negative: procedure with set as return type returning boolean
  22495. MODULE Test;
  22496. PROCEDURE Procedure (value: BOOLEAN): SET; BEGIN RETURN value END Procedure;
  22497. END Test.
  22498. negative: procedure with set as return type returning character
  22499. MODULE Test;
  22500. PROCEDURE Procedure (value: CHAR): SET; BEGIN RETURN value END Procedure;
  22501. END Test.
  22502. negative: procedure with set as return type returning integer
  22503. MODULE Test;
  22504. PROCEDURE Procedure (value: INTEGER): SET; BEGIN RETURN value END Procedure;
  22505. END Test.
  22506. negative: procedure with set as return type returning real
  22507. MODULE Test;
  22508. PROCEDURE Procedure (value: REAL): SET; BEGIN RETURN value END Procedure;
  22509. END Test.
  22510. positive: procedure with set as return type returning set
  22511. MODULE Test;
  22512. PROCEDURE Procedure (value: SET): SET; BEGIN RETURN value END Procedure;
  22513. END Test.
  22514. negative: procedure with set as return type returning array
  22515. MODULE Test;
  22516. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): SET; BEGIN RETURN value END Procedure;
  22517. END Test.
  22518. negative: procedure with set as return type returning record
  22519. MODULE Test;
  22520. PROCEDURE Procedure (value: RECORD END): SET; BEGIN RETURN value END Procedure;
  22521. END Test.
  22522. negative: procedure with set as return type returning object
  22523. MODULE Test;
  22524. PROCEDURE Procedure (value: OBJECT END): SET; BEGIN RETURN value END Procedure;
  22525. END Test.
  22526. negative: procedure with set as return type returning base object
  22527. MODULE Test;
  22528. PROCEDURE Procedure (value: OBJECT): SET; BEGIN RETURN value END Procedure;
  22529. END Test.
  22530. negative: procedure with set as return type returning pointer to array
  22531. MODULE Test;
  22532. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): SET; BEGIN RETURN value END Procedure;
  22533. END Test.
  22534. negative: procedure with set as return type returning pointer to record
  22535. MODULE Test;
  22536. PROCEDURE Procedure (value: POINTER TO RECORD END): SET; BEGIN RETURN value END Procedure;
  22537. END Test.
  22538. negative: procedure with set as return type returning procedure
  22539. MODULE Test;
  22540. PROCEDURE Procedure (value: PROCEDURE): SET; BEGIN RETURN value END Procedure;
  22541. END Test.
  22542. negative: procedure with array as return type returning boolean
  22543. MODULE Test;
  22544. PROCEDURE Procedure (value: BOOLEAN): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22545. END Test.
  22546. negative: procedure with array as return type returning character
  22547. MODULE Test;
  22548. PROCEDURE Procedure (value: CHAR): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22549. END Test.
  22550. negative: procedure with array as return type returning integer
  22551. MODULE Test;
  22552. PROCEDURE Procedure (value: INTEGER): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22553. END Test.
  22554. negative: procedure with array as return type returning real
  22555. MODULE Test;
  22556. PROCEDURE Procedure (value: REAL): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22557. END Test.
  22558. negative: procedure with array as return type returning set
  22559. MODULE Test;
  22560. PROCEDURE Procedure (value: SET): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22561. END Test.
  22562. positive: procedure with array as return type returning compatible array
  22563. MODULE Test;
  22564. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22565. END Test.
  22566. negative: procedure with array as return type returning incompatible array
  22567. MODULE Test;
  22568. PROCEDURE Procedure (value: ARRAY 10 OF SET): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22569. END Test.
  22570. negative: procedure with array as return type returning open array
  22571. MODULE Test;
  22572. PROCEDURE Procedure (value: ARRAY OF CHAR): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22573. END Test.
  22574. negative: procedure with array as return type returning record
  22575. MODULE Test;
  22576. PROCEDURE Procedure (value: RECORD END): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22577. END Test.
  22578. negative: procedure with array as return type returning object
  22579. MODULE Test;
  22580. PROCEDURE Procedure (value: OBJECT END): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22581. END Test.
  22582. negative: procedure with array as return type returning base object
  22583. MODULE Test;
  22584. PROCEDURE Procedure (value: OBJECT): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22585. END Test.
  22586. negative: procedure with array as return type returning pointer to array
  22587. MODULE Test;
  22588. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22589. END Test.
  22590. negative: procedure with array as return type returning pointer to record
  22591. MODULE Test;
  22592. PROCEDURE Procedure (value: POINTER TO RECORD END): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22593. END Test.
  22594. negative: procedure with array as return type returning procedure
  22595. MODULE Test;
  22596. PROCEDURE Procedure (value: PROCEDURE): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22597. END Test.
  22598. negative: procedure with record as return type returning boolean
  22599. MODULE Test;
  22600. PROCEDURE Procedure (value: BOOLEAN): RECORD END; BEGIN RETURN value END Procedure;
  22601. END Test.
  22602. negative: procedure with record as return type returning character
  22603. MODULE Test;
  22604. PROCEDURE Procedure (value: CHAR): RECORD END; BEGIN RETURN value END Procedure;
  22605. END Test.
  22606. negative: procedure with record as return type returning integer
  22607. MODULE Test;
  22608. PROCEDURE Procedure (value: INTEGER): RECORD END; BEGIN RETURN value END Procedure;
  22609. END Test.
  22610. negative: procedure with record as return type returning real
  22611. MODULE Test;
  22612. PROCEDURE Procedure (value: REAL): RECORD END; BEGIN RETURN value END Procedure;
  22613. END Test.
  22614. negative: procedure with record as return type returning set
  22615. MODULE Test;
  22616. PROCEDURE Procedure (value: SET): RECORD END; BEGIN RETURN value END Procedure;
  22617. END Test.
  22618. negative: procedure with record as return type returning array
  22619. MODULE Test;
  22620. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): RECORD END; BEGIN RETURN value END Procedure;
  22621. END Test.
  22622. positive: procedure with record as return type returning record
  22623. MODULE Test;
  22624. TYPE Record = RECORD END;
  22625. PROCEDURE Procedure (value: Record): Record; BEGIN RETURN value END Procedure;
  22626. END Test.
  22627. positive: procedure with record as return type returning compatible record
  22628. MODULE Test;
  22629. TYPE Record = RECORD END;
  22630. PROCEDURE Procedure (value: RECORD (Record) END): Record; BEGIN RETURN value END Procedure;
  22631. END Test.
  22632. negative: procedure with record as return type returning incompatible record
  22633. MODULE Test;
  22634. TYPE Record = RECORD END;
  22635. PROCEDURE Procedure (value: Record): RECORD (Record) END; BEGIN RETURN value END Procedure;
  22636. END Test.
  22637. negative: procedure with record as return type returning object
  22638. MODULE Test;
  22639. PROCEDURE Procedure (value: OBJECT END): RECORD END; BEGIN RETURN value END Procedure;
  22640. END Test.
  22641. negative: procedure with record as return type returning base object
  22642. MODULE Test;
  22643. PROCEDURE Procedure (value: OBJECT): RECORD END; BEGIN RETURN value END Procedure;
  22644. END Test.
  22645. negative: procedure with record as return type returning pointer to array
  22646. MODULE Test;
  22647. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): RECORD END; BEGIN RETURN value END Procedure;
  22648. END Test.
  22649. negative: procedure with record as return type returning pointer to record
  22650. MODULE Test;
  22651. PROCEDURE Procedure (value: POINTER TO RECORD END): RECORD END; BEGIN RETURN value END Procedure;
  22652. END Test.
  22653. negative: procedure with record as return type returning procedure
  22654. MODULE Test;
  22655. PROCEDURE Procedure (value: PROCEDURE): RECORD END; BEGIN RETURN value END Procedure;
  22656. END Test.
  22657. negative: procedure with object as return type returning boolean
  22658. MODULE Test;
  22659. PROCEDURE Procedure (value: BOOLEAN): OBJECT END; BEGIN RETURN value END Procedure;
  22660. END Test.
  22661. negative: procedure with object as return type returning character
  22662. MODULE Test;
  22663. PROCEDURE Procedure (value: CHAR): OBJECT END; BEGIN RETURN value END Procedure;
  22664. END Test.
  22665. negative: procedure with object as return type returning integer
  22666. MODULE Test;
  22667. PROCEDURE Procedure (value: INTEGER): OBJECT END; BEGIN RETURN value END Procedure;
  22668. END Test.
  22669. negative: procedure with object as return type returning real
  22670. MODULE Test;
  22671. PROCEDURE Procedure (value: REAL): OBJECT END; BEGIN RETURN value END Procedure;
  22672. END Test.
  22673. negative: procedure with object as return type returning set
  22674. MODULE Test;
  22675. PROCEDURE Procedure (value: SET): OBJECT END; BEGIN RETURN value END Procedure;
  22676. END Test.
  22677. negative: procedure with object as return type returning array
  22678. MODULE Test;
  22679. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): OBJECT END; BEGIN RETURN value END Procedure;
  22680. END Test.
  22681. negative: procedure with object as return type returning record
  22682. MODULE Test;
  22683. PROCEDURE Procedure (value: RECORD END): OBJECT END; BEGIN RETURN value END Procedure;
  22684. END Test.
  22685. positive: procedure with object as return type returning object
  22686. MODULE Test;
  22687. TYPE Object = OBJECT END Object;
  22688. PROCEDURE Procedure (value: Object): Object; BEGIN RETURN value END Procedure;
  22689. END Test.
  22690. positive: procedure with object as return type returning compatible object
  22691. MODULE Test;
  22692. TYPE Object = OBJECT END Object;
  22693. PROCEDURE Procedure (value: OBJECT (Object) END): Object; BEGIN RETURN value END Procedure;
  22694. END Test.
  22695. negative: procedure with object as return type returning incompatible object
  22696. MODULE Test;
  22697. TYPE Object = OBJECT END Object;
  22698. PROCEDURE Procedure (value: Object): OBJECT (Object) END; BEGIN RETURN value END Procedure;
  22699. END Test.
  22700. negative: procedure with object as return type returning base object
  22701. MODULE Test;
  22702. PROCEDURE Procedure (value: OBJECT): OBJECT END; BEGIN RETURN value END Procedure;
  22703. END Test.
  22704. negative: procedure with object as return type returning pointer to array
  22705. MODULE Test;
  22706. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): OBJECT END; BEGIN RETURN value END Procedure;
  22707. END Test.
  22708. negative: procedure with object as return type returning pointer to record
  22709. MODULE Test;
  22710. PROCEDURE Procedure (value: POINTER TO RECORD END): OBJECT END; BEGIN RETURN value END Procedure;
  22711. END Test.
  22712. negative: procedure with object as return type returning procedure
  22713. MODULE Test;
  22714. PROCEDURE Procedure (value: PROCEDURE): OBJECT END; BEGIN RETURN value END Procedure;
  22715. END Test.
  22716. positive: procedure with object as return type returning nil pointer
  22717. MODULE Test;
  22718. PROCEDURE Procedure (): OBJECT END; BEGIN RETURN NIL END Procedure;
  22719. END Test.
  22720. negative: procedure with base object as return type returning boolean
  22721. MODULE Test;
  22722. PROCEDURE Procedure (value: BOOLEAN): OBJECT; BEGIN RETURN value END Procedure;
  22723. END Test.
  22724. negative: procedure with base object as return type returning character
  22725. MODULE Test;
  22726. PROCEDURE Procedure (value: CHAR): OBJECT; BEGIN RETURN value END Procedure;
  22727. END Test.
  22728. negative: procedure with base object as return type returning integer
  22729. MODULE Test;
  22730. PROCEDURE Procedure (value: INTEGER): OBJECT; BEGIN RETURN value END Procedure;
  22731. END Test.
  22732. negative: procedure with base object as return type returning real
  22733. MODULE Test;
  22734. PROCEDURE Procedure (value: REAL): OBJECT; BEGIN RETURN value END Procedure;
  22735. END Test.
  22736. negative: procedure with base object as return type returning set
  22737. MODULE Test;
  22738. PROCEDURE Procedure (value: SET): OBJECT; BEGIN RETURN value END Procedure;
  22739. END Test.
  22740. negative: procedure with base object as return type returning array
  22741. MODULE Test;
  22742. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): OBJECT; BEGIN RETURN value END Procedure;
  22743. END Test.
  22744. negative: procedure with base object as return type returning record
  22745. MODULE Test;
  22746. PROCEDURE Procedure (value: RECORD END): OBJECT; BEGIN RETURN value END Procedure;
  22747. END Test.
  22748. positive: procedure with base object as return type returning object
  22749. MODULE Test;
  22750. PROCEDURE Procedure (value: OBJECT END): OBJECT; BEGIN RETURN value END Procedure;
  22751. END Test.
  22752. positive: procedure with base object as return type returning base object
  22753. MODULE Test;
  22754. PROCEDURE Procedure (value: OBJECT): OBJECT; BEGIN RETURN value END Procedure;
  22755. END Test.
  22756. negative: procedure with base object as return type returning pointer to array
  22757. MODULE Test;
  22758. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): OBJECT; BEGIN RETURN value END Procedure;
  22759. END Test.
  22760. negative: procedure with base object as return type returning procedure
  22761. MODULE Test;
  22762. PROCEDURE Procedure (value: PROCEDURE): OBJECT; BEGIN RETURN value END Procedure;
  22763. END Test.
  22764. positive: procedure with base object as return type returning pointer to record
  22765. MODULE Test;
  22766. PROCEDURE Procedure (value: POINTER TO RECORD END): OBJECT; BEGIN RETURN value END Procedure;
  22767. END Test.
  22768. positive: procedure with base object as return type returning nil pointer
  22769. MODULE Test;
  22770. PROCEDURE Procedure (): OBJECT; BEGIN RETURN NIL END Procedure;
  22771. END Test.
  22772. negative: procedure with pointer to array as return type returning boolean
  22773. MODULE Test;
  22774. PROCEDURE Procedure (value: BOOLEAN): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22775. END Test.
  22776. negative: procedure with pointer to array as return type returning character
  22777. MODULE Test;
  22778. PROCEDURE Procedure (value: CHAR): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22779. END Test.
  22780. negative: procedure with pointer to array as return type returning integer
  22781. MODULE Test;
  22782. PROCEDURE Procedure (value: INTEGER): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22783. END Test.
  22784. negative: procedure with pointer to array as return type returning real
  22785. MODULE Test;
  22786. PROCEDURE Procedure (value: REAL): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22787. END Test.
  22788. negative: procedure with pointer to array as return type returning set
  22789. MODULE Test;
  22790. PROCEDURE Procedure (value: SET): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22791. END Test.
  22792. negative: procedure with pointer to array as return type returning array
  22793. MODULE Test;
  22794. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22795. END Test.
  22796. negative: procedure with pointer to array as return type returning record
  22797. MODULE Test;
  22798. PROCEDURE Procedure (value: RECORD END): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22799. END Test.
  22800. negative: procedure with pointer to array as return type returning object
  22801. MODULE Test;
  22802. PROCEDURE Procedure (value: OBJECT END): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22803. END Test.
  22804. negative: procedure with pointer to array as return type returning base object
  22805. MODULE Test;
  22806. PROCEDURE Procedure (value: OBJECT): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22807. END Test.
  22808. positive: procedure with pointer to array as return type returning compatible pointer to array
  22809. MODULE Test;
  22810. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22811. END Test.
  22812. negative: procedure with pointer to array as return type returning incompatible pointer to array
  22813. MODULE Test;
  22814. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF SET): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22815. END Test.
  22816. negative: procedure with pointer to array as return type returning pointer to record
  22817. MODULE Test;
  22818. PROCEDURE Procedure (value: POINTER TO RECORD END): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22819. END Test.
  22820. negative: procedure with pointer to array as return type returning procedure
  22821. MODULE Test;
  22822. PROCEDURE Procedure (value: PROCEDURE): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22823. END Test.
  22824. positive: procedure with pointer to array as return type returning nil pointer
  22825. MODULE Test;
  22826. PROCEDURE Procedure (): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN NIL END Procedure;
  22827. END Test.
  22828. negative: procedure with pointer to record as return type returning boolean
  22829. MODULE Test;
  22830. PROCEDURE Procedure (value: BOOLEAN): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22831. END Test.
  22832. negative: procedure with pointer to record as return type returning character
  22833. MODULE Test;
  22834. PROCEDURE Procedure (value: CHAR): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22835. END Test.
  22836. negative: procedure with pointer to record as return type returning integer
  22837. MODULE Test;
  22838. PROCEDURE Procedure (value: INTEGER): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22839. END Test.
  22840. negative: procedure with pointer to record as return type returning real
  22841. MODULE Test;
  22842. PROCEDURE Procedure (value: REAL): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22843. END Test.
  22844. negative: procedure with pointer to record as return type returning set
  22845. MODULE Test;
  22846. PROCEDURE Procedure (value: SET): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22847. END Test.
  22848. negative: procedure with pointer to record as return type returning array
  22849. MODULE Test;
  22850. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22851. END Test.
  22852. negative: procedure with pointer to record as return type returning record
  22853. MODULE Test;
  22854. PROCEDURE Procedure (value: RECORD END): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22855. END Test.
  22856. negative: procedure with pointer to record as return type returning object
  22857. MODULE Test;
  22858. PROCEDURE Procedure (value: OBJECT END): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22859. END Test.
  22860. negative: procedure with pointer to record as return type returning base object
  22861. MODULE Test;
  22862. PROCEDURE Procedure (value: OBJECT): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22863. END Test.
  22864. negative: procedure with pointer to record as return type returning pointer to array
  22865. MODULE Test;
  22866. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22867. END Test.
  22868. positive: procedure with pointer to record as return type returning pointer to record
  22869. MODULE Test;
  22870. TYPE Record = RECORD END;
  22871. PROCEDURE Procedure (value: POINTER TO Record): POINTER TO Record; BEGIN RETURN value END Procedure;
  22872. END Test.
  22873. positive: procedure with pointer to record as return type returning compatible pointer to record
  22874. MODULE Test;
  22875. TYPE Record = RECORD END;
  22876. PROCEDURE Procedure (value: POINTER TO RECORD (Record) END): POINTER TO Record; BEGIN RETURN value END Procedure;
  22877. END Test.
  22878. negative: procedure with pointer to record as return type returning incompatible pointer to record
  22879. MODULE Test;
  22880. TYPE Record = RECORD END;
  22881. PROCEDURE Procedure (value: POINTER TO Record): POINTER TO RECORD (Record) END; BEGIN RETURN value END Procedure;
  22882. END Test.
  22883. negative: procedure with pointer to record as return type returning procedure
  22884. MODULE Test;
  22885. PROCEDURE Procedure (value: PROCEDURE): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22886. END Test.
  22887. positive: procedure with pointer to record as return type returning nil pointer
  22888. MODULE Test;
  22889. PROCEDURE Procedure (): POINTER TO RECORD END; BEGIN RETURN NIL END Procedure;
  22890. END Test.
  22891. negative: procedure with procedure as return type returning boolean
  22892. MODULE Test;
  22893. PROCEDURE Procedure (value: BOOLEAN): PROCEDURE; BEGIN RETURN value END Procedure;
  22894. END Test.
  22895. negative: procedure with procedure as return type returning character
  22896. MODULE Test;
  22897. PROCEDURE Procedure (value: CHAR): PROCEDURE; BEGIN RETURN value END Procedure;
  22898. END Test.
  22899. negative: procedure with procedure as return type returning integer
  22900. MODULE Test;
  22901. PROCEDURE Procedure (value: INTEGER): PROCEDURE; BEGIN RETURN value END Procedure;
  22902. END Test.
  22903. negative: procedure with procedure as return type returning real
  22904. MODULE Test;
  22905. PROCEDURE Procedure (value: REAL): PROCEDURE; BEGIN RETURN value END Procedure;
  22906. END Test.
  22907. negative: procedure with procedure as return type returning set
  22908. MODULE Test;
  22909. PROCEDURE Procedure (value: SET): PROCEDURE; BEGIN RETURN value END Procedure;
  22910. END Test.
  22911. negative: procedure with procedure as return type returning array
  22912. MODULE Test;
  22913. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): PROCEDURE; BEGIN RETURN value END Procedure;
  22914. END Test.
  22915. negative: procedure with procedure as return type returning record
  22916. MODULE Test;
  22917. PROCEDURE Procedure (value: RECORD END): PROCEDURE; BEGIN RETURN value END Procedure;
  22918. END Test.
  22919. negative: procedure with procedure as return type returning object
  22920. MODULE Test;
  22921. PROCEDURE Procedure (value: OBJECT END): PROCEDURE; BEGIN RETURN value END Procedure;
  22922. END Test.
  22923. negative: procedure with procedure as return type returning base object
  22924. MODULE Test;
  22925. PROCEDURE Procedure (value: OBJECT): PROCEDURE; BEGIN RETURN value END Procedure;
  22926. END Test.
  22927. negative: procedure with procedure as return type returning pointer to array
  22928. MODULE Test;
  22929. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): PROCEDURE; BEGIN RETURN value END Procedure;
  22930. END Test.
  22931. negative: procedure with procedure as return type returning pointer to record
  22932. MODULE Test;
  22933. PROCEDURE Procedure (value: POINTER TO RECORD END): PROCEDURE; BEGIN RETURN value END Procedure;
  22934. END Test.
  22935. positive: procedure with procedure as return type returning compatible procedure
  22936. MODULE Test;
  22937. PROCEDURE Procedure (value: PROCEDURE): PROCEDURE; BEGIN RETURN value END Procedure;
  22938. END Test.
  22939. negative: procedure with procedure as return type returning incompatible procedure
  22940. MODULE Test;
  22941. PROCEDURE Procedure (value: PROCEDURE (value: INTEGER)): PROCEDURE; BEGIN RETURN value END Procedure;
  22942. END Test.
  22943. positive: procedure with procedure as return type returning itself
  22944. MODULE Test;
  22945. TYPE Type = PROCEDURE (): Type;
  22946. PROCEDURE Procedure (): Type; BEGIN RETURN Procedure END Procedure;
  22947. END Test.
  22948. positive: procedure with procedure as return type returning nil pointer
  22949. MODULE Test;
  22950. PROCEDURE Procedure (): PROCEDURE; BEGIN RETURN NIL END Procedure;
  22951. END Test.
  22952. # exit statement
  22953. negative: unbounded exit statement
  22954. MODULE Test;
  22955. BEGIN EXIT
  22956. END Test.
  22957. positive: exit statement within loop
  22958. MODULE Test;
  22959. BEGIN LOOP EXIT END
  22960. END Test.
  22961. negative: exit statement before loop
  22962. MODULE Test;
  22963. BEGIN EXIT ; LOOP END
  22964. END Test.
  22965. negative: exit statement after loop
  22966. MODULE Test;
  22967. BEGIN LOOP END ; EXIT
  22968. END Test.
  22969. positive: exit statement within nested loop
  22970. MODULE Test;
  22971. BEGIN LOOP LOOP EXIT END END
  22972. END Test.
  22973. positive: exit statement before nested loop
  22974. MODULE Test;
  22975. BEGIN LOOP EXIT ; LOOP END END
  22976. END Test.
  22977. positive: exit statement after nested loop
  22978. MODULE Test;
  22979. BEGIN LOOP LOOP END ; EXIT END
  22980. END Test.
  22981. # assert statement
  22982. positive: assert statement with constant true condition
  22983. MODULE Test;
  22984. BEGIN ASSERT (TRUE);
  22985. END Test.
  22986. negative: assert statement with constant false condition
  22987. MODULE Test;
  22988. BEGIN ASSERT (FALSE);
  22989. END Test.
  22990. positive: unreachable assert statement with constant false condition
  22991. MODULE Test;
  22992. BEGIN IF FALSE THEN ASSERT (FALSE) END;
  22993. END Test.
  22994. positive: assert statement with positive number
  22995. MODULE Test;
  22996. BEGIN ASSERT (TRUE, 5);
  22997. END Test.
  22998. positive: assert statement with negative number
  22999. MODULE Test;
  23000. BEGIN ASSERT (TRUE, -5);
  23001. END Test.
  23002. positive: assert statement with zero number
  23003. MODULE Test;
  23004. BEGIN ASSERT (TRUE, 0);
  23005. END Test.
  23006. negative: assert statement with constant condition of type character
  23007. MODULE Test;
  23008. BEGIN ASSERT ('a');
  23009. END Test.
  23010. negative: assert statement with constant condition of type integer
  23011. MODULE Test;
  23012. BEGIN ASSERT (5);
  23013. END Test.
  23014. negative: assert statement with constant condition of type real
  23015. MODULE Test;
  23016. BEGIN ASSERT (4.5);
  23017. END Test.
  23018. negative: assert statement with constant condition of type set
  23019. MODULE Test;
  23020. BEGIN ASSERT ({5});
  23021. END Test.
  23022. negative: assert statement with constant condition of type string
  23023. MODULE Test;
  23024. BEGIN ASSERT ("condition");
  23025. END Test.
  23026. negative: assert statement with constant condition of type nil pointer
  23027. MODULE Test;
  23028. BEGIN ASSERT (NIL);
  23029. END Test.
  23030. positive: assert statement with condition of type boolean
  23031. MODULE Test;
  23032. VAR condition: BOOLEAN;
  23033. BEGIN ASSERT (condition);
  23034. END Test.
  23035. negative: assert statement with condition of type character
  23036. MODULE Test;
  23037. VAR condition: CHAR;
  23038. BEGIN ASSERT (condition);
  23039. END Test.
  23040. negative: assert statement with condition of type short integer
  23041. MODULE Test;
  23042. VAR condition: SHORTINT;
  23043. BEGIN ASSERT (condition);
  23044. END Test.
  23045. negative: assert statement with condition of type integer
  23046. MODULE Test;
  23047. VAR condition: INTEGER;
  23048. BEGIN ASSERT (condition);
  23049. END Test.
  23050. negative: assert statement with condition of type long integer
  23051. MODULE Test;
  23052. VAR condition: LONGINT;
  23053. BEGIN ASSERT (condition);
  23054. END Test.
  23055. negative: assert statement with condition of type huge integer
  23056. MODULE Test;
  23057. VAR condition: HUGEINT;
  23058. BEGIN ASSERT (condition);
  23059. END Test.
  23060. negative: assert statement with condition of type real
  23061. MODULE Test;
  23062. VAR condition: REAL;
  23063. BEGIN ASSERT (condition);
  23064. END Test.
  23065. negative: assert statement with condition of type long real
  23066. MODULE Test;
  23067. VAR condition: LONGREAL;
  23068. BEGIN ASSERT (condition);
  23069. END Test.
  23070. negative: assert statement with condition of type set
  23071. MODULE Test;
  23072. VAR condition: SET;
  23073. BEGIN ASSERT (condition);
  23074. END Test.
  23075. negative: assert statement with condition of type array
  23076. MODULE Test;
  23077. VAR condition: ARRAY 10 OF CHAR;
  23078. BEGIN ASSERT (condition);
  23079. END Test.
  23080. negative: assert statement with condition of type record
  23081. MODULE Test;
  23082. VAR condition: RECORD END;
  23083. BEGIN ASSERT (condition);
  23084. END Test.
  23085. negative: assert statement with condition of type object
  23086. MODULE Test;
  23087. VAR condition: OBJECT;
  23088. BEGIN ASSERT (condition);
  23089. END Test.
  23090. negative: assert statement with condition of type pointer
  23091. MODULE Test;
  23092. VAR condition: POINTER TO RECORD END;
  23093. BEGIN ASSERT (condition);
  23094. END Test.
  23095. negative: assert statement with condition of type procedure
  23096. MODULE Test;
  23097. VAR condition: PROCEDURE;
  23098. BEGIN ASSERT (condition);
  23099. END Test.
  23100. negative: assert statement with import as condition
  23101. MODULE Test;
  23102. IMPORT condition := Dummy;
  23103. BEGIN ASSERT (condition);
  23104. END Test.
  23105. negative: assert statement with type as condition
  23106. MODULE Test;
  23107. TYPE condition = BOOLEAN
  23108. BEGIN ASSERT (condition);
  23109. END Test.
  23110. negative: assert statement with constant number of type character
  23111. MODULE Test;
  23112. BEGIN ASSERT (TRUE, 'a');
  23113. END Test.
  23114. positive: assert statement with constant number of type integer
  23115. MODULE Test;
  23116. BEGIN ASSERT (TRUE, 5);
  23117. END Test.
  23118. negative: assert statement with constant number of type real
  23119. MODULE Test;
  23120. BEGIN ASSERT (TRUE, 4.5);
  23121. END Test.
  23122. negative: assert statement with constant number of type set
  23123. MODULE Test;
  23124. BEGIN ASSERT (TRUE, {5});
  23125. END Test.
  23126. negative: assert statement with constant number of type string
  23127. MODULE Test;
  23128. BEGIN ASSERT (TRUE, "number");
  23129. END Test.
  23130. negative: assert statement with constant number of type nil pointer
  23131. MODULE Test;
  23132. BEGIN ASSERT (TRUE, NIL);
  23133. END Test.
  23134. negative: assert statement with number of type boolean
  23135. MODULE Test;
  23136. VAR number: BOOLEAN;
  23137. BEGIN ASSERT (TRUE, number);
  23138. END Test.
  23139. negative: assert statement with number of type character
  23140. MODULE Test;
  23141. VAR number: CHAR;
  23142. BEGIN ASSERT (TRUE, number);
  23143. END Test.
  23144. negative: assert statement with number of type short integer
  23145. MODULE Test;
  23146. VAR number: SHORTINT;
  23147. BEGIN ASSERT (TRUE, number);
  23148. END Test.
  23149. negative: assert statement with number of type integer
  23150. MODULE Test;
  23151. VAR number: INTEGER;
  23152. BEGIN ASSERT (TRUE, number);
  23153. END Test.
  23154. negative: assert statement with number of type long integer
  23155. MODULE Test;
  23156. VAR number: LONGINT;
  23157. BEGIN ASSERT (TRUE, number);
  23158. END Test.
  23159. negative: assert statement with number of type huge integer
  23160. MODULE Test;
  23161. VAR number: HUGEINT;
  23162. BEGIN ASSERT (TRUE, number);
  23163. END Test.
  23164. negative: assert statement with number of type real
  23165. MODULE Test;
  23166. VAR number: REAL;
  23167. BEGIN ASSERT (TRUE, number);
  23168. END Test.
  23169. negative: assert statement with number of type long real
  23170. MODULE Test;
  23171. VAR number: LONGREAL;
  23172. BEGIN ASSERT (TRUE, number);
  23173. END Test.
  23174. negative: assert statement with number of type set
  23175. MODULE Test;
  23176. VAR number: SET;
  23177. BEGIN ASSERT (TRUE, number);
  23178. END Test.
  23179. negative: assert statement with number of type array
  23180. MODULE Test;
  23181. VAR number: ARRAY 10 OF CHAR;
  23182. BEGIN ASSERT (TRUE, number);
  23183. END Test.
  23184. negative: assert statement with number of type record
  23185. MODULE Test;
  23186. VAR number: RECORD END;
  23187. BEGIN ASSERT (TRUE, number);
  23188. END Test.
  23189. negative: assert statement with number of type object
  23190. MODULE Test;
  23191. VAR number: OBJECT;
  23192. BEGIN ASSERT (TRUE, number);
  23193. END Test.
  23194. negative: assert statement with number of type pointer
  23195. MODULE Test;
  23196. VAR number: POINTER TO RECORD END;
  23197. BEGIN ASSERT (TRUE, number);
  23198. END Test.
  23199. negative: assert statement with number of type procedure
  23200. MODULE Test;
  23201. VAR number: PROCEDURE;
  23202. BEGIN ASSERT (TRUE, number);
  23203. END Test.
  23204. negative: assert statement with import as number
  23205. MODULE Test;
  23206. IMPORT number := Dummy;
  23207. BEGIN ASSERT (TRUE, number);
  23208. END Test.
  23209. negative: assert statement with type as number
  23210. MODULE Test;
  23211. TYPE number = INTEGER
  23212. BEGIN ASSERT (TRUE, number);
  23213. END Test.
  23214. # if statement
  23215. positive: if statement with constant true condition
  23216. MODULE Test;
  23217. BEGIN IF TRUE THEN END;
  23218. END Test.
  23219. positive: if statement with constant false condition
  23220. MODULE Test;
  23221. BEGIN IF FALSE THEN END;
  23222. END Test.
  23223. negative: if statement with constant condition of type character
  23224. MODULE Test;
  23225. BEGIN IF 'a' THEN END;
  23226. END Test.
  23227. negative: if statement with constant condition of type integer
  23228. MODULE Test;
  23229. BEGIN IF 5 THEN END;
  23230. END Test.
  23231. negative: if statement with constant condition of type real
  23232. MODULE Test;
  23233. BEGIN IF 4.5 THEN END;
  23234. END Test.
  23235. negative: if statement with constant condition of type set
  23236. MODULE Test;
  23237. BEGIN IF {5} THEN END;
  23238. END Test.
  23239. negative: if statement with constant condition of type string
  23240. MODULE Test;
  23241. BEGIN IF "condition" THEN END;
  23242. END Test.
  23243. negative: if statement with constant condition of type nil pointer
  23244. MODULE Test;
  23245. BEGIN IF NIL THEN END;
  23246. END Test.
  23247. positive: if statement with condition of type boolean
  23248. MODULE Test;
  23249. VAR condition: BOOLEAN;
  23250. BEGIN IF condition THEN END;
  23251. END Test.
  23252. negative: if statement with condition of type character
  23253. MODULE Test;
  23254. VAR condition: CHAR;
  23255. BEGIN IF condition THEN END;
  23256. END Test.
  23257. negative: if statement with condition of type short integer
  23258. MODULE Test;
  23259. VAR condition: SHORTINT;
  23260. BEGIN IF condition THEN END;
  23261. END Test.
  23262. negative: if statement with condition of type integer
  23263. MODULE Test;
  23264. VAR condition: INTEGER;
  23265. BEGIN IF condition THEN END;
  23266. END Test.
  23267. negative: if statement with condition of type long integer
  23268. MODULE Test;
  23269. VAR condition: LONGINT;
  23270. BEGIN IF condition THEN END;
  23271. END Test.
  23272. negative: if statement with condition of type huge integer
  23273. MODULE Test;
  23274. VAR condition: HUGEINT;
  23275. BEGIN IF condition THEN END;
  23276. END Test.
  23277. negative: if statement with condition of type real
  23278. MODULE Test;
  23279. VAR condition: REAL;
  23280. BEGIN IF condition THEN END;
  23281. END Test.
  23282. negative: if statement with condition of type long real
  23283. MODULE Test;
  23284. VAR condition: LONGREAL;
  23285. BEGIN IF condition THEN END;
  23286. END Test.
  23287. negative: if statement with condition of type set
  23288. MODULE Test;
  23289. VAR condition: SET;
  23290. BEGIN IF condition THEN END;
  23291. END Test.
  23292. negative: if statement with condition of type array
  23293. MODULE Test;
  23294. VAR condition: ARRAY 10 OF CHAR;
  23295. BEGIN IF condition THEN END;
  23296. END Test.
  23297. negative: if statement with condition of type record
  23298. MODULE Test;
  23299. VAR condition: RECORD END;
  23300. BEGIN IF condition THEN END;
  23301. END Test.
  23302. negative: if statement with condition of type object
  23303. MODULE Test;
  23304. VAR condition: OBJECT;
  23305. BEGIN IF condition THEN END;
  23306. END Test.
  23307. negative: if statement with condition of type pointer
  23308. MODULE Test;
  23309. VAR condition: POINTER TO RECORD END;
  23310. BEGIN IF condition THEN END;
  23311. END Test.
  23312. negative: if statement with condition of type procedure
  23313. MODULE Test;
  23314. VAR condition: PROCEDURE;
  23315. BEGIN IF condition THEN END;
  23316. END Test.
  23317. negative: if statement with import as condition
  23318. MODULE Test;
  23319. IMPORT condition := Dummy;
  23320. BEGIN IF condition THEN END;
  23321. END Test.
  23322. negative: if statement with type as condition
  23323. MODULE Test;
  23324. TYPE condition = BOOLEAN;
  23325. BEGIN IF condition THEN END;
  23326. END Test.
  23327. positive: else if statement with constant true condition
  23328. MODULE Test;
  23329. BEGIN IF TRUE THEN ELSIF TRUE THEN END;
  23330. END Test.
  23331. positive: else if statement with constant false condition
  23332. MODULE Test;
  23333. BEGIN IF TRUE THEN ELSIF FALSE THEN END;
  23334. END Test.
  23335. negative: else if statement with constant condition of type character
  23336. MODULE Test;
  23337. BEGIN IF TRUE THEN ELSIF 'a' THEN END;
  23338. END Test.
  23339. negative: else if statement with constant condition of type integer
  23340. MODULE Test;
  23341. BEGIN IF TRUE THEN ELSIF 5 THEN END;
  23342. END Test.
  23343. negative: else if statement with constant condition of type real
  23344. MODULE Test;
  23345. BEGIN IF TRUE THEN ELSIF 4.5 THEN END;
  23346. END Test.
  23347. negative: else if statement with constant condition of type set
  23348. MODULE Test;
  23349. BEGIN IF TRUE THEN ELSIF {5} THEN END;
  23350. END Test.
  23351. negative: else if statement with constant condition of type string
  23352. MODULE Test;
  23353. BEGIN IF TRUE THEN ELSIF "condition" THEN END;
  23354. END Test.
  23355. negative: else if statement with constant condition of type nil pointer
  23356. MODULE Test;
  23357. BEGIN IF TRUE THEN ELSIF NIL THEN END;
  23358. END Test.
  23359. positive: else if statement with condition of type boolean
  23360. MODULE Test;
  23361. VAR condition: BOOLEAN;
  23362. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23363. END Test.
  23364. negative: else if statement with condition of type character
  23365. MODULE Test;
  23366. VAR condition: CHAR;
  23367. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23368. END Test.
  23369. negative: else if statement with condition of type short integer
  23370. MODULE Test;
  23371. VAR condition: SHORTINT;
  23372. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23373. END Test.
  23374. negative: else if statement with condition of type integer
  23375. MODULE Test;
  23376. VAR condition: INTEGER;
  23377. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23378. END Test.
  23379. negative: else if statement with condition of type long integer
  23380. MODULE Test;
  23381. VAR condition: LONGINT;
  23382. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23383. END Test.
  23384. negative: else if statement with condition of type huge integer
  23385. MODULE Test;
  23386. VAR condition: HUGEINT;
  23387. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23388. END Test.
  23389. negative: else if statement with condition of type real
  23390. MODULE Test;
  23391. VAR condition: REAL;
  23392. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23393. END Test.
  23394. negative: else if statement with condition of type long real
  23395. MODULE Test;
  23396. VAR condition: LONGREAL;
  23397. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23398. END Test.
  23399. negative: else if statement with condition of type set
  23400. MODULE Test;
  23401. VAR condition: SET;
  23402. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23403. END Test.
  23404. negative: else if statement with condition of type array
  23405. MODULE Test;
  23406. VAR condition: ARRAY 10 OF CHAR;
  23407. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23408. END Test.
  23409. negative: else if statement with condition of type record
  23410. MODULE Test;
  23411. VAR condition: RECORD END;
  23412. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23413. END Test.
  23414. negative: else if statement with condition of type object
  23415. MODULE Test;
  23416. VAR condition: OBJECT;
  23417. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23418. END Test.
  23419. negative: else if statement with condition of type pointer
  23420. MODULE Test;
  23421. VAR condition: POINTER TO RECORD END;
  23422. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23423. END Test.
  23424. negative: else if statement with condition of type procedure
  23425. MODULE Test;
  23426. VAR condition: PROCEDURE;
  23427. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23428. END Test.
  23429. negative: else if statement with import as condition
  23430. MODULE Test;
  23431. IMPORT condition := Dummy;
  23432. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23433. END Test.
  23434. negative: else if statement with type as condition
  23435. MODULE Test;
  23436. TYPE condition = BOOLEAN;
  23437. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23438. END Test.
  23439. # halt statement
  23440. negative: halt statement with constant number of type character
  23441. MODULE Test;
  23442. BEGIN HALT ('a');
  23443. END Test.
  23444. positive: halt statement with constant number of type integer
  23445. MODULE Test;
  23446. BEGIN HALT (105);
  23447. END Test.
  23448. negative: halt statement with constant number of type real
  23449. MODULE Test;
  23450. BEGIN HALT (4.5);
  23451. END Test.
  23452. negative: halt statement with constant number of type set
  23453. MODULE Test;
  23454. BEGIN HALT ({5});
  23455. END Test.
  23456. negative: halt statement with constant number of type string
  23457. MODULE Test;
  23458. BEGIN HALT ("number");
  23459. END Test.
  23460. negative: halt statement with constant number of type nil pointer
  23461. MODULE Test;
  23462. BEGIN HALT (NIL);
  23463. END Test.
  23464. negative: halt statement with number of type boolean
  23465. MODULE Test;
  23466. VAR number: BOOLEAN;
  23467. BEGIN HALT (number);
  23468. END Test.
  23469. negative: halt statement with number of type character
  23470. MODULE Test;
  23471. VAR number: CHAR;
  23472. BEGIN HALT (number);
  23473. END Test.
  23474. negative: halt statement with number of type short integer
  23475. MODULE Test;
  23476. VAR number: SHORTINT;
  23477. BEGIN HALT (number);
  23478. END Test.
  23479. negative: halt statement with number of type integer
  23480. MODULE Test;
  23481. VAR number: INTEGER;
  23482. BEGIN HALT (number);
  23483. END Test.
  23484. negative: halt statement with number of type long integer
  23485. MODULE Test;
  23486. VAR number: LONGINT;
  23487. BEGIN HALT (number);
  23488. END Test.
  23489. negative: halt statement with number of type huge integer
  23490. MODULE Test;
  23491. VAR number: HUGEINT;
  23492. BEGIN HALT (number);
  23493. END Test.
  23494. negative: halt statement with number of type real
  23495. MODULE Test;
  23496. VAR number: REAL;
  23497. BEGIN HALT (number);
  23498. END Test.
  23499. negative: halt statement with number of type long real
  23500. MODULE Test;
  23501. VAR number: LONGREAL;
  23502. BEGIN HALT (number);
  23503. END Test.
  23504. negative: halt statement with number of type set
  23505. MODULE Test;
  23506. VAR number: SET;
  23507. BEGIN HALT (number);
  23508. END Test.
  23509. negative: halt statement with number of type array
  23510. MODULE Test;
  23511. VAR number: ARRAY 10 OF CHAR;
  23512. BEGIN HALT (number);
  23513. END Test.
  23514. negative: halt statement with number of type record
  23515. MODULE Test;
  23516. VAR number: RECORD END;
  23517. BEGIN HALT (number);
  23518. END Test.
  23519. negative: halt statement with number of type object
  23520. MODULE Test;
  23521. VAR number: OBJECT;
  23522. BEGIN HALT (number);
  23523. END Test.
  23524. negative: halt statement with number of type pointer
  23525. MODULE Test;
  23526. VAR number: POINTER TO RECORD END;
  23527. BEGIN HALT (number);
  23528. END Test.
  23529. negative: halt statement with number of type procedure
  23530. MODULE Test;
  23531. VAR number: PROCEDURE;
  23532. BEGIN HALT (number);
  23533. END Test.
  23534. negative: halt statement with import as number
  23535. MODULE Test;
  23536. IMPORT number := Dummy;
  23537. BEGIN HALT (number);
  23538. END Test.
  23539. negative: halt statement with type as number
  23540. MODULE Test;
  23541. TYPE number = INTEGER;
  23542. BEGIN HALT (number);
  23543. END Test.
  23544. # case statement
  23545. negative: case statement with constant boolean value
  23546. MODULE Test;
  23547. BEGIN CASE TRUE OF TRUE: END
  23548. END Test.
  23549. positive: case statement with constant character value
  23550. MODULE Test;
  23551. BEGIN CASE 'a' OF 'a': END
  23552. END Test.
  23553. negative: case statement with constant character value and unmatched case
  23554. MODULE Test;
  23555. BEGIN CASE 't' OF 'y': END
  23556. END Test.
  23557. positive: case statement with constant character value and unmatched case and else
  23558. MODULE Test;
  23559. BEGIN CASE 'e' OF 0X: ELSE END
  23560. END Test.
  23561. positive: case statement with constant short integer value
  23562. MODULE Test;
  23563. BEGIN CASE 10H OF 10H: END
  23564. END Test.
  23565. positive: case statement with constant integer value
  23566. MODULE Test;
  23567. BEGIN CASE 1000H OF 1000H: END
  23568. END Test.
  23569. positive: case statement with constant long integer value
  23570. MODULE Test;
  23571. BEGIN CASE 100000H OF 100000H: END
  23572. END Test.
  23573. positive: case statement with constant huge integer value
  23574. MODULE Test;
  23575. BEGIN CASE 100000000H OF 100000000H: END
  23576. END Test.
  23577. positive: case statement with constant integer value and matched case
  23578. MODULE Test;
  23579. BEGIN CASE 5 OF 5: END
  23580. END Test.
  23581. negative: case statement with constant integer value and unmatched case
  23582. MODULE Test;
  23583. BEGIN CASE 1 OF 2: END
  23584. END Test.
  23585. positive: case statement with constant integer value and unmatched case and else
  23586. MODULE Test;
  23587. BEGIN CASE 9 OF 4: ELSE END
  23588. END Test.
  23589. negative: case statement with constant real value
  23590. MODULE Test;
  23591. BEGIN CASE 1.0 OF 1.0: END
  23592. END Test.
  23593. negative: case statement with constant long real value
  23594. MODULE Test;
  23595. BEGIN CASE 1.D0 OF 1.D0: END
  23596. END Test.
  23597. negative: case statement with constant set value
  23598. MODULE Test;
  23599. BEGIN CASE {} OF {}: END
  23600. END Test.
  23601. negative: case statement with constant string value
  23602. MODULE Test;
  23603. BEGIN CASE "value" OF "value": END
  23604. END Test.
  23605. negative: case statement with nil pointer value
  23606. MODULE Test;
  23607. BEGIN CASE NIL OF NIL: END
  23608. END Test.
  23609. negative: case statement with variable boolean value
  23610. MODULE Test;
  23611. VAR value: BOOLEAN;
  23612. BEGIN CASE value OF TRUE: END
  23613. END Test.
  23614. positive: case statement with variable character value
  23615. MODULE Test;
  23616. VAR value: CHAR;
  23617. BEGIN CASE value OF 3X: END
  23618. END Test.
  23619. positive: case statement with variable short integer value
  23620. MODULE Test;
  23621. VAR value: SHORTINT;
  23622. BEGIN CASE value OF 5: END
  23623. END Test.
  23624. positive: case statement with variable integer value
  23625. MODULE Test;
  23626. VAR value: INTEGER;
  23627. BEGIN CASE value OF 10: END
  23628. END Test.
  23629. positive: case statement with variable long integer value
  23630. MODULE Test;
  23631. VAR value: LONGINT;
  23632. BEGIN CASE value OF 9: END
  23633. END Test.
  23634. positive: case statement with variable huge integer value
  23635. MODULE Test;
  23636. VAR value: HUGEINT;
  23637. BEGIN CASE value OF 6: END
  23638. END Test.
  23639. negative: case statement with variable real value
  23640. MODULE Test;
  23641. VAR value: REAL;
  23642. BEGIN CASE value OF 0.5: END
  23643. END Test.
  23644. negative: case statement with variable long real value
  23645. MODULE Test;
  23646. VAR value: REAL;
  23647. BEGIN CASE value OF 0.D0: END
  23648. END Test.
  23649. negative: case statement with variable set value
  23650. MODULE Test;
  23651. VAR value: SET;
  23652. BEGIN CASE value OF {}: END
  23653. END Test.
  23654. negative: case statement with variable array value
  23655. MODULE Test;
  23656. VAR value: ARRAY 10 OF CHAR;
  23657. BEGIN CASE value OF value: END
  23658. END Test.
  23659. negative: case statement with variable record value
  23660. MODULE Test;
  23661. VAR value: RECORD END;
  23662. BEGIN CASE value OF value: END
  23663. END Test.
  23664. negative: case statement with variable object value
  23665. MODULE Test;
  23666. VAR value: OBJECT END;
  23667. BEGIN CASE value OF value: END
  23668. END Test.
  23669. negative: case statement with variable base object value
  23670. MODULE Test;
  23671. VAR value: OBJECT;
  23672. BEGIN CASE value OF value: END
  23673. END Test.
  23674. negative: case statement with variable pointer to record value
  23675. MODULE Test;
  23676. VAR value: POINTER TO RECORD END;
  23677. BEGIN CASE value OF value: END
  23678. END Test.
  23679. negative: case statement with variable pointer to array value
  23680. MODULE Test;
  23681. VAR value: POINTER TO ARRAY OF CHAR;
  23682. BEGIN CASE value OF value: END
  23683. END Test.
  23684. negative: case statement with variable procedure value
  23685. MODULE Test;
  23686. VAR value: PROCEDURE;
  23687. BEGIN CASE value OF value: END
  23688. END Test.
  23689. negative: case statement with import value
  23690. MODULE Test;
  23691. IMPORT value := Dummy;
  23692. BEGIN CASE value OF value: END
  23693. END Test.
  23694. negative: case statement with type value
  23695. MODULE Test;
  23696. TYPE value = INTEGER;
  23697. BEGIN CASE value OF value: END
  23698. END Test.
  23699. negative: character case statement with constant boolean case
  23700. MODULE Test;
  23701. VAR value: CHAR;
  23702. BEGIN CASE value OF TRUE: END
  23703. END Test.
  23704. positive: character case statement with constant character case
  23705. MODULE Test;
  23706. VAR value: CHAR;
  23707. BEGIN CASE value OF 'a': END
  23708. END Test.
  23709. negative: character case statement with constant short integer case
  23710. MODULE Test;
  23711. VAR value: CHAR;
  23712. BEGIN CASE value OF 10H: END
  23713. END Test.
  23714. negative: character case statement with constant integer case
  23715. MODULE Test;
  23716. VAR value: CHAR;
  23717. BEGIN CASE value OF 1000H: END
  23718. END Test.
  23719. negative: character case statement with constant long integer case
  23720. MODULE Test;
  23721. VAR value: CHAR;
  23722. BEGIN CASE value OF 100000H: END
  23723. END Test.
  23724. negative: character case statement with constant huge integer case
  23725. MODULE Test;
  23726. VAR value: CHAR;
  23727. BEGIN CASE value OF 100000000H: END
  23728. END Test.
  23729. negative: character case statement with constant real case
  23730. MODULE Test;
  23731. VAR value: CHAR;
  23732. BEGIN CASE value OF 1.0: END
  23733. END Test.
  23734. negative: character case statement with constant long real case
  23735. MODULE Test;
  23736. VAR value: CHAR;
  23737. BEGIN CASE value OF 1.D0: END
  23738. END Test.
  23739. negative: character case statement with constant set case
  23740. MODULE Test;
  23741. VAR value: CHAR;
  23742. BEGIN CASE value OF {}: END
  23743. END Test.
  23744. negative: character case statement with constant string case
  23745. MODULE Test;
  23746. VAR value: CHAR;
  23747. BEGIN CASE value OF "value": END
  23748. END Test.
  23749. negative: character case statement with nil pointer case
  23750. MODULE Test;
  23751. VAR value: CHAR;
  23752. BEGIN CASE value OF NIL: END
  23753. END Test.
  23754. negative: character case statement variable boolean case
  23755. MODULE Test;
  23756. VAR value: CHAR; case: BOOLEAN;
  23757. BEGIN CASE value OF case: END
  23758. END Test.
  23759. negative: character case statement with variable character case
  23760. MODULE Test;
  23761. VAR value, case: CHAR;
  23762. BEGIN CASE value OF case: END
  23763. END Test.
  23764. negative: character case statement with variable short integer case
  23765. MODULE Test;
  23766. VAR value: CHAR; case: SHORTINT;
  23767. BEGIN CASE value OF case: END
  23768. END Test.
  23769. negative: character case statement with variable integer case
  23770. MODULE Test;
  23771. VAR value: CHAR; case: INTEGER;
  23772. BEGIN CASE value OF case: END
  23773. END Test.
  23774. negative: character case statement with variable long integer case
  23775. MODULE Test;
  23776. VAR value: CHAR; case: LONGINT;
  23777. BEGIN CASE value OF case: END
  23778. END Test.
  23779. negative: character case statement with variable huge integer case
  23780. MODULE Test;
  23781. VAR value: CHAR; case: HUGEINT;
  23782. BEGIN CASE value OF case: END
  23783. END Test.
  23784. negative: character case statement with variable real case
  23785. MODULE Test;
  23786. VAR value: CHAR; case: REAL;
  23787. BEGIN CASE value OF case: END
  23788. END Test.
  23789. negative: character case statement with variable long real case
  23790. MODULE Test;
  23791. VAR value: CHAR; case: LONGREAL;
  23792. BEGIN CASE value OF case: END
  23793. END Test.
  23794. negative: character case statement with variable set case
  23795. MODULE Test;
  23796. VAR value: CHAR; case: SET;
  23797. BEGIN CASE value OF case: END
  23798. END Test.
  23799. negative: character case statement with variable array case
  23800. MODULE Test;
  23801. VAR value: CHAR; case: ARRAY 10 OF CHAR;
  23802. BEGIN CASE value OF case: END
  23803. END Test.
  23804. negative: character case statement with variable record case
  23805. MODULE Test;
  23806. VAR value: CHAR; case: RECORD END;
  23807. BEGIN CASE value OF case: END
  23808. END Test.
  23809. negative: character case statement with variable object case
  23810. MODULE Test;
  23811. VAR value: CHAR; case: OBJECT END;
  23812. BEGIN CASE value OF case: END
  23813. END Test.
  23814. negative: character case statement with variable base object case
  23815. MODULE Test;
  23816. VAR value: CHAR; case: OBJECT;
  23817. BEGIN CASE value OF case: END
  23818. END Test.
  23819. negative: character case statement with variable pointer to record case
  23820. MODULE Test;
  23821. VAR value: CHAR; case: POINTER TO RECORD END;
  23822. BEGIN CASE value OF case: END
  23823. END Test.
  23824. negative: character case statement with variable pointer to array case
  23825. MODULE Test;
  23826. VAR value: CHAR; case: POINTER TO ARRAY OF CHAR;
  23827. BEGIN CASE value OF case: END
  23828. END Test.
  23829. negative: character case statement with variable procedure case
  23830. MODULE Test;
  23831. VAR value: CHAR; case: PROCEDURE;
  23832. BEGIN CASE value OF case: END
  23833. END Test.
  23834. negative: character case statement with import case
  23835. MODULE Test;
  23836. IMPORT case := Dummy;
  23837. VAR value: CHAR;
  23838. BEGIN CASE value OF case: END
  23839. END Test.
  23840. negative: character case statement with type as case
  23841. MODULE Test;
  23842. TYPE case = INTEGER;
  23843. VAR value: CHAR;
  23844. BEGIN CASE value OF case: END
  23845. END Test.
  23846. negative: short integer case statement with constant boolean case
  23847. MODULE Test;
  23848. VAR value: SHORTINT;
  23849. BEGIN CASE value OF TRUE: END
  23850. END Test.
  23851. negative: short integer case statement with constant character case
  23852. MODULE Test;
  23853. VAR value: SHORTINT;
  23854. BEGIN CASE value OF 'a': END
  23855. END Test.
  23856. positive: short integer case statement with constant short integer case
  23857. MODULE Test;
  23858. VAR value: SHORTINT;
  23859. BEGIN CASE value OF 10H: END
  23860. END Test.
  23861. negative: short integer case statement with constant integer case
  23862. MODULE Test;
  23863. VAR value: SHORTINT;
  23864. BEGIN CASE value OF 1000H: END
  23865. END Test.
  23866. negative: short integer case statement with constant long integer case
  23867. MODULE Test;
  23868. VAR value: SHORTINT;
  23869. BEGIN CASE value OF 100000H: END
  23870. END Test.
  23871. negative: short integer case statement with constant huge integer case
  23872. MODULE Test;
  23873. VAR value: SHORTINT;
  23874. BEGIN CASE value OF 100000000H: END
  23875. END Test.
  23876. negative: short integer case statement with constant real case
  23877. MODULE Test;
  23878. VAR value: SHORTINT;
  23879. BEGIN CASE value OF 1.0: END
  23880. END Test.
  23881. negative: short integer case statement with constant long real case
  23882. MODULE Test;
  23883. VAR value: SHORTINT;
  23884. BEGIN CASE value OF 1.D0: END
  23885. END Test.
  23886. negative: short integer case statement with constant set case
  23887. MODULE Test;
  23888. VAR value: SHORTINT;
  23889. BEGIN CASE value OF {}: END
  23890. END Test.
  23891. negative: short integer case statement with constant string case
  23892. MODULE Test;
  23893. VAR value: SHORTINT;
  23894. BEGIN CASE value OF "value": END
  23895. END Test.
  23896. negative: short integer case statement with nil pointer case
  23897. MODULE Test;
  23898. VAR value: SHORTINT;
  23899. BEGIN CASE value OF NIL: END
  23900. END Test.
  23901. negative: short integer case statement variable boolean case
  23902. MODULE Test;
  23903. VAR value: SHORTINT; case: BOOLEAN;
  23904. BEGIN CASE value OF case: END
  23905. END Test.
  23906. negative: short integer case statement with variable character case
  23907. MODULE Test;
  23908. VAR value: SHORTINT; case: CHAR;
  23909. BEGIN CASE value OF case: END
  23910. END Test.
  23911. negative: short integer case statement with variable short integer case
  23912. MODULE Test;
  23913. VAR value, case: SHORTINT;
  23914. BEGIN CASE value OF case: END
  23915. END Test.
  23916. negative: short integer case statement with variable integer case
  23917. MODULE Test;
  23918. VAR value: SHORTINT; case: INTEGER;
  23919. BEGIN CASE value OF case: END
  23920. END Test.
  23921. negative: short integer case statement with variable long integer case
  23922. MODULE Test;
  23923. VAR value: SHORTINT; case: LONGINT;
  23924. BEGIN CASE value OF case: END
  23925. END Test.
  23926. negative: short integer case statement with variable huge integer case
  23927. MODULE Test;
  23928. VAR value: SHORTINT; case: HUGEINT;
  23929. BEGIN CASE value OF case: END
  23930. END Test.
  23931. negative: short integer case statement with variable real case
  23932. MODULE Test;
  23933. VAR value: SHORTINT; case: REAL;
  23934. BEGIN CASE value OF case: END
  23935. END Test.
  23936. negative: short integer case statement with variable long real case
  23937. MODULE Test;
  23938. VAR value: SHORTINT; case: LONGREAL;
  23939. BEGIN CASE value OF case: END
  23940. END Test.
  23941. negative: short integer case statement with variable set case
  23942. MODULE Test;
  23943. VAR value: SHORTINT; case: SET;
  23944. BEGIN CASE value OF case: END
  23945. END Test.
  23946. negative: short integer case statement with variable array case
  23947. MODULE Test;
  23948. VAR value: SHORTINT; case: ARRAY 10 OF CHAR;
  23949. BEGIN CASE value OF case: END
  23950. END Test.
  23951. negative: short integer case statement with variable record case
  23952. MODULE Test;
  23953. VAR value: SHORTINT; case: RECORD END;
  23954. BEGIN CASE value OF case: END
  23955. END Test.
  23956. negative: short integer case statement with variable object case
  23957. MODULE Test;
  23958. VAR value: SHORTINT; case: OBJECT END;
  23959. BEGIN CASE value OF case: END
  23960. END Test.
  23961. negative: short integer case statement with variable base object case
  23962. MODULE Test;
  23963. VAR value: SHORTINT; case: OBJECT;
  23964. BEGIN CASE value OF case: END
  23965. END Test.
  23966. negative: short integer case statement with variable pointer to record case
  23967. MODULE Test;
  23968. VAR value: SHORTINT; case: POINTER TO RECORD END;
  23969. BEGIN CASE value OF case: END
  23970. END Test.
  23971. negative: short integer case statement with variable pointer to array case
  23972. MODULE Test;
  23973. VAR value: SHORTINT; case: POINTER TO ARRAY OF CHAR;
  23974. BEGIN CASE value OF case: END
  23975. END Test.
  23976. negative: short integer case statement with variable procedure case
  23977. MODULE Test;
  23978. VAR value: SHORTINT; case: PROCEDURE;
  23979. BEGIN CASE value OF case: END
  23980. END Test.
  23981. negative: short integer case statement with import case
  23982. MODULE Test;
  23983. IMPORT case := Dummy; VAR value: SHORTINT;
  23984. BEGIN CASE value OF case: END
  23985. END Test.
  23986. negative: short integer case statement with type as case
  23987. MODULE Test;
  23988. TYPE case = INTEGER; VAR value: case;
  23989. BEGIN CASE value OF case: END
  23990. END Test.
  23991. negative: integer case statement with constant boolean case
  23992. MODULE Test;
  23993. VAR value: INTEGER;
  23994. BEGIN CASE value OF TRUE: END
  23995. END Test.
  23996. negative: integer case statement with constant character case
  23997. MODULE Test;
  23998. VAR value: INTEGER;
  23999. BEGIN CASE value OF 'a': END
  24000. END Test.
  24001. positive: integer case statement with constant short integer case
  24002. MODULE Test;
  24003. VAR value: INTEGER;
  24004. BEGIN CASE value OF 10H: END
  24005. END Test.
  24006. positive: integer case statement with constant integer case
  24007. MODULE Test;
  24008. VAR value: INTEGER;
  24009. BEGIN CASE value OF 1000H: END
  24010. END Test.
  24011. negative: integer case statement with constant long integer case
  24012. MODULE Test;
  24013. VAR value: INTEGER;
  24014. BEGIN CASE value OF 100000H: END
  24015. END Test.
  24016. negative: integer case statement with constant huge integer case
  24017. MODULE Test;
  24018. VAR value: INTEGER;
  24019. BEGIN CASE value OF 100000000H: END
  24020. END Test.
  24021. negative: integer case statement with constant real case
  24022. MODULE Test;
  24023. VAR value: INTEGER;
  24024. BEGIN CASE value OF 1.0: END
  24025. END Test.
  24026. negative: integer case statement with constant long real case
  24027. MODULE Test;
  24028. VAR value: INTEGER;
  24029. BEGIN CASE value OF 1.D0: END
  24030. END Test.
  24031. negative: integer case statement with constant set case
  24032. MODULE Test;
  24033. VAR value: INTEGER;
  24034. BEGIN CASE value OF {}: END
  24035. END Test.
  24036. negative: integer case statement with constant string case
  24037. MODULE Test;
  24038. VAR value: INTEGER;
  24039. BEGIN CASE value OF "value": END
  24040. END Test.
  24041. negative: integer case statement with nil pointer case
  24042. MODULE Test;
  24043. VAR value: INTEGER;
  24044. BEGIN CASE value OF NIL: END
  24045. END Test.
  24046. negative: integer case statement variable boolean case
  24047. MODULE Test;
  24048. VAR value: INTEGER; case: BOOLEAN;
  24049. BEGIN CASE value OF case: END
  24050. END Test.
  24051. negative: integer case statement with variable character case
  24052. MODULE Test;
  24053. VAR value: INTEGER; case: CHAR;
  24054. BEGIN CASE value OF case: END
  24055. END Test.
  24056. negative: integer case statement with variable short integer case
  24057. MODULE Test;
  24058. VAR value: INTEGER; case: SHORTINT;
  24059. BEGIN CASE value OF case: END
  24060. END Test.
  24061. negative: integer case statement with variable integer case
  24062. MODULE Test;
  24063. VAR value, case: INTEGER;
  24064. BEGIN CASE value OF case: END
  24065. END Test.
  24066. negative: integer case statement with variable long integer case
  24067. MODULE Test;
  24068. VAR value: INTEGER; case: LONGINT;
  24069. BEGIN CASE value OF case: END
  24070. END Test.
  24071. negative: integer case statement with variable huge integer case
  24072. MODULE Test;
  24073. VAR value: INTEGER; case: HUGEINT;
  24074. BEGIN CASE value OF case: END
  24075. END Test.
  24076. negative: integer case statement with variable real case
  24077. MODULE Test;
  24078. VAR value: INTEGER; case: REAL;
  24079. BEGIN CASE value OF case: END
  24080. END Test.
  24081. negative: integer case statement with variable long real case
  24082. MODULE Test;
  24083. VAR value: INTEGER; case: LONGREAL;
  24084. BEGIN CASE value OF case: END
  24085. END Test.
  24086. negative: integer case statement with variable set case
  24087. MODULE Test;
  24088. VAR value: INTEGER; case: SET;
  24089. BEGIN CASE value OF case: END
  24090. END Test.
  24091. negative: integer case statement with variable array case
  24092. MODULE Test;
  24093. VAR value: INTEGER; case: ARRAY 10 OF CHAR;
  24094. BEGIN CASE value OF case: END
  24095. END Test.
  24096. negative: integer case statement with variable record case
  24097. MODULE Test;
  24098. VAR value: INTEGER; case: RECORD END;
  24099. BEGIN CASE value OF case: END
  24100. END Test.
  24101. negative: integer case statement with variable object case
  24102. MODULE Test;
  24103. VAR value: INTEGER; case: OBJECT END;
  24104. BEGIN CASE value OF case: END
  24105. END Test.
  24106. negative: integer case statement with variable base object case
  24107. MODULE Test;
  24108. VAR value: INTEGER; case: OBJECT;
  24109. BEGIN CASE value OF case: END
  24110. END Test.
  24111. negative: integer case statement with variable pointer to record case
  24112. MODULE Test;
  24113. VAR value: INTEGER; case: POINTER TO RECORD END;
  24114. BEGIN CASE value OF case: END
  24115. END Test.
  24116. negative: integer case statement with variable pointer to array case
  24117. MODULE Test;
  24118. VAR value: INTEGER; case: POINTER TO ARRAY OF CHAR;
  24119. BEGIN CASE value OF case: END
  24120. END Test.
  24121. negative: integer case statement with variable procedure case
  24122. MODULE Test;
  24123. VAR value: INTEGER; case: PROCEDURE;
  24124. BEGIN CASE value OF case: END
  24125. END Test.
  24126. negative: integer case statement with import case
  24127. MODULE Test;
  24128. IMPORT case := Dummy; VAR value: INTEGER;
  24129. BEGIN CASE value OF case: END
  24130. END Test.
  24131. negative: integer case statement with type as case
  24132. MODULE Test;
  24133. TYPE case = INTEGER; VAR value: case;
  24134. BEGIN CASE value OF case: END
  24135. END Test.
  24136. negative: long integer case statement with constant boolean case
  24137. MODULE Test;
  24138. VAR value: LONGINT;
  24139. BEGIN CASE value OF TRUE: END
  24140. END Test.
  24141. negative: long integer case statement with constant character case
  24142. MODULE Test;
  24143. VAR value: LONGINT;
  24144. BEGIN CASE value OF 'a': END
  24145. END Test.
  24146. positive: long integer case statement with constant short integer case
  24147. MODULE Test;
  24148. VAR value: LONGINT;
  24149. BEGIN CASE value OF 10H: END
  24150. END Test.
  24151. positive: long integer case statement with constant integer case
  24152. MODULE Test;
  24153. VAR value: LONGINT;
  24154. BEGIN CASE value OF 1000H: END
  24155. END Test.
  24156. positive: long integer case statement with constant long integer case
  24157. MODULE Test;
  24158. VAR value: LONGINT;
  24159. BEGIN CASE value OF 100000H: END
  24160. END Test.
  24161. negative: long integer case statement with constant huge integer case
  24162. MODULE Test;
  24163. VAR value: LONGINT;
  24164. BEGIN CASE value OF 100000000H: END
  24165. END Test.
  24166. negative: long integer case statement with constant real case
  24167. MODULE Test;
  24168. VAR value: LONGINT;
  24169. BEGIN CASE value OF 1.0: END
  24170. END Test.
  24171. negative: long integer case statement with constant long real case
  24172. MODULE Test;
  24173. VAR value: LONGINT;
  24174. BEGIN CASE value OF 1.D0: END
  24175. END Test.
  24176. negative: long integer case statement with constant set case
  24177. MODULE Test;
  24178. VAR value: LONGINT;
  24179. BEGIN CASE value OF {}: END
  24180. END Test.
  24181. negative: long integer case statement with constant string case
  24182. MODULE Test;
  24183. VAR value: LONGINT;
  24184. BEGIN CASE value OF "value": END
  24185. END Test.
  24186. negative: long integer case statement with nil pointer case
  24187. MODULE Test;
  24188. VAR value: LONGINT;
  24189. BEGIN CASE value OF NIL: END
  24190. END Test.
  24191. negative: long integer case statement variable boolean case
  24192. MODULE Test;
  24193. VAR value: LONGINT; case: BOOLEAN;
  24194. BEGIN CASE value OF case: END
  24195. END Test.
  24196. negative: long integer case statement with variable character case
  24197. MODULE Test;
  24198. VAR value: LONGINT; case: CHAR;
  24199. BEGIN CASE value OF case: END
  24200. END Test.
  24201. negative: long integer case statement with variable short integer case
  24202. MODULE Test;
  24203. VAR value: LONGINT; case: SHORTINT;
  24204. BEGIN CASE value OF case: END
  24205. END Test.
  24206. negative: long integer case statement with variable integer case
  24207. MODULE Test;
  24208. VAR value: LONGINT; case: INTEGER;
  24209. BEGIN CASE value OF case: END
  24210. END Test.
  24211. negative: long integer case statement with variable long integer case
  24212. MODULE Test;
  24213. VAR value, case: LONGINT;
  24214. BEGIN CASE value OF case: END
  24215. END Test.
  24216. negative: long integer case statement with variable huge integer case
  24217. MODULE Test;
  24218. VAR value: LONGINT; case: HUGEINT;
  24219. BEGIN CASE value OF case: END
  24220. END Test.
  24221. negative: long integer case statement with variable real case
  24222. MODULE Test;
  24223. VAR value: LONGINT; case: REAL;
  24224. BEGIN CASE value OF case: END
  24225. END Test.
  24226. negative: long integer case statement with variable long real case
  24227. MODULE Test;
  24228. VAR value: LONGINT; case: LONGREAL;
  24229. BEGIN CASE value OF case: END
  24230. END Test.
  24231. negative: long integer case statement with variable set case
  24232. MODULE Test;
  24233. VAR value: LONGINT; case: SET;
  24234. BEGIN CASE value OF case: END
  24235. END Test.
  24236. negative: long integer case statement with variable array case
  24237. MODULE Test;
  24238. VAR value: LONGINT; case: ARRAY 10 OF CHAR;
  24239. BEGIN CASE value OF case: END
  24240. END Test.
  24241. negative: long integer case statement with variable record case
  24242. MODULE Test;
  24243. VAR value: LONGINT; case: RECORD END;
  24244. BEGIN CASE value OF case: END
  24245. END Test.
  24246. negative: long integer case statement with variable object case
  24247. MODULE Test;
  24248. VAR value: LONGINT; case: OBJECT END;
  24249. BEGIN CASE value OF case: END
  24250. END Test.
  24251. negative: long integer case statement with variable base object case
  24252. MODULE Test;
  24253. VAR value: LONGINT; case: OBJECT;
  24254. BEGIN CASE value OF case: END
  24255. END Test.
  24256. negative: long integer case statement with variable pointer to record case
  24257. MODULE Test;
  24258. VAR value: LONGINT; case: POINTER TO RECORD END;
  24259. BEGIN CASE value OF case: END
  24260. END Test.
  24261. negative: long integer case statement with variable pointer to array case
  24262. MODULE Test;
  24263. VAR value: LONGINT; case: POINTER TO ARRAY OF CHAR;
  24264. BEGIN CASE value OF case: END
  24265. END Test.
  24266. negative: long integer case statement with variable procedure case
  24267. MODULE Test;
  24268. VAR value: LONGINT; case: PROCEDURE;
  24269. BEGIN CASE value OF case: END
  24270. END Test.
  24271. negative: long integer case statement with import case
  24272. MODULE Test;
  24273. IMPORT case := Dummy; VAR value: LONGINT;
  24274. BEGIN CASE value OF case: END
  24275. END Test.
  24276. negative: long integer case statement with type as case
  24277. MODULE Test;
  24278. TYPE case = LONGINT; VAR value: case;
  24279. BEGIN CASE value OF case: END
  24280. END Test.
  24281. negative: huge integer case statement with constant boolean case
  24282. MODULE Test;
  24283. VAR value: HUGEINT;
  24284. BEGIN CASE value OF TRUE: END
  24285. END Test.
  24286. negative: huge integer case statement with constant character case
  24287. MODULE Test;
  24288. VAR value: HUGEINT;
  24289. BEGIN CASE value OF 'a': END
  24290. END Test.
  24291. positive: huge integer case statement with constant short integer case
  24292. MODULE Test;
  24293. VAR value: HUGEINT;
  24294. BEGIN CASE value OF 10H: END
  24295. END Test.
  24296. positive: huge integer case statement with constant integer case
  24297. MODULE Test;
  24298. VAR value: HUGEINT;
  24299. BEGIN CASE value OF 1000H: END
  24300. END Test.
  24301. positive: huge integer case statement with constant long integer case
  24302. MODULE Test;
  24303. VAR value: HUGEINT;
  24304. BEGIN CASE value OF 100000H: END
  24305. END Test.
  24306. positive: huge integer case statement with constant huge integer case
  24307. MODULE Test;
  24308. VAR value: HUGEINT;
  24309. BEGIN CASE value OF 100000000H: END
  24310. END Test.
  24311. negative: huge integer case statement with constant real case
  24312. MODULE Test;
  24313. VAR value: HUGEINT;
  24314. BEGIN CASE value OF 1.0: END
  24315. END Test.
  24316. negative: huge integer case statement with constant long real case
  24317. MODULE Test;
  24318. VAR value: HUGEINT;
  24319. BEGIN CASE value OF 1.D0: END
  24320. END Test.
  24321. negative: huge integer case statement with constant set case
  24322. MODULE Test;
  24323. VAR value: HUGEINT;
  24324. BEGIN CASE value OF {}: END
  24325. END Test.
  24326. negative: huge integer case statement with constant string case
  24327. MODULE Test;
  24328. VAR value: HUGEINT;
  24329. BEGIN CASE value OF "value": END
  24330. END Test.
  24331. negative: huge integer case statement with nil pointer case
  24332. MODULE Test;
  24333. VAR value: HUGEINT;
  24334. BEGIN CASE value OF NIL: END
  24335. END Test.
  24336. negative: huge integer case statement variable boolean case
  24337. MODULE Test;
  24338. VAR value: HUGEINT; case: BOOLEAN;
  24339. BEGIN CASE value OF case: END
  24340. END Test.
  24341. negative: huge integer case statement with variable character case
  24342. MODULE Test;
  24343. VAR value: HUGEINT; case: CHAR;
  24344. BEGIN CASE value OF case: END
  24345. END Test.
  24346. negative: huge integer case statement with variable short integer case
  24347. MODULE Test;
  24348. VAR value: HUGEINT; case: SHORTINT;
  24349. BEGIN CASE value OF case: END
  24350. END Test.
  24351. negative: huge integer case statement with variable integer case
  24352. MODULE Test;
  24353. VAR value: HUGEINT; case: INTEGER;
  24354. BEGIN CASE value OF case: END
  24355. END Test.
  24356. negative: huge integer case statement with variable long integer case
  24357. MODULE Test;
  24358. VAR value: HUGEINT; case: LONGINT;
  24359. BEGIN CASE value OF case: END
  24360. END Test.
  24361. negative: huge integer case statement with variable huge integer case
  24362. MODULE Test;
  24363. VAR value, case: HUGEINT;
  24364. BEGIN CASE value OF case: END
  24365. END Test.
  24366. negative: huge integer case statement with variable real case
  24367. MODULE Test;
  24368. VAR value: HUGEINT; case: REAL;
  24369. BEGIN CASE value OF case: END
  24370. END Test.
  24371. negative: huge integer case statement with variable long real case
  24372. MODULE Test;
  24373. VAR value: HUGEINT; case: LONGREAL;
  24374. BEGIN CASE value OF case: END
  24375. END Test.
  24376. negative: huge integer case statement with variable set case
  24377. MODULE Test;
  24378. VAR value: HUGEINT; case: SET;
  24379. BEGIN CASE value OF case: END
  24380. END Test.
  24381. negative: huge integer case statement with variable array case
  24382. MODULE Test;
  24383. VAR value: HUGEINT; case: ARRAY 10 OF CHAR;
  24384. BEGIN CASE value OF case: END
  24385. END Test.
  24386. negative: huge integer case statement with variable record case
  24387. MODULE Test;
  24388. VAR value: HUGEINT; case: RECORD END;
  24389. BEGIN CASE value OF case: END
  24390. END Test.
  24391. negative: huge integer case statement with variable object case
  24392. MODULE Test;
  24393. VAR value: HUGEINT; case: OBJECT END;
  24394. BEGIN CASE value OF case: END
  24395. END Test.
  24396. negative: huge integer case statement with variable base object case
  24397. MODULE Test;
  24398. VAR value: HUGEINT; case: OBJECT;
  24399. BEGIN CASE value OF case: END
  24400. END Test.
  24401. negative: huge integer case statement with variable pointer to record case
  24402. MODULE Test;
  24403. VAR value: HUGEINT; case: POINTER TO RECORD END;
  24404. BEGIN CASE value OF case: END
  24405. END Test.
  24406. negative: huge integer case statement with variable pointer to array case
  24407. MODULE Test;
  24408. VAR value: HUGEINT; case: POINTER TO ARRAY OF CHAR;
  24409. BEGIN CASE value OF case: END
  24410. END Test.
  24411. negative: huge integer case statement with variable procedure case
  24412. MODULE Test;
  24413. VAR value: HUGEINT; case: PROCEDURE;
  24414. BEGIN CASE value OF case: END
  24415. END Test.
  24416. negative: huge integer case statement with import case
  24417. MODULE Test;
  24418. IMPORT case := Dummy; VAR value: HUGEINT;
  24419. BEGIN CASE value OF case: END
  24420. END Test.
  24421. negative: huge integer case statement with type as case
  24422. MODULE Test;
  24423. TYPE case = HUGEINT; VAR value: case;
  24424. BEGIN CASE value OF case: END
  24425. END Test.
  24426. positive: character case statement with multiple case range
  24427. MODULE Test;
  24428. VAR value: CHAR;
  24429. BEGIN CASE value OF 0X..10X, 11X..20X: END;
  24430. END Test.
  24431. positive: character case statement with empty case range
  24432. MODULE Test;
  24433. VAR value: CHAR;
  24434. BEGIN CASE value OF 10X..10X: END;
  24435. END Test.
  24436. negative: character case statement with invalid case range
  24437. MODULE Test;
  24438. VAR value: CHAR;
  24439. BEGIN CASE value OF 10X..0X: END;
  24440. END Test.
  24441. negative: character case statement with duplicated cases within same label
  24442. MODULE Test;
  24443. VAR value: CHAR;
  24444. BEGIN CASE value OF 10X, 10X: END;
  24445. END Test.
  24446. negative: character case statement with duplicated case ranges within same label
  24447. MODULE Test;
  24448. VAR value: CHAR;
  24449. BEGIN CASE value OF 0X..10X, 10X..20X: END;
  24450. END Test.
  24451. negative: character case statement with duplicated cases within different label
  24452. MODULE Test;
  24453. VAR value: CHAR;
  24454. BEGIN CASE value OF 10X: | 10X: END;
  24455. END Test.
  24456. negative: character case statement with duplicated case ranges within different label
  24457. MODULE Test;
  24458. VAR value: CHAR;
  24459. BEGIN CASE value OF 0X..10X: | 10X..20X: END;
  24460. END Test.
  24461. positive: character case statement with ascending cases
  24462. MODULE Test;
  24463. VAR value: CHAR;
  24464. BEGIN CASE value OF 0X..5X, 6X, 7X..7X, 8X, 9X: | 10X..20X, 21X: | 22X, 23X..29X, 30X: END;
  24465. END Test.
  24466. positive: character case statement with descending cases
  24467. MODULE Test;
  24468. VAR value: CHAR;
  24469. BEGIN CASE value OF 30X, 23X..29X, 22X: | 21X, 10X..20X: | 0X..5X, 6X, 7X..7X, 8X, 9X: END;
  24470. END Test.
  24471. positive: nested character case statement
  24472. MODULE Test;
  24473. VAR value: CHAR;
  24474. BEGIN CASE value OF 0X..10X: CASE value OF 0X..10X: END END;
  24475. END Test.
  24476. positive: integer case statement with negative case
  24477. MODULE Test;
  24478. VAR value: INTEGER;
  24479. BEGIN CASE value OF -10: END;
  24480. END Test.
  24481. positive: integer case statement with zero case
  24482. MODULE Test;
  24483. VAR value: INTEGER;
  24484. BEGIN CASE value OF 0: END;
  24485. END Test.
  24486. positive: integer case statement with positive case
  24487. MODULE Test;
  24488. VAR value: INTEGER;
  24489. BEGIN CASE value OF 10: END;
  24490. END Test.
  24491. positive: integer case statement with multiple case range
  24492. MODULE Test;
  24493. VAR value: INTEGER;
  24494. BEGIN CASE value OF 0..10, 11..20: END;
  24495. END Test.
  24496. positive: integer case statement with empty case range
  24497. MODULE Test;
  24498. VAR value: INTEGER;
  24499. BEGIN CASE value OF 10..10: END;
  24500. END Test.
  24501. negative: integer case statement with invalid case range
  24502. MODULE Test;
  24503. VAR value: INTEGER;
  24504. BEGIN CASE value OF 10..0: END;
  24505. END Test.
  24506. negative: integer case statement with duplicated cases within same label
  24507. MODULE Test;
  24508. VAR value: INTEGER;
  24509. BEGIN CASE value OF 10, 10: END;
  24510. END Test.
  24511. negative: integer case statement with duplicated case ranges within same label
  24512. MODULE Test;
  24513. VAR value: INTEGER;
  24514. BEGIN CASE value OF 0..10, 10..20: END;
  24515. END Test.
  24516. negative: integer case statement with duplicated cases within different label
  24517. MODULE Test;
  24518. VAR value: INTEGER;
  24519. BEGIN CASE value OF 10: | 10: END;
  24520. END Test.
  24521. negative: integer case statement with duplicated case ranges within different label
  24522. MODULE Test;
  24523. VAR value: INTEGER;
  24524. BEGIN CASE value OF 0..10: | 10..20: END;
  24525. END Test.
  24526. positive: integer case statement with ascending cases
  24527. MODULE Test;
  24528. VAR value: INTEGER;
  24529. BEGIN CASE value OF 0..5, 6, 7..7, 8, 9: | 10..20, 21: | 22, 23..29, 30: END;
  24530. END Test.
  24531. positive: integer case statement with descending cases
  24532. MODULE Test;
  24533. VAR value: INTEGER;
  24534. BEGIN CASE value OF 30, 23..29, 22: | 21, 10..20: | 0..5, 6, 7..7, 8, 9: END;
  24535. END Test.
  24536. positive: nested integer case statement
  24537. MODULE Test;
  24538. VAR value: INTEGER;
  24539. BEGIN CASE value OF 0..10: CASE value OF 0..10: END END;
  24540. END Test.
  24541. # with statement
  24542. negative: with statement with constant boolean value
  24543. MODULE Test;
  24544. BEGIN WITH TRUE : BOOLEAN DO END;
  24545. END Test.
  24546. negative: with statement with constant boolean value type
  24547. MODULE Test;
  24548. TYPE Type = BOOLEAN;
  24549. BEGIN WITH TRUE : Type DO END;
  24550. END Test.
  24551. negative: with statement with indirect constant boolean value
  24552. MODULE Test;
  24553. CONST Constant = TRUE;
  24554. BEGIN WITH Constant : BOOLEAN DO END;
  24555. END Test.
  24556. negative: with statement with indirect constant boolean value type
  24557. MODULE Test;
  24558. CONST Constant = TRUE;
  24559. TYPE Type = BOOLEAN;
  24560. BEGIN WITH Constant : Type DO END;
  24561. END Test.
  24562. negative: with statement with constant character value
  24563. MODULE Test;
  24564. BEGIN WITH '0' : CHAR DO END;
  24565. END Test.
  24566. negative: with statement with constant character value type
  24567. MODULE Test;
  24568. TYPE Type = CHAR;
  24569. BEGIN WITH '0' : Type DO END;
  24570. END Test.
  24571. negative: with statement with indirect constant character value
  24572. MODULE Test;
  24573. CONST Constant = '0';
  24574. BEGIN WITH Constant : CHAR DO END;
  24575. END Test.
  24576. negative: with statement with indirect constant character value type
  24577. MODULE Test;
  24578. CONST Constant = '0';
  24579. TYPE Type = CHAR;
  24580. BEGIN WITH Constant : Type DO END;
  24581. END Test.
  24582. negative: with statement with constant integer value
  24583. MODULE Test;
  24584. BEGIN WITH 0 : INTEGER DO END;
  24585. END Test.
  24586. negative: with statement with constant integer value type
  24587. MODULE Test;
  24588. TYPE Type = INTEGER;
  24589. BEGIN WITH 0 : Type DO END;
  24590. END Test.
  24591. negative: with statement with indirect constant integer value
  24592. MODULE Test;
  24593. CONST Constant = 0;
  24594. BEGIN WITH Constant : INTEGER DO END;
  24595. END Test.
  24596. negative: with statement with indirect constant integer value type
  24597. MODULE Test;
  24598. CONST Constant = 0;
  24599. TYPE Type = INTEGER;
  24600. BEGIN WITH Constant : Type DO END;
  24601. END Test.
  24602. negative: with statement with constant real value
  24603. MODULE Test;
  24604. BEGIN WITH 0.0 : REAL DO END;
  24605. END Test.
  24606. negative: with statement with constant real value type
  24607. MODULE Test;
  24608. TYPE Type = REAL;
  24609. BEGIN WITH 0.0 : Type DO END;
  24610. END Test.
  24611. negative: with statement with indirect constant real value
  24612. MODULE Test;
  24613. CONST Constant = 0.0;
  24614. BEGIN WITH Constant : REAL DO END;
  24615. END Test.
  24616. negative: with statement with indirect constant real value type
  24617. MODULE Test;
  24618. CONST Constant = 0.0;
  24619. TYPE Type = REAL;
  24620. BEGIN WITH Constant : Type DO END;
  24621. END Test.
  24622. negative: with statement with constant set value
  24623. MODULE Test;
  24624. BEGIN WITH {} : SET DO END;
  24625. END Test.
  24626. negative: with statement with constant set value type
  24627. MODULE Test;
  24628. TYPE Type = SET;
  24629. BEGIN WITH {} : Type DO END;
  24630. END Test.
  24631. negative: with statement with indirect constant set value
  24632. MODULE Test;
  24633. CONST Constant = {};
  24634. BEGIN WITH Constant : SET DO END;
  24635. END Test.
  24636. negative: with statement with indirect constant set value type
  24637. MODULE Test;
  24638. CONST Constant = {};
  24639. TYPE Type = SET;
  24640. BEGIN WITH Constant : Type DO END;
  24641. END Test.
  24642. negative: with statement with constant string value
  24643. MODULE Test;
  24644. BEGIN WITH "string" : ARRAY OF CHAR DO END;
  24645. END Test.
  24646. negative: with statement with constant string value type
  24647. MODULE Test;
  24648. TYPE Type = ARRAY OF CHAR;
  24649. BEGIN WITH "string" : Type DO END;
  24650. END Test.
  24651. negative: with statement with indirect constant string value
  24652. MODULE Test;
  24653. CONST Constant = "string";
  24654. BEGIN WITH Constant : ARRAY OF CHAR DO END;
  24655. END Test.
  24656. negative: with statement with indirect constant string value type
  24657. MODULE Test;
  24658. CONST Constant = "string";
  24659. TYPE Type = ARRAY OF CHAR;
  24660. BEGIN WITH Constant : Type DO END;
  24661. END Test.
  24662. negative: with statement with nil pointer value
  24663. MODULE Test;
  24664. BEGIN WITH NIL : OBJECT DO END;
  24665. END Test.
  24666. negative: with statement with nil pointer value type
  24667. MODULE Test;
  24668. TYPE Type = OBJECT;
  24669. BEGIN WITH NIL : Type DO END;
  24670. END Test.
  24671. negative: with statement with indirect nil pointer value
  24672. MODULE Test;
  24673. CONST Constant = NIL;
  24674. TYPE Type = OBJECT;
  24675. BEGIN WITH Constant : Type DO END;
  24676. END Test.
  24677. negative: with statement with indirect nil pointer value type
  24678. MODULE Test;
  24679. TYPE Type = OBJECT;
  24680. CONST Constant = NIL;
  24681. BEGIN WITH Constant : Type DO END;
  24682. END Test.
  24683. negative: with statement with variable boolean value
  24684. MODULE Test;
  24685. VAR value: BOOLEAN;
  24686. BEGIN WITH value : BOOLEAN DO END;
  24687. END Test.
  24688. negative: with statement with variable boolean value type
  24689. MODULE Test;
  24690. TYPE Type = BOOLEAN;
  24691. VAR value: Type;
  24692. BEGIN WITH value : Type DO END;
  24693. END Test.
  24694. negative: with statement with variable character value
  24695. MODULE Test;
  24696. VAR value: CHAR;
  24697. BEGIN WITH value : CHAR DO END;
  24698. END Test.
  24699. negative: with statement with variable character value type
  24700. MODULE Test;
  24701. TYPE Type = CHAR;
  24702. VAR value: Type;
  24703. BEGIN WITH value : Type DO END;
  24704. END Test.
  24705. negative: with statement with variable short integer value
  24706. MODULE Test;
  24707. VAR value: SHORTINT;
  24708. BEGIN WITH value : SHORTINT DO END;
  24709. END Test.
  24710. negative: with statement with variable short integer value type
  24711. MODULE Test;
  24712. TYPE Type = SHORTINT;
  24713. VAR value: Type;
  24714. BEGIN WITH value : Type DO END;
  24715. END Test.
  24716. negative: with statement with variable integer value
  24717. MODULE Test;
  24718. VAR value: INTEGER;
  24719. BEGIN WITH value : INTEGER DO END;
  24720. END Test.
  24721. negative: with statement with variable integer value type
  24722. MODULE Test;
  24723. TYPE Type = INTEGER;
  24724. VAR value: Type;
  24725. BEGIN WITH value : Type DO END;
  24726. END Test.
  24727. negative: with statement with variable long integer value
  24728. MODULE Test;
  24729. VAR value: LONGINT;
  24730. BEGIN WITH value : LONGINT DO END;
  24731. END Test.
  24732. negative: with statement with variable long integer value type
  24733. MODULE Test;
  24734. TYPE Type = LONGINT;
  24735. VAR value: Type;
  24736. BEGIN WITH value : Type DO END;
  24737. END Test.
  24738. negative: with statement with variable huge integer value
  24739. MODULE Test;
  24740. VAR value: HUGEINT;
  24741. BEGIN WITH value : HUGEINT DO END;
  24742. END Test.
  24743. negative: with statement with variable huge integer value type
  24744. MODULE Test;
  24745. TYPE Type = HUGEINT;
  24746. VAR value: Type;
  24747. BEGIN WITH value : Type DO END;
  24748. END Test.
  24749. negative: with statement with variable real value
  24750. MODULE Test;
  24751. VAR value: REAL;
  24752. BEGIN WITH value : REAL DO END;
  24753. END Test.
  24754. negative: with statement with variable real value type
  24755. MODULE Test;
  24756. TYPE Type = REAL;
  24757. VAR value: Type;
  24758. BEGIN WITH value : Type DO END;
  24759. END Test.
  24760. negative: with statement with variable long real value
  24761. MODULE Test;
  24762. VAR value: LONGREAL;
  24763. BEGIN WITH value : LONGREAL DO END;
  24764. END Test.
  24765. negative: with statement with variable long real value type
  24766. MODULE Test;
  24767. TYPE Type = LONGREAL;
  24768. VAR value: Type;
  24769. BEGIN WITH value : Type DO END;
  24770. END Test.
  24771. negative: with statement with variable set value
  24772. MODULE Test;
  24773. VAR value: SET;
  24774. BEGIN WITH value : SET DO END;
  24775. END Test.
  24776. negative: with statement with variable set value type
  24777. MODULE Test;
  24778. TYPE Type = SET;
  24779. VAR value: Type;
  24780. BEGIN WITH value : Type DO END;
  24781. END Test.
  24782. negative: with statement with variable array value
  24783. MODULE Test;
  24784. VAR value: ARRAY 10 OF CHAR;
  24785. BEGIN WITH value : ARRAY 10 OF CHAR DO END;
  24786. END Test.
  24787. negative: with statement with variable array value type
  24788. MODULE Test;
  24789. TYPE Type = ARRAY 10 OF CHAR;
  24790. VAR value: Type;
  24791. BEGIN WITH value : Type DO END;
  24792. END Test.
  24793. negative: with statement with variable record value
  24794. MODULE Test;
  24795. PROCEDURE Procedure (VAR value: RECORD END);
  24796. BEGIN WITH value : RECORD END DO END;
  24797. END Procedure;
  24798. END Test.
  24799. positive: with statement with same record type
  24800. MODULE Test;
  24801. TYPE Type = RECORD check: BOOLEAN END;
  24802. PROCEDURE Procedure (VAR value, check: Type);
  24803. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24804. END Procedure;
  24805. END Test.
  24806. positive: with statement with nested record types
  24807. MODULE Test;
  24808. TYPE A = RECORD a: BOOLEAN END;
  24809. TYPE B = RECORD (A) b: BOOLEAN END;
  24810. TYPE C = RECORD (B) c: BOOLEAN END;
  24811. PROCEDURE Procedure (VAR value: A);
  24812. BEGIN WITH value : B DO WITH value : C DO ASSERT (value.c) END; ASSERT (value.b) END; ASSERT (value.a);
  24813. END Procedure;
  24814. END Test.
  24815. negative: with statement with invalid nested record types
  24816. MODULE Test;
  24817. TYPE A = RECORD END;
  24818. TYPE B = RECORD (A) END;
  24819. TYPE C = RECORD (A) END;
  24820. PROCEDURE Procedure (VAR value: A);
  24821. BEGIN WITH value : B DO WITH value : C DO END END;
  24822. END Procedure;
  24823. END Test.
  24824. positive: with statement with extending record type
  24825. MODULE Test;
  24826. TYPE Record = RECORD END; Type = RECORD (Record) check: BOOLEAN END;
  24827. PROCEDURE Procedure (VAR value: Record; check: Type);
  24828. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24829. END Procedure;
  24830. END Test.
  24831. negative: with statement with static extending record type
  24832. MODULE Test;
  24833. TYPE Record = RECORD END; Type = RECORD (Record) check: BOOLEAN END;
  24834. VAR value: Record; check: Type;
  24835. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24836. END Test.
  24837. negative: with statement with extending record type and invalid assignment
  24838. MODULE Test;
  24839. TYPE Record = RECORD END; Type = RECORD (Record) END;
  24840. PROCEDURE Procedure (VAR value, check: Record);
  24841. BEGIN WITH value : Type DO value := check END;
  24842. END Procedure;
  24843. END Test.
  24844. negative: with statement with extended record type
  24845. MODULE Test;
  24846. TYPE Record = RECORD END; Type = Record;
  24847. PROCEDURE Procedure (VAR value: RECORD (Record) END);
  24848. BEGIN WITH value : Type DO END;
  24849. END Procedure;
  24850. END Test.
  24851. negative: with statement with incompatible record type
  24852. MODULE Test;
  24853. TYPE Type = RECORD END;
  24854. PROCEDURE Procedure (VAR value: RECORD END);
  24855. BEGIN WITH value : Type DO END;
  24856. END Procedure;
  24857. END Test.
  24858. negative: with statement with variable object value
  24859. MODULE Test;
  24860. VAR value: OBJECT END;
  24861. BEGIN WITH value : OBJECT END DO END;
  24862. END Test.
  24863. positive: with statement with same object type
  24864. MODULE Test;
  24865. TYPE Type = OBJECT VAR check: BOOLEAN END Type;
  24866. VAR value, check: Type;
  24867. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24868. END Test.
  24869. positive: with statement with nested object types
  24870. MODULE Test;
  24871. TYPE A = OBJECT VAR a: BOOLEAN END A;
  24872. TYPE B = OBJECT (A) VAR b: BOOLEAN END B;
  24873. TYPE C = OBJECT (B) VAR c: BOOLEAN END C;
  24874. VAR value: A;
  24875. BEGIN WITH value : B DO WITH value : C DO ASSERT (value.c) END; ASSERT (value.b) END; ASSERT (value.a);
  24876. END Test.
  24877. negative: with statement with invalid nested object types
  24878. MODULE Test;
  24879. TYPE A = OBJECT END A;
  24880. TYPE B = OBJECT (A) END B;
  24881. TYPE C = OBJECT (A) END C;
  24882. VAR value: A;
  24883. BEGIN WITH value : B DO WITH value : C DO END END;
  24884. END Test.
  24885. positive: with statement with extending object type
  24886. MODULE Test;
  24887. TYPE Object = OBJECT END Object; Type = OBJECT (Object) VAR check: BOOLEAN END Type;
  24888. VAR value: Object; check: Type;
  24889. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24890. END Test.
  24891. negative: with statement with extending object type and invalid assignment
  24892. MODULE Test;
  24893. TYPE Object = OBJECT END Object; Type = OBJECT (Object) END Type;
  24894. VAR value, check: Object;
  24895. BEGIN WITH value : Type DO value := check END;
  24896. END Test.
  24897. negative: with statement with extended object type
  24898. MODULE Test;
  24899. TYPE Object = OBJECT END Object; Type = Object;
  24900. VAR value: OBJECT (Object) END;
  24901. BEGIN WITH value : Type DO END;
  24902. END Test.
  24903. negative: with statement with incompatible object type
  24904. MODULE Test;
  24905. TYPE Type = OBJECT END Type;
  24906. VAR value: OBJECT END;
  24907. BEGIN WITH value : Type DO END;
  24908. END Test.
  24909. negative: with statement with variable base object value
  24910. MODULE Test;
  24911. VAR value: OBJECT;
  24912. BEGIN WITH value : OBJECT DO END;
  24913. END Test.
  24914. positive: with statement with same base object type
  24915. MODULE Test;
  24916. TYPE Type = OBJECT;
  24917. VAR value, check: Type;
  24918. BEGIN WITH value : Type DO check := value; value := check END;
  24919. END Test.
  24920. positive: with statement with nested base object types
  24921. MODULE Test;
  24922. TYPE A = OBJECT;
  24923. TYPE B = OBJECT (A) VAR b: BOOLEAN END B;
  24924. TYPE C = OBJECT (B) VAR c: BOOLEAN END C;
  24925. VAR value: A;
  24926. BEGIN WITH value : B DO WITH value : C DO ASSERT (value.c) END; ASSERT (value.b) END;
  24927. END Test.
  24928. negative: with statement with invalid nested base object types
  24929. MODULE Test;
  24930. TYPE A = OBJECT;
  24931. TYPE B = OBJECT (A) END B;
  24932. TYPE C = OBJECT (A) END C;
  24933. VAR value: A;
  24934. BEGIN WITH value : B DO WITH value : C DO END END;
  24935. END Test.
  24936. positive: with statement with extending base object type
  24937. MODULE Test;
  24938. TYPE Object = OBJECT; Type = OBJECT (Object) VAR check: BOOLEAN END Type;
  24939. VAR value: Object; check: Type;
  24940. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24941. END Test.
  24942. negative: with statement with extending base object type and invalid assignment
  24943. MODULE Test;
  24944. TYPE Object = OBJECT; Type = OBJECT (Object) END Type;
  24945. VAR value, check: Object;
  24946. BEGIN WITH value : Type DO value := check END;
  24947. END Test.
  24948. negative: with statement with extended base object type
  24949. MODULE Test;
  24950. TYPE Object = OBJECT; Type = Object;
  24951. VAR value: OBJECT (Object) END;
  24952. BEGIN WITH value : Type DO END;
  24953. END Test.
  24954. negative: with statement with self and same object type
  24955. MODULE Test;
  24956. TYPE Object = OBJECT
  24957. BEGIN WITH SELF : Type DO END;
  24958. END Object;
  24959. TYPE Type = Object;
  24960. END Test.
  24961. negative: with statement with self and extending object type
  24962. MODULE Test;
  24963. TYPE Object = OBJECT
  24964. BEGIN WITH SELF : Type DO END;
  24965. END Object;
  24966. TYPE Type = OBJECT (Object) END Type;
  24967. END Test.
  24968. negative: with statement with self and extended object type
  24969. MODULE Test;
  24970. TYPE Object = OBJECT (Type)
  24971. BEGIN WITH SELF : Type DO END;
  24972. END Object;
  24973. TYPE Type = OBJECT END Type;
  24974. END Test.
  24975. positive: with statement with object variable and self assignment
  24976. MODULE Test;
  24977. TYPE Object = OBJECT
  24978. VAR value: Object;
  24979. BEGIN WITH value : Type DO ASSERT (value.check); value := value END;
  24980. END Object;
  24981. TYPE Type = OBJECT (Object) VAR check: BOOLEAN; END Type;
  24982. END Test.
  24983. positive: with statement with object variable and self assignment using self
  24984. MODULE Test;
  24985. TYPE Object = OBJECT
  24986. VAR value: Object;
  24987. BEGIN WITH value : Type DO ASSERT (value.check); value := SELF.value END;
  24988. END Object;
  24989. TYPE Type = OBJECT (Object) VAR check: BOOLEAN; END Type;
  24990. END Test.
  24991. negative: with statement with object variable and assignment using another object instance
  24992. MODULE Test;
  24993. TYPE Object = OBJECT
  24994. VAR value: Object;
  24995. BEGIN WITH value : Type DO ASSERT (value.check); value := value.value END;
  24996. END Object;
  24997. TYPE Type = OBJECT (Object) VAR check: BOOLEAN; END Type;
  24998. END Test.
  24999. negative: with statement with variable pointer to array value
  25000. MODULE Test;
  25001. VAR value: POINTER TO ARRAY 10 OF CHAR;
  25002. BEGIN WITH value : POINTER TO ARRAY 10 OF CHAR DO END;
  25003. END Test.
  25004. negative: with statement with variable pointer to array value type
  25005. MODULE Test;
  25006. TYPE Type = POINTER TO ARRAY 10 OF CHAR;
  25007. VAR value: Type;
  25008. BEGIN WITH value : Type DO END;
  25009. END Test.
  25010. negative: with statement with variable pointer to record value
  25011. MODULE Test;
  25012. VAR value: POINTER TO RECORD END;
  25013. BEGIN WITH value : POINTER TO RECORD END DO END;
  25014. END Test.
  25015. positive: with statement with same pointer to record type
  25016. MODULE Test;
  25017. TYPE Type = POINTER TO RECORD check: BOOLEAN END;
  25018. VAR value: Type; check: Type;
  25019. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  25020. END Test.
  25021. positive: with statement with nested pointer to record types
  25022. MODULE Test;
  25023. TYPE A = RECORD a: BOOLEAN END; PA = POINTER TO A;
  25024. TYPE B = RECORD (A) b: BOOLEAN END; PB = POINTER TO B;
  25025. TYPE C = RECORD (B) c: BOOLEAN END; PC = POINTER TO C;
  25026. VAR value: PA;
  25027. BEGIN WITH value : PB DO WITH value : PC DO ASSERT (value.c) END; ASSERT (value.b) END; ASSERT (value.a);
  25028. END Test.
  25029. negative: with statement with invalid nested pointer to record types
  25030. MODULE Test;
  25031. TYPE A = RECORD a: BOOLEAN END; PA = POINTER TO A;
  25032. TYPE B = RECORD (A) b: BOOLEAN END; PB = POINTER TO B;
  25033. TYPE C = RECORD (A) c: BOOLEAN END; PC = POINTER TO C;
  25034. VAR value: PA;
  25035. BEGIN WITH value : PB DO WITH value : PC DO END END;
  25036. END Test.
  25037. positive: with statement with extending pointer to record type
  25038. MODULE Test;
  25039. TYPE Record = RECORD END; Type = POINTER TO RECORD (Record) check: BOOLEAN END;
  25040. VAR value: POINTER TO Record; check: Type;
  25041. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  25042. END Test.
  25043. negative: with statement with extending pointer to record type and invalid assignment
  25044. MODULE Test;
  25045. TYPE Record = RECORD END; Type = POINTER TO RECORD (Record) END;
  25046. VAR value, check: POINTER TO Record;
  25047. BEGIN WITH value : Type DO value := check END;
  25048. END Test.
  25049. negative: with statement with extended pointer to record type
  25050. MODULE Test;
  25051. TYPE Record = RECORD END; Type = POINTER TO Record;
  25052. VAR value: POINTER TO RECORD (Record) END;
  25053. BEGIN WITH value : Type DO END;
  25054. END Test.
  25055. negative: with statement with incompatible pointer to record type
  25056. MODULE Test;
  25057. TYPE Type = POINTER TO RECORD END;
  25058. VAR value: POINTER TO RECORD END;
  25059. BEGIN WITH value : Type DO END;
  25060. END Test.
  25061. negative: with statement with variable procedure value
  25062. MODULE Test;
  25063. VAR value: PROCEDURE;
  25064. BEGIN WITH value : PROCEDURE DO END;
  25065. END Test.
  25066. negative: with statement with variable procedure value type
  25067. MODULE Test;
  25068. TYPE Type = PROCEDURE;
  25069. VAR value: Type;
  25070. BEGIN WITH value : Type DO END;
  25071. END Test.
  25072. # new statement
  25073. negative: new statement on constant boolean
  25074. MODULE Test;
  25075. CONST Constant = TRUE;
  25076. BEGIN NEW (Constant);
  25077. END Test.
  25078. negative: new statement on constant character
  25079. MODULE Test;
  25080. CONST Constant = 'a';
  25081. BEGIN NEW (Constant);
  25082. END Test.
  25083. negative: new statement on constant integer
  25084. MODULE Test;
  25085. CONST Constant = 42;
  25086. BEGIN NEW (Constant);
  25087. END Test.
  25088. negative: new statement on constant real
  25089. MODULE Test;
  25090. CONST Constant = 0.1;
  25091. BEGIN NEW (Constant);
  25092. END Test.
  25093. negative: new statement on constant set
  25094. MODULE Test;
  25095. CONST Constant = {};
  25096. BEGIN NEW (Constant);
  25097. END Test.
  25098. negative: new statement on constant string
  25099. MODULE Test;
  25100. CONST Constant = "string";
  25101. BEGIN NEW (Constant);
  25102. END Test.
  25103. negative: new statement on nil pointer
  25104. MODULE Test;
  25105. CONST Constant = NIL;
  25106. BEGIN NEW (Constant);
  25107. END Test.
  25108. negative: new statement on boolean
  25109. MODULE Test;
  25110. VAR boolean: BOOLEAN;
  25111. BEGIN NEW (boolean);
  25112. END Test.
  25113. negative: new statement on character
  25114. MODULE Test;
  25115. VAR character: CHAR;
  25116. BEGIN NEW (character);
  25117. END Test.
  25118. negative: new statement on integer
  25119. MODULE Test;
  25120. VAR integer: INTEGER;
  25121. BEGIN NEW (integer);
  25122. END Test.
  25123. negative: new statement on real
  25124. MODULE Test;
  25125. VAR real: REAL;
  25126. BEGIN NEW (real);
  25127. END Test.
  25128. negative: new statement on set
  25129. MODULE Test;
  25130. VAR set: SET;
  25131. BEGIN NEW (set);
  25132. END Test.
  25133. negative: new statement on array
  25134. MODULE Test;
  25135. VAR array: ARRAY 10 OF CHAR;
  25136. BEGIN NEW (array);
  25137. END Test.
  25138. negative: new statement on record
  25139. MODULE Test;
  25140. VAR record: RECORD END;
  25141. BEGIN NEW (record);
  25142. END Test.
  25143. positive: new statement on object parameter
  25144. MODULE Test;
  25145. PROCEDURE Procedure (object: OBJECT END);
  25146. BEGIN NEW (object);
  25147. END Procedure;
  25148. END Test.
  25149. positive: new statement on variable object parameter
  25150. MODULE Test;
  25151. PROCEDURE Procedure (VAR object: OBJECT END);
  25152. BEGIN NEW (object);
  25153. END Procedure;
  25154. END Test.
  25155. negative: new statement on constant object parameter
  25156. MODULE Test;
  25157. PROCEDURE Procedure (CONST object: OBJECT END);
  25158. BEGIN NEW (object);
  25159. END Procedure;
  25160. END Test.
  25161. negative: new statement on self
  25162. MODULE Test;
  25163. TYPE Object = OBJECT
  25164. BEGIN NEW (SELF);
  25165. END Object;
  25166. END Test.
  25167. positive: new statement on object without initializer
  25168. MODULE Test;
  25169. VAR object: OBJECT END;
  25170. BEGIN NEW (object);
  25171. END Test.
  25172. negative: new statement on object without initializer and one argument
  25173. MODULE Test;
  25174. VAR object: OBJECT END;
  25175. BEGIN NEW (object, 5);
  25176. END Test.
  25177. positive: new statement on object with simple initializer
  25178. MODULE Test;
  25179. TYPE Object = OBJECT
  25180. PROCEDURE &Initializer; END Initializer;
  25181. END Object;
  25182. VAR object: Object;
  25183. BEGIN NEW (object);
  25184. END Test.
  25185. negative: new statement on object with simple initializer and one argument
  25186. MODULE Test;
  25187. TYPE Object = OBJECT
  25188. PROCEDURE &Initializer; END Initializer;
  25189. END Object;
  25190. VAR object: Object;
  25191. BEGIN NEW (object, 5);
  25192. END Test.
  25193. negative: new statement on object with complex initializer and no argument
  25194. MODULE Test;
  25195. TYPE Object = OBJECT
  25196. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25197. END Object;
  25198. VAR object: Object;
  25199. BEGIN NEW (object);
  25200. END Test.
  25201. positive: new statement on object with complex initializer and one argument
  25202. MODULE Test;
  25203. TYPE Object = OBJECT
  25204. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25205. END Object;
  25206. VAR object: Object;
  25207. BEGIN NEW (object, 5);
  25208. END Test.
  25209. positive: new statement on object with complex initializer and matching arguments
  25210. MODULE Test;
  25211. TYPE Object = OBJECT
  25212. PROCEDURE &Initializer (i, j: INTEGER; b: BOOLEAN); END Initializer;
  25213. END Object;
  25214. VAR object: Object;
  25215. BEGIN NEW (object, 5, 6, TRUE);
  25216. END Test.
  25217. negative: new statement on object with complex initializer and incompatible arguments
  25218. MODULE Test;
  25219. TYPE Object = OBJECT
  25220. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25221. END Object;
  25222. VAR object: Object;
  25223. BEGIN NEW (object, TRUE);
  25224. END Test.
  25225. positive: new statement on object with simple inherited initializer
  25226. MODULE Test;
  25227. TYPE Base = OBJECT
  25228. PROCEDURE &Initializer; END Initializer;
  25229. END Base;
  25230. VAR object: OBJECT (Base) END;
  25231. BEGIN NEW (object);
  25232. END Test.
  25233. negative: new statement on object with simple inherited initializer and one argument
  25234. MODULE Test;
  25235. TYPE Base = OBJECT
  25236. PROCEDURE &Initializer; END Initializer;
  25237. END Base;
  25238. VAR object: OBJECT (Base) END;
  25239. BEGIN NEW (object, 5);
  25240. END Test.
  25241. negative: new statement on object with complex inherited initializer and no argument
  25242. MODULE Test;
  25243. TYPE Base = OBJECT
  25244. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25245. END Base;
  25246. VAR object: OBJECT (Base) END;
  25247. BEGIN NEW (object);
  25248. END Test.
  25249. positive: new statement on object with complex inherited initializer and one argument
  25250. MODULE Test;
  25251. TYPE Base = OBJECT
  25252. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25253. END Base;
  25254. VAR object: OBJECT (Base) END;
  25255. BEGIN NEW (object, 5);
  25256. END Test.
  25257. positive: new statement on object with complex inherited initializer and matching arguments
  25258. MODULE Test;
  25259. TYPE Base = OBJECT
  25260. PROCEDURE &Initializer(i, j: INTEGER; b: BOOLEAN); END Initializer;
  25261. END Base;
  25262. VAR object: OBJECT (Base) END;
  25263. BEGIN NEW (object, 5, 6, TRUE);
  25264. END Test.
  25265. positive: new statement on object with simple overridden initializer
  25266. MODULE Test;
  25267. TYPE Base = OBJECT
  25268. PROCEDURE &InitBase (i: INTEGER); END InitBase;
  25269. END Base;
  25270. TYPE Object = OBJECT (Base)
  25271. PROCEDURE &InitObject; BEGIN InitBase (5) END InitObject;
  25272. END Object;
  25273. VAR object: Object;
  25274. BEGIN NEW (object);
  25275. END Test.
  25276. negative: new statement on object with simple overridden initializer and one argument
  25277. MODULE Test;
  25278. TYPE Base = OBJECT
  25279. PROCEDURE &InitBase (i: INTEGER); END InitBase;
  25280. END Base;
  25281. TYPE Object = OBJECT (Base)
  25282. PROCEDURE &InitObject; END InitObject;
  25283. END Object;
  25284. VAR object: Object;
  25285. BEGIN NEW (object, 5);
  25286. END Test.
  25287. negative: new statement on object with complex overridden initializer and no argument
  25288. MODULE Test;
  25289. TYPE Base = OBJECT
  25290. PROCEDURE &InitBase; END InitBase;
  25291. END Base;
  25292. TYPE Object = OBJECT (Base)
  25293. PROCEDURE &InitObject (i: INTEGER); END InitObject;
  25294. END Object;
  25295. VAR object: Object;
  25296. BEGIN NEW (object);
  25297. END Test.
  25298. positive: new statement on object with complex overridden initializer and one argument
  25299. MODULE Test;
  25300. TYPE Base = OBJECT
  25301. PROCEDURE &InitBase; END InitBase;
  25302. END Base;
  25303. TYPE Object = OBJECT (Base)
  25304. PROCEDURE &InitObject (i: INTEGER); BEGIN InitBase END InitObject;
  25305. END Object;
  25306. VAR object: Object;
  25307. BEGIN NEW (object, 5);
  25308. END Test.
  25309. positive: new statement on object with complex overridden initializer and matching arguments
  25310. MODULE Test;
  25311. TYPE Base = OBJECT
  25312. PROCEDURE &InitBase (r: REAL; s: SET); END InitBase;
  25313. END Base;
  25314. TYPE Object = OBJECT (Base)
  25315. PROCEDURE &InitObject (i, j: INTEGER; b: BOOLEAN); BEGIN InitBase (0, {}) END InitObject;
  25316. END Object;
  25317. VAR object: Object;
  25318. BEGIN NEW (object, 5, 6, TRUE);
  25319. END Test.
  25320. positive: new statement on pointer to array with no dimension
  25321. MODULE Test;
  25322. VAR array: POINTER TO ARRAY 10 OF CHAR;
  25323. BEGIN NEW (array);
  25324. END Test.
  25325. positive: new statement on pointer to array parameter
  25326. MODULE Test;
  25327. PROCEDURE Procedure (array: POINTER TO ARRAY 10 OF CHAR);
  25328. BEGIN NEW (array);
  25329. END Procedure;
  25330. END Test.
  25331. positive: new statement on variable pointer to array parameter
  25332. MODULE Test;
  25333. PROCEDURE Procedure (VAR array: POINTER TO ARRAY 10 OF CHAR);
  25334. BEGIN NEW (array);
  25335. END Procedure;
  25336. END Test.
  25337. negative: new statement on constant pointer to array parameter
  25338. MODULE Test;
  25339. PROCEDURE Procedure (CONST array: POINTER TO ARRAY 10 OF CHAR);
  25340. BEGIN NEW (array);
  25341. END Procedure;
  25342. END Test.
  25343. negative: new statement on pointer to open array with no dimension
  25344. MODULE Test;
  25345. VAR array: POINTER TO ARRAY OF CHAR;
  25346. BEGIN NEW (array);
  25347. END Test.
  25348. positive: new statement on pointer to open array with one dimension
  25349. MODULE Test;
  25350. VAR array: POINTER TO ARRAY OF CHAR;
  25351. BEGIN NEW (array, 5);
  25352. END Test.
  25353. negative: new statement on pointer to open array with incompatible dimension
  25354. MODULE Test;
  25355. VAR array: POINTER TO ARRAY OF CHAR;
  25356. BEGIN NEW (array, 10X);
  25357. END Test.
  25358. negative: new statement on pointer to open array with negative dimension
  25359. MODULE Test;
  25360. VAR array: POINTER TO ARRAY OF CHAR;
  25361. BEGIN NEW (array, -5);
  25362. END Test.
  25363. positive: new statement on pointer to open array with zero dimension
  25364. MODULE Test;
  25365. VAR array: POINTER TO ARRAY OF CHAR;
  25366. BEGIN NEW (array, 0);
  25367. END Test.
  25368. negative: new statement on pointer to twice open array with no dimension
  25369. MODULE Test;
  25370. VAR array: POINTER TO ARRAY OF ARRAY 10 OF ARRAY OF CHAR;
  25371. BEGIN NEW (array);
  25372. END Test.
  25373. negative: new statement on pointer to twice open array with one dimension
  25374. MODULE Test;
  25375. VAR array: POINTER TO ARRAY OF ARRAY 10 OF ARRAY OF CHAR;
  25376. BEGIN NEW (array, 5);
  25377. END Test.
  25378. positive: new statement on pointer to twice open array with two dimensions
  25379. MODULE Test;
  25380. VAR array: POINTER TO ARRAY OF ARRAY OF ARRAY 10 OF CHAR;
  25381. BEGIN NEW (array, 5, 10);
  25382. END Test.
  25383. positive: new statement on pointer to record
  25384. MODULE Test;
  25385. VAR record: POINTER TO RECORD END;
  25386. BEGIN NEW (record);
  25387. END Test.
  25388. positive: new statement on pointer to record parameter
  25389. MODULE Test;
  25390. PROCEDURE Procedure (record: POINTER TO RECORD END);
  25391. BEGIN NEW (record);
  25392. END Procedure;
  25393. END Test.
  25394. positive: new statement on variable pointer to record parameter
  25395. MODULE Test;
  25396. PROCEDURE Procedure (VAR record: POINTER TO RECORD END);
  25397. BEGIN NEW (record);
  25398. END Procedure;
  25399. END Test.
  25400. negative: new statement on constant pointer to record parameter
  25401. MODULE Test;
  25402. PROCEDURE Procedure (CONST record: POINTER TO RECORD END);
  25403. BEGIN NEW (record);
  25404. END Procedure;
  25405. END Test.
  25406. negative: new statement on pointer to record with argument
  25407. MODULE Test;
  25408. VAR record: POINTER TO RECORD END;
  25409. BEGIN NEW (record, 1);
  25410. END Test.
  25411. negative: new statement on pointer to record with arguments
  25412. MODULE Test;
  25413. VAR record: POINTER TO RECORD END;
  25414. BEGIN NEW (record, 1, 2);
  25415. END Test.
  25416. negative: new statement on procedure
  25417. MODULE Test;
  25418. VAR procedure: PROCEDURE;
  25419. BEGIN NEW (procedure);
  25420. END Test.
  25421. # increment statement
  25422. negative: increment statement on constant boolean
  25423. MODULE Test;
  25424. CONST Constant = TRUE;
  25425. BEGIN INC (Constant);
  25426. END Test.
  25427. negative: increment statement on constant character
  25428. MODULE Test;
  25429. CONST Constant = 'a';
  25430. BEGIN INC (Constant);
  25431. END Test.
  25432. negative: increment statement on constant integer
  25433. MODULE Test;
  25434. CONST Constant = 42;
  25435. BEGIN INC (Constant);
  25436. END Test.
  25437. negative: increment statement on constant real
  25438. MODULE Test;
  25439. CONST Constant = 0.1;
  25440. BEGIN INC (Constant);
  25441. END Test.
  25442. negative: increment statement on constant set
  25443. MODULE Test;
  25444. CONST Constant = {};
  25445. BEGIN INC (Constant);
  25446. END Test.
  25447. negative: increment statement on constant string
  25448. MODULE Test;
  25449. CONST Constant = "string";
  25450. BEGIN INC (Constant);
  25451. END Test.
  25452. negative: increment statement on nil pointer
  25453. MODULE Test;
  25454. CONST Constant = NIL;
  25455. BEGIN INC (Constant);
  25456. END Test.
  25457. negative: increment statement on boolean
  25458. MODULE Test;
  25459. VAR boolean: BOOLEAN;
  25460. BEGIN INC (boolean);
  25461. END Test.
  25462. negative: increment statement on character
  25463. MODULE Test;
  25464. VAR character: CHAR;
  25465. BEGIN INC (character);
  25466. END Test.
  25467. positive: increment statement on short integer
  25468. MODULE Test;
  25469. VAR integer: SHORTINT;
  25470. BEGIN INC (integer);
  25471. END Test.
  25472. positive: increment statement on integer
  25473. MODULE Test;
  25474. VAR integer: INTEGER;
  25475. BEGIN INC (integer);
  25476. END Test.
  25477. positive: increment statement on long integer
  25478. MODULE Test;
  25479. VAR integer: LONGINT;
  25480. BEGIN INC (integer);
  25481. END Test.
  25482. positive: increment statement on huge integer
  25483. MODULE Test;
  25484. VAR integer: HUGEINT;
  25485. BEGIN INC (integer);
  25486. END Test.
  25487. positive: increment statement on integer parameter
  25488. MODULE Test;
  25489. PROCEDURE Procedure (integer: INTEGER);
  25490. BEGIN INC (integer);
  25491. END Procedure;
  25492. END Test.
  25493. positive: increment statement on variable integer parameter
  25494. MODULE Test;
  25495. PROCEDURE Procedure (VAR integer: INTEGER);
  25496. BEGIN INC (integer);
  25497. END Procedure;
  25498. END Test.
  25499. negative: increment statement on constant integer parameter
  25500. MODULE Test;
  25501. PROCEDURE Procedure (CONST integer: INTEGER);
  25502. BEGIN INC (integer);
  25503. END Procedure;
  25504. END Test.
  25505. negative: increment statement on real
  25506. MODULE Test;
  25507. VAR real: REAL;
  25508. BEGIN INC (real);
  25509. END Test.
  25510. negative: increment statement on set
  25511. MODULE Test;
  25512. VAR set: SET;
  25513. BEGIN INC (set);
  25514. END Test.
  25515. negative: increment statement on array
  25516. MODULE Test;
  25517. VAR array: ARRAY 10 OF CHAR;
  25518. BEGIN INC (array);
  25519. END Test.
  25520. negative: increment statement on record
  25521. MODULE Test;
  25522. VAR record: RECORD END;
  25523. BEGIN INC (record);
  25524. END Test.
  25525. negative: increment statement on object
  25526. MODULE Test;
  25527. VAR object: OBJECT END;
  25528. BEGIN INC (object);
  25529. END Test.
  25530. negative: increment statement on pointer to array
  25531. MODULE Test;
  25532. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  25533. BEGIN INC (pointer);
  25534. END Test.
  25535. negative: increment statement on pointer to record
  25536. MODULE Test;
  25537. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  25538. BEGIN INC (pointer);
  25539. END Test.
  25540. negative: increment statement on procedure
  25541. MODULE Test;
  25542. VAR procedure: PROCEDURE;
  25543. BEGIN INC (procedure);
  25544. END Test.
  25545. negative: increment statement with constant boolean as increment
  25546. MODULE Test;
  25547. CONST Constant = TRUE;
  25548. VAR integer: INTEGER;
  25549. BEGIN INC (integer, Constant);
  25550. END Test.
  25551. negative: increment statement with constant character as increment
  25552. MODULE Test;
  25553. CONST Constant = 'a';
  25554. VAR integer: INTEGER;
  25555. BEGIN INC (integer, Constant);
  25556. END Test.
  25557. positive: increment statement with constant integer as increment
  25558. MODULE Test;
  25559. CONST Constant = 42;
  25560. VAR integer: INTEGER;
  25561. BEGIN INC (integer, Constant);
  25562. END Test.
  25563. positive: increment statement with constant negative integer as increment
  25564. MODULE Test;
  25565. VAR integer: INTEGER;
  25566. BEGIN INC (integer, -5);
  25567. END Test.
  25568. positive: increment statement with zero as increment
  25569. MODULE Test;
  25570. VAR integer: INTEGER;
  25571. BEGIN INC (integer, 0);
  25572. END Test.
  25573. positive: increment statement with constant positive integer as increment
  25574. MODULE Test;
  25575. VAR integer: INTEGER;
  25576. BEGIN INC (integer, 5);
  25577. END Test.
  25578. negative: increment statement with constant real as increment
  25579. MODULE Test;
  25580. CONST Constant = 0.1;
  25581. VAR integer: INTEGER;
  25582. BEGIN INC (integer, Constant);
  25583. END Test.
  25584. negative: increment statement with constant set as increment
  25585. MODULE Test;
  25586. CONST Constant = {};
  25587. VAR integer: INTEGER;
  25588. BEGIN INC (integer, Constant);
  25589. END Test.
  25590. negative: increment statement with constant string as increment
  25591. MODULE Test;
  25592. CONST Constant = "string";
  25593. VAR integer: INTEGER;
  25594. BEGIN INC (integer, Constant);
  25595. END Test.
  25596. negative: increment statement with nil pointer as increment
  25597. MODULE Test;
  25598. CONST Constant = NIL;
  25599. VAR integer: INTEGER;
  25600. BEGIN INC (integer, Constant);
  25601. END Test.
  25602. negative: increment statement with boolean as increment
  25603. MODULE Test;
  25604. VAR integer: INTEGER; increment: BOOLEAN;
  25605. BEGIN INC (integer, increment);
  25606. END Test.
  25607. negative: increment statement with character as increment
  25608. MODULE Test;
  25609. VAR integer: INTEGER; increment: CHAR;
  25610. BEGIN INC (integer, increment);
  25611. END Test.
  25612. positive: increment statement on short integer with short integer as increment
  25613. MODULE Test;
  25614. VAR integer, increment: SHORTINT;
  25615. BEGIN INC (integer, increment);
  25616. END Test.
  25617. negative: increment statement on short integer with integer as increment
  25618. MODULE Test;
  25619. VAR integer: SHORTINT; increment: INTEGER;
  25620. BEGIN INC (integer, increment);
  25621. END Test.
  25622. negative: increment statement on short integer with long integer as increment
  25623. MODULE Test;
  25624. VAR integer: SHORTINT; increment: LONGINT;
  25625. BEGIN INC (integer, increment);
  25626. END Test.
  25627. negative: increment statement on short integer with huge integer as increment
  25628. MODULE Test;
  25629. VAR integer: SHORTINT; increment: HUGEINT;
  25630. BEGIN INC (integer, increment);
  25631. END Test.
  25632. positive: increment statement on integer with short integer as increment
  25633. MODULE Test;
  25634. VAR integer: INTEGER; increment: SHORTINT;
  25635. BEGIN INC (integer, increment);
  25636. END Test.
  25637. positive: increment statement on integer with integer as increment
  25638. MODULE Test;
  25639. VAR integer, increment: INTEGER;
  25640. BEGIN INC (integer, increment);
  25641. END Test.
  25642. negative: increment statement on integer with long integer as increment
  25643. MODULE Test;
  25644. VAR integer: INTEGER; increment: LONGINT;
  25645. BEGIN INC (integer, increment);
  25646. END Test.
  25647. negative: increment statement on integer with huge integer as increment
  25648. MODULE Test;
  25649. VAR integer: INTEGER; increment: HUGEINT;
  25650. BEGIN INC (integer, increment);
  25651. END Test.
  25652. positive: increment statement on long integer with short integer as increment
  25653. MODULE Test;
  25654. VAR integer: LONGINT; increment: SHORTINT;
  25655. BEGIN INC (integer, increment);
  25656. END Test.
  25657. positive: increment statement on long integer with integer as increment
  25658. MODULE Test;
  25659. VAR integer: LONGINT; increment: INTEGER;
  25660. BEGIN INC (integer, increment);
  25661. END Test.
  25662. positive: increment statement on long integer with long integer as increment
  25663. MODULE Test;
  25664. VAR integer, increment: LONGINT;
  25665. BEGIN INC (integer, increment);
  25666. END Test.
  25667. negative: increment statement on long integer with huge integer as increment
  25668. MODULE Test;
  25669. VAR integer: LONGINT; increment: HUGEINT;
  25670. BEGIN INC (integer, increment);
  25671. END Test.
  25672. positive: increment statement on huge integer with short integer as increment
  25673. MODULE Test;
  25674. VAR integer: HUGEINT; increment: SHORTINT;
  25675. BEGIN INC (integer, increment);
  25676. END Test.
  25677. positive: increment statement on huge integer with integer as increment
  25678. MODULE Test;
  25679. VAR integer: HUGEINT; increment: INTEGER;
  25680. BEGIN INC (integer, increment);
  25681. END Test.
  25682. positive: increment statement on huge integer with long integer as increment
  25683. MODULE Test;
  25684. VAR integer: HUGEINT; increment: LONGINT;
  25685. BEGIN INC (integer, increment);
  25686. END Test.
  25687. positive: increment statement on huge integer with huge integer as increment
  25688. MODULE Test;
  25689. VAR integer, increment: HUGEINT;
  25690. BEGIN INC (integer, increment);
  25691. END Test.
  25692. positive: increment statement with integer parameter as increment
  25693. MODULE Test;
  25694. PROCEDURE Procedure (increment: INTEGER);
  25695. VAR integer: INTEGER;
  25696. BEGIN INC (integer, increment);
  25697. END Procedure;
  25698. END Test.
  25699. positive: increment statement with variable integer parameter as increment
  25700. MODULE Test;
  25701. PROCEDURE Procedure (VAR increment: INTEGER);
  25702. VAR integer: INTEGER;
  25703. BEGIN INC (integer, increment);
  25704. END Procedure;
  25705. END Test.
  25706. positive: increment statement with constant integer parameter as increment
  25707. MODULE Test;
  25708. PROCEDURE Procedure (CONST increment: INTEGER);
  25709. VAR integer: INTEGER;
  25710. BEGIN INC (integer, increment);
  25711. END Procedure;
  25712. END Test.
  25713. negative: increment statement with real as increment
  25714. MODULE Test;
  25715. VAR integer: INTEGER; increment: REAL;
  25716. BEGIN INC (integer, increment);
  25717. END Test.
  25718. negative: increment statement with set as increment
  25719. MODULE Test;
  25720. VAR integer: INTEGER; increment: SET;
  25721. BEGIN INC (integer, increment);
  25722. END Test.
  25723. negative: increment statement with array as increment
  25724. MODULE Test;
  25725. VAR integer: INTEGER; increment: ARRAY 10 OF CHAR;
  25726. BEGIN INC (integer, increment);
  25727. END Test.
  25728. negative: increment statement with record as increment
  25729. MODULE Test;
  25730. VAR integer: INTEGER; increment: RECORD END;
  25731. BEGIN INC (integer, increment);
  25732. END Test.
  25733. negative: increment statement with object as increment
  25734. MODULE Test;
  25735. VAR integer: INTEGER; increment: OBJECT END;
  25736. BEGIN INC (integer, increment);
  25737. END Test.
  25738. negative: increment statement with pointer to array as increment
  25739. MODULE Test;
  25740. VAR integer: INTEGER; increment: POINTER TO ARRAY 10 OF CHAR;
  25741. BEGIN INC (integer, increment);
  25742. END Test.
  25743. negative: increment statement with pointer to record as increment
  25744. MODULE Test;
  25745. VAR integer: INTEGER; increment: POINTER TO ARRAY 10 OF CHAR;
  25746. BEGIN INC (integer, increment);
  25747. END Test.
  25748. negative: increment statement with procedure as increment
  25749. MODULE Test;
  25750. VAR integer: INTEGER; increment: PROCEDURE;
  25751. BEGIN INC (integer, increment);
  25752. END Test.
  25753. # decrement statement
  25754. negative: decrement statement on constant boolean
  25755. MODULE Test;
  25756. CONST Constant = TRUE;
  25757. BEGIN DEC (Constant);
  25758. END Test.
  25759. negative: decrement statement on constant character
  25760. MODULE Test;
  25761. CONST Constant = 'a';
  25762. BEGIN DEC (Constant);
  25763. END Test.
  25764. negative: decrement statement on constant integer
  25765. MODULE Test;
  25766. CONST Constant = 42;
  25767. BEGIN DEC (Constant);
  25768. END Test.
  25769. negative: decrement statement on constant real
  25770. MODULE Test;
  25771. CONST Constant = 0.1;
  25772. BEGIN DEC (Constant);
  25773. END Test.
  25774. negative: decrement statement on constant set
  25775. MODULE Test;
  25776. CONST Constant = {};
  25777. BEGIN DEC (Constant);
  25778. END Test.
  25779. negative: decrement statement on constant string
  25780. MODULE Test;
  25781. CONST Constant = "string";
  25782. BEGIN DEC (Constant);
  25783. END Test.
  25784. negative: decrement statement on nil pointer
  25785. MODULE Test;
  25786. CONST Constant = NIL;
  25787. BEGIN DEC (Constant);
  25788. END Test.
  25789. negative: decrement statement on boolean
  25790. MODULE Test;
  25791. VAR boolean: BOOLEAN;
  25792. BEGIN DEC (boolean);
  25793. END Test.
  25794. negative: decrement statement on character
  25795. MODULE Test;
  25796. VAR character: CHAR;
  25797. BEGIN DEC (character);
  25798. END Test.
  25799. positive: decrement statement on short integer
  25800. MODULE Test;
  25801. VAR integer: SHORTINT;
  25802. BEGIN DEC (integer);
  25803. END Test.
  25804. positive: decrement statement on integer
  25805. MODULE Test;
  25806. VAR integer: INTEGER;
  25807. BEGIN DEC (integer);
  25808. END Test.
  25809. positive: decrement statement on long integer
  25810. MODULE Test;
  25811. VAR integer: LONGINT;
  25812. BEGIN DEC (integer);
  25813. END Test.
  25814. positive: decrement statement on huge integer
  25815. MODULE Test;
  25816. VAR integer: HUGEINT;
  25817. BEGIN DEC (integer);
  25818. END Test.
  25819. positive: decrement statement on integer parameter
  25820. MODULE Test;
  25821. PROCEDURE Procedure (integer: INTEGER);
  25822. BEGIN DEC (integer);
  25823. END Procedure;
  25824. END Test.
  25825. positive: decrement statement on variable integer parameter
  25826. MODULE Test;
  25827. PROCEDURE Procedure (VAR integer: INTEGER);
  25828. BEGIN DEC (integer);
  25829. END Procedure;
  25830. END Test.
  25831. negative: decrement statement on constant integer parameter
  25832. MODULE Test;
  25833. PROCEDURE Procedure (CONST integer: INTEGER);
  25834. BEGIN DEC (integer);
  25835. END Procedure;
  25836. END Test.
  25837. negative: decrement statement on real
  25838. MODULE Test;
  25839. VAR real: REAL;
  25840. BEGIN DEC (real);
  25841. END Test.
  25842. negative: decrement statement on set
  25843. MODULE Test;
  25844. VAR set: SET;
  25845. BEGIN DEC (set);
  25846. END Test.
  25847. negative: decrement statement on array
  25848. MODULE Test;
  25849. VAR array: ARRAY 10 OF CHAR;
  25850. BEGIN DEC (array);
  25851. END Test.
  25852. negative: decrement statement on record
  25853. MODULE Test;
  25854. VAR record: RECORD END;
  25855. BEGIN DEC (record);
  25856. END Test.
  25857. negative: decrement statement on object
  25858. MODULE Test;
  25859. VAR object: OBJECT END;
  25860. BEGIN DEC (object);
  25861. END Test.
  25862. negative: decrement statement on pointer to array
  25863. MODULE Test;
  25864. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  25865. BEGIN DEC (pointer);
  25866. END Test.
  25867. negative: decrement statement on pointer to record
  25868. MODULE Test;
  25869. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  25870. BEGIN DEC (pointer);
  25871. END Test.
  25872. negative: decrement statement on procedure
  25873. MODULE Test;
  25874. VAR procedure: PROCEDURE;
  25875. BEGIN DEC (procedure);
  25876. END Test.
  25877. negative: decrement statement with constant boolean as increment
  25878. MODULE Test;
  25879. CONST Constant = TRUE;
  25880. VAR integer: INTEGER;
  25881. BEGIN DEC (integer, Constant);
  25882. END Test.
  25883. negative: decrement statement with constant character as increment
  25884. MODULE Test;
  25885. CONST Constant = 'a';
  25886. VAR integer: INTEGER;
  25887. BEGIN DEC (integer, Constant);
  25888. END Test.
  25889. positive: decrement statement with constant integer as increment
  25890. MODULE Test;
  25891. CONST Constant = 42;
  25892. VAR integer: INTEGER;
  25893. BEGIN DEC (integer, Constant);
  25894. END Test.
  25895. positive: decrement statement with constant negative integer as increment
  25896. MODULE Test;
  25897. VAR integer: INTEGER;
  25898. BEGIN DEC (integer, -5);
  25899. END Test.
  25900. positive: decrement statement with zero as increment
  25901. MODULE Test;
  25902. VAR integer: INTEGER;
  25903. BEGIN DEC (integer, 0);
  25904. END Test.
  25905. positive: decrement statement with constant positive integer as increment
  25906. MODULE Test;
  25907. VAR integer: INTEGER;
  25908. BEGIN DEC (integer, 5);
  25909. END Test.
  25910. negative: decrement statement with constant real as increment
  25911. MODULE Test;
  25912. CONST Constant = 0.1;
  25913. VAR integer: INTEGER;
  25914. BEGIN DEC (integer, Constant);
  25915. END Test.
  25916. negative: decrement statement with constant set as increment
  25917. MODULE Test;
  25918. CONST Constant = {};
  25919. VAR integer: INTEGER;
  25920. BEGIN DEC (integer, Constant);
  25921. END Test.
  25922. negative: decrement statement with constant string as increment
  25923. MODULE Test;
  25924. CONST Constant = "string";
  25925. VAR integer: INTEGER;
  25926. BEGIN DEC (integer, Constant);
  25927. END Test.
  25928. negative: decrement statement with nil pointer as increment
  25929. MODULE Test;
  25930. CONST Constant = NIL;
  25931. VAR integer: INTEGER;
  25932. BEGIN DEC (integer, Constant);
  25933. END Test.
  25934. negative: decrement statement with boolean as increment
  25935. MODULE Test;
  25936. VAR integer: INTEGER; increment: BOOLEAN;
  25937. BEGIN DEC (integer, increment);
  25938. END Test.
  25939. negative: decrement statement with character as increment
  25940. MODULE Test;
  25941. VAR integer: INTEGER; increment: CHAR;
  25942. BEGIN DEC (integer, increment);
  25943. END Test.
  25944. positive: decrement statement on short integer with short integer as increment
  25945. MODULE Test;
  25946. VAR integer, increment: SHORTINT;
  25947. BEGIN DEC (integer, increment);
  25948. END Test.
  25949. negative: decrement statement on short integer with integer as increment
  25950. MODULE Test;
  25951. VAR integer: SHORTINT; increment: INTEGER;
  25952. BEGIN DEC (integer, increment);
  25953. END Test.
  25954. negative: decrement statement on short integer with long integer as increment
  25955. MODULE Test;
  25956. VAR integer: SHORTINT; increment: LONGINT;
  25957. BEGIN DEC (integer, increment);
  25958. END Test.
  25959. negative: decrement statement on short integer with huge integer as increment
  25960. MODULE Test;
  25961. VAR integer: SHORTINT; increment: HUGEINT;
  25962. BEGIN DEC (integer, increment);
  25963. END Test.
  25964. positive: decrement statement on integer with short integer as increment
  25965. MODULE Test;
  25966. VAR integer: INTEGER; increment: SHORTINT;
  25967. BEGIN DEC (integer, increment);
  25968. END Test.
  25969. positive: decrement statement on integer with integer as increment
  25970. MODULE Test;
  25971. VAR integer, increment: INTEGER;
  25972. BEGIN DEC (integer, increment);
  25973. END Test.
  25974. negative: decrement statement on integer with long integer as increment
  25975. MODULE Test;
  25976. VAR integer: INTEGER; increment: LONGINT;
  25977. BEGIN DEC (integer, increment);
  25978. END Test.
  25979. negative: decrement statement on integer with huge integer as increment
  25980. MODULE Test;
  25981. VAR integer: INTEGER; increment: HUGEINT;
  25982. BEGIN DEC (integer, increment);
  25983. END Test.
  25984. positive: decrement statement on long integer with short integer as increment
  25985. MODULE Test;
  25986. VAR integer: LONGINT; increment: SHORTINT;
  25987. BEGIN DEC (integer, increment);
  25988. END Test.
  25989. positive: decrement statement on long integer with integer as increment
  25990. MODULE Test;
  25991. VAR integer: LONGINT; increment: INTEGER;
  25992. BEGIN DEC (integer, increment);
  25993. END Test.
  25994. positive: decrement statement on long integer with long integer as increment
  25995. MODULE Test;
  25996. VAR integer, increment: LONGINT;
  25997. BEGIN DEC (integer, increment);
  25998. END Test.
  25999. negative: decrement statement on long integer with huge integer as increment
  26000. MODULE Test;
  26001. VAR integer: LONGINT; increment: HUGEINT;
  26002. BEGIN DEC (integer, increment);
  26003. END Test.
  26004. positive: decrement statement on huge integer with short integer as increment
  26005. MODULE Test;
  26006. VAR integer: HUGEINT; increment: SHORTINT;
  26007. BEGIN DEC (integer, increment);
  26008. END Test.
  26009. positive: decrement statement on huge integer with integer as increment
  26010. MODULE Test;
  26011. VAR integer: HUGEINT; increment: INTEGER;
  26012. BEGIN DEC (integer, increment);
  26013. END Test.
  26014. positive: decrement statement on huge integer with long integer as increment
  26015. MODULE Test;
  26016. VAR integer: HUGEINT; increment: LONGINT;
  26017. BEGIN DEC (integer, increment);
  26018. END Test.
  26019. positive: decrement statement on huge integer with huge integer as increment
  26020. MODULE Test;
  26021. VAR integer, increment: HUGEINT;
  26022. BEGIN DEC (integer, increment);
  26023. END Test.
  26024. positive: decrement statement with integer parameter as increment
  26025. MODULE Test;
  26026. PROCEDURE Procedure (increment: INTEGER);
  26027. VAR integer: INTEGER;
  26028. BEGIN DEC (integer, increment);
  26029. END Procedure;
  26030. END Test.
  26031. positive: decrement statement with variable integer parameter as increment
  26032. MODULE Test;
  26033. PROCEDURE Procedure (VAR increment: INTEGER);
  26034. VAR integer: INTEGER;
  26035. BEGIN DEC (integer, increment);
  26036. END Procedure;
  26037. END Test.
  26038. positive: decrement statement with constant integer parameter as increment
  26039. MODULE Test;
  26040. PROCEDURE Procedure (CONST increment: INTEGER);
  26041. VAR integer: INTEGER;
  26042. BEGIN DEC (integer, increment);
  26043. END Procedure;
  26044. END Test.
  26045. negative: decrement statement with real as increment
  26046. MODULE Test;
  26047. VAR integer: INTEGER; increment: REAL;
  26048. BEGIN DEC (integer, increment);
  26049. END Test.
  26050. negative: decrement statement with set as increment
  26051. MODULE Test;
  26052. VAR integer: INTEGER; increment: SET;
  26053. BEGIN DEC (integer, increment);
  26054. END Test.
  26055. negative: decrement statement with array as increment
  26056. MODULE Test;
  26057. VAR integer: INTEGER; increment: ARRAY 10 OF CHAR;
  26058. BEGIN DEC (integer, increment);
  26059. END Test.
  26060. negative: decrement statement with record as increment
  26061. MODULE Test;
  26062. VAR integer: INTEGER; increment: RECORD END;
  26063. BEGIN DEC (integer, increment);
  26064. END Test.
  26065. negative: decrement statement with object as increment
  26066. MODULE Test;
  26067. VAR integer: INTEGER; increment: OBJECT END;
  26068. BEGIN DEC (integer, increment);
  26069. END Test.
  26070. negative: decrement statement with pointer to array as increment
  26071. MODULE Test;
  26072. VAR integer: INTEGER; increment: POINTER TO ARRAY 10 OF CHAR;
  26073. BEGIN DEC (integer, increment);
  26074. END Test.
  26075. negative: decrement statement with pointer to record as increment
  26076. MODULE Test;
  26077. VAR integer: INTEGER; increment: POINTER TO ARRAY 10 OF CHAR;
  26078. BEGIN DEC (integer, increment);
  26079. END Test.
  26080. negative: decrement statement with procedure as increment
  26081. MODULE Test;
  26082. VAR integer: INTEGER; increment: PROCEDURE;
  26083. BEGIN DEC (integer, increment);
  26084. END Test.
  26085. # include statement
  26086. negative: include statement on constant boolean
  26087. MODULE Test;
  26088. CONST Constant = TRUE;
  26089. BEGIN INCL (Constant, 0);
  26090. END Test.
  26091. negative: include statement on constant character
  26092. MODULE Test;
  26093. CONST Constant = 'a';
  26094. BEGIN INCL (Constant, 0);
  26095. END Test.
  26096. negative: include statement on constant integer
  26097. MODULE Test;
  26098. CONST Constant = 42;
  26099. BEGIN INCL (Constant, 0);
  26100. END Test.
  26101. negative: include statement on constant real
  26102. MODULE Test;
  26103. CONST Constant = 0.1;
  26104. BEGIN INCL (Constant, 0);
  26105. END Test.
  26106. negative: include statement on constant set
  26107. MODULE Test;
  26108. CONST Constant = {};
  26109. BEGIN INCL (Constant, 0);
  26110. END Test.
  26111. negative: include statement on constant string
  26112. MODULE Test;
  26113. CONST Constant = "string";
  26114. BEGIN INCL (Constant, 0);
  26115. END Test.
  26116. negative: include statement on nil pointer
  26117. MODULE Test;
  26118. CONST Constant = NIL;
  26119. BEGIN INCL (Constant, 0);
  26120. END Test.
  26121. negative: include statement on boolean
  26122. MODULE Test;
  26123. VAR boolean: BOOLEAN;
  26124. BEGIN INCL (boolean, 0);
  26125. END Test.
  26126. negative: include statement on character
  26127. MODULE Test;
  26128. VAR character: CHAR;
  26129. BEGIN INCL (character, 0);
  26130. END Test.
  26131. negative: include statement on integer
  26132. MODULE Test;
  26133. VAR integer: INTEGER;
  26134. BEGIN INCL (integer, 0);
  26135. END Test.
  26136. negative: include statement on real
  26137. MODULE Test;
  26138. VAR real: REAL;
  26139. BEGIN INCL (real, 0);
  26140. END Test.
  26141. negative: include statement on set with constant boolean
  26142. MODULE Test;
  26143. VAR set: SET;
  26144. BEGIN INCL (set, TRUE);
  26145. END Test.
  26146. negative: include statement on set with constant character
  26147. MODULE Test;
  26148. VAR set: SET;
  26149. BEGIN INCL (set, 'f');
  26150. END Test.
  26151. positive: include statement on set with positive constant integer
  26152. MODULE Test;
  26153. VAR set: SET;
  26154. BEGIN INCL (set, 5);
  26155. END Test.
  26156. negative: include statement on set with constant integer exceeding valid range
  26157. MODULE Test;
  26158. VAR set: SET;
  26159. BEGIN INCL (set, 5654);
  26160. END Test.
  26161. positive: include statement on set with zero
  26162. MODULE Test;
  26163. VAR set: SET;
  26164. BEGIN INCL (set, 0);
  26165. END Test.
  26166. negative: include statement on set with negative constant integer
  26167. MODULE Test;
  26168. VAR set: SET;
  26169. BEGIN INCL (set, -5);
  26170. END Test.
  26171. positive: include statement on set parameter
  26172. MODULE Test;
  26173. PROCEDURE Procedure (set: SET);
  26174. BEGIN INCL (set, 0);
  26175. END Procedure;
  26176. END Test.
  26177. positive: include statement on variable set parameter
  26178. MODULE Test;
  26179. PROCEDURE Procedure (VAR set: SET);
  26180. BEGIN INCL (set, 0);
  26181. END Procedure;
  26182. END Test.
  26183. negative: include statement on constant set parameter
  26184. MODULE Test;
  26185. PROCEDURE Procedure (CONST set: SET);
  26186. BEGIN INCL (set, 0);
  26187. END Procedure;
  26188. END Test.
  26189. positive: include statement on set with integer parameter
  26190. MODULE Test;
  26191. PROCEDURE Procedure (integer: INTEGER);
  26192. VAR set: SET;
  26193. BEGIN INCL (set, integer);
  26194. END Procedure;
  26195. END Test.
  26196. positive: include statement on set with variable integer parameter
  26197. MODULE Test;
  26198. PROCEDURE Procedure (VAR integer: INTEGER);
  26199. VAR set: SET;
  26200. BEGIN INCL (set, integer);
  26201. END Procedure;
  26202. END Test.
  26203. positive: include statement on set with constant integer parameter
  26204. MODULE Test;
  26205. PROCEDURE Procedure (CONST integer: INTEGER);
  26206. VAR set: SET;
  26207. BEGIN INCL (set, integer);
  26208. END Procedure;
  26209. END Test.
  26210. negative: include statement on set with constant real
  26211. MODULE Test;
  26212. VAR set: SET;
  26213. BEGIN INCL (set, 0.0);
  26214. END Test.
  26215. negative: include statement on set with constant set
  26216. MODULE Test;
  26217. VAR set: SET;
  26218. BEGIN INCL (set, {});
  26219. END Test.
  26220. negative: include statement on set with constant string
  26221. MODULE Test;
  26222. VAR set: SET;
  26223. BEGIN INCL (set, "element");
  26224. END Test.
  26225. negative: include statement on set with nil pointer
  26226. MODULE Test;
  26227. VAR set: SET;
  26228. BEGIN INCL (set, NIL);
  26229. END Test.
  26230. negative: include statement on set with boolean
  26231. MODULE Test;
  26232. VAR set: SET; boolean: BOOLEAN;
  26233. BEGIN INCL (set, boolean);
  26234. END Test.
  26235. negative: include statement on set with character
  26236. MODULE Test;
  26237. VAR set: SET; character: CHAR;
  26238. BEGIN INCL (set, character);
  26239. END Test.
  26240. positive: include statement on set with short integer
  26241. MODULE Test;
  26242. VAR set: SET; integer: SHORTINT;
  26243. BEGIN INCL (set, integer);
  26244. END Test.
  26245. positive: include statement on set with integer
  26246. MODULE Test;
  26247. VAR set: SET; integer: INTEGER;
  26248. BEGIN INCL (set, integer);
  26249. END Test.
  26250. positive: include statement on set with long integer
  26251. MODULE Test;
  26252. VAR set: SET; integer: LONGINT;
  26253. BEGIN INCL (set, integer);
  26254. END Test.
  26255. positive: include statement on set with huge integer
  26256. MODULE Test;
  26257. VAR set: SET; integer: HUGEINT;
  26258. BEGIN INCL (set, integer);
  26259. END Test.
  26260. negative: include statement on set with real
  26261. MODULE Test;
  26262. VAR set: SET; real: REAL;
  26263. BEGIN INCL (set, real);
  26264. END Test.
  26265. negative: include statement on array
  26266. MODULE Test;
  26267. VAR array: ARRAY 10 OF CHAR;
  26268. BEGIN INCL (array, 0);
  26269. END Test.
  26270. negative: include statement on record
  26271. MODULE Test;
  26272. VAR record: RECORD END;
  26273. BEGIN INCL (record, 0);
  26274. END Test.
  26275. negative: include statement on object
  26276. MODULE Test;
  26277. VAR object: OBJECT END;
  26278. BEGIN INCL (object, 0);
  26279. END Test.
  26280. negative: include statement on pointer to array
  26281. MODULE Test;
  26282. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  26283. BEGIN INCL (pointer, 0);
  26284. END Test.
  26285. negative: include statement on pointer to record
  26286. MODULE Test;
  26287. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  26288. BEGIN INCL (pointer, 0);
  26289. END Test.
  26290. negative: include statement on procedure
  26291. MODULE Test;
  26292. VAR procedure: PROCEDURE;
  26293. BEGIN INCL (procedure, 0);
  26294. END Test.
  26295. # exclude statement
  26296. negative: exclude statement on constant boolean
  26297. MODULE Test;
  26298. CONST Constant = TRUE;
  26299. BEGIN EXCL (Constant, 0);
  26300. END Test.
  26301. negative: exclude statement on constant character
  26302. MODULE Test;
  26303. CONST Constant = 'a';
  26304. BEGIN EXCL (Constant, 0);
  26305. END Test.
  26306. negative: exclude statement on constant integer
  26307. MODULE Test;
  26308. CONST Constant = 42;
  26309. BEGIN EXCL (Constant, 0);
  26310. END Test.
  26311. negative: exclude statement on constant real
  26312. MODULE Test;
  26313. CONST Constant = 0.1;
  26314. BEGIN EXCL (Constant, 0);
  26315. END Test.
  26316. negative: exclude statement on constant set
  26317. MODULE Test;
  26318. CONST Constant = {};
  26319. BEGIN EXCL (Constant, 0);
  26320. END Test.
  26321. negative: exclude statement on constant string
  26322. MODULE Test;
  26323. CONST Constant = "string";
  26324. BEGIN EXCL (Constant, 0);
  26325. END Test.
  26326. negative: exclude statement on nil pointer
  26327. MODULE Test;
  26328. CONST Constant = NIL;
  26329. BEGIN EXCL (Constant, 0);
  26330. END Test.
  26331. negative: exclude statement on boolean
  26332. MODULE Test;
  26333. VAR boolean: BOOLEAN;
  26334. BEGIN EXCL (boolean, 0);
  26335. END Test.
  26336. negative: exclude statement on character
  26337. MODULE Test;
  26338. VAR character: CHAR;
  26339. BEGIN EXCL (character, 0);
  26340. END Test.
  26341. negative: exclude statement on integer
  26342. MODULE Test;
  26343. VAR integer: INTEGER;
  26344. BEGIN EXCL (integer, 0);
  26345. END Test.
  26346. negative: exclude statement on real
  26347. MODULE Test;
  26348. VAR real: REAL;
  26349. BEGIN EXCL (real, 0);
  26350. END Test.
  26351. negative: exclude statement on set with constant boolean
  26352. MODULE Test;
  26353. VAR set: SET;
  26354. BEGIN EXCL (set, TRUE);
  26355. END Test.
  26356. negative: exclude statement on set with constant character
  26357. MODULE Test;
  26358. VAR set: SET;
  26359. BEGIN EXCL (set, 'f');
  26360. END Test.
  26361. positive: exclude statement on set with positive constant integer
  26362. MODULE Test;
  26363. VAR set: SET;
  26364. BEGIN EXCL (set, 5);
  26365. END Test.
  26366. negative: exclude statement on set with constant integer exceeding valid range
  26367. MODULE Test;
  26368. VAR set: SET;
  26369. BEGIN EXCL (set, 5654);
  26370. END Test.
  26371. positive: exclude statement on set with zero
  26372. MODULE Test;
  26373. VAR set: SET;
  26374. BEGIN EXCL (set, 0);
  26375. END Test.
  26376. negative: exclude statement on set with negative constant integer
  26377. MODULE Test;
  26378. VAR set: SET;
  26379. BEGIN EXCL (set, -5);
  26380. END Test.
  26381. positive: exclude statement on set parameter
  26382. MODULE Test;
  26383. PROCEDURE Procedure (set: SET);
  26384. BEGIN EXCL (set, 0);
  26385. END Procedure;
  26386. END Test.
  26387. positive: exclude statement on variable set parameter
  26388. MODULE Test;
  26389. PROCEDURE Procedure (VAR set: SET);
  26390. BEGIN EXCL (set, 0);
  26391. END Procedure;
  26392. END Test.
  26393. negative: exclude statement on constant set parameter
  26394. MODULE Test;
  26395. PROCEDURE Procedure (CONST set: SET);
  26396. BEGIN EXCL (set, 0);
  26397. END Procedure;
  26398. END Test.
  26399. positive: exclude statement on set with integer parameter
  26400. MODULE Test;
  26401. PROCEDURE Procedure (integer: INTEGER);
  26402. VAR set: SET;
  26403. BEGIN EXCL (set, integer);
  26404. END Procedure;
  26405. END Test.
  26406. positive: exclude statement on set with variable integer parameter
  26407. MODULE Test;
  26408. PROCEDURE Procedure (VAR integer: INTEGER);
  26409. VAR set: SET;
  26410. BEGIN EXCL (set, integer);
  26411. END Procedure;
  26412. END Test.
  26413. positive: exclude statement on set with constant integer parameter
  26414. MODULE Test;
  26415. PROCEDURE Procedure (CONST integer: INTEGER);
  26416. VAR set: SET;
  26417. BEGIN EXCL (set, integer);
  26418. END Procedure;
  26419. END Test.
  26420. negative: exclude statement on set with constant real
  26421. MODULE Test;
  26422. VAR set: SET;
  26423. BEGIN EXCL (set, 0.0);
  26424. END Test.
  26425. negative: exclude statement on set with constant set
  26426. MODULE Test;
  26427. VAR set: SET;
  26428. BEGIN EXCL (set, {});
  26429. END Test.
  26430. negative: exclude statement on set with constant string
  26431. MODULE Test;
  26432. VAR set: SET;
  26433. BEGIN EXCL (set, "element");
  26434. END Test.
  26435. negative: exclude statement on set with nil pointer
  26436. MODULE Test;
  26437. VAR set: SET;
  26438. BEGIN EXCL (set, NIL);
  26439. END Test.
  26440. negative: exclude statement on set with boolean
  26441. MODULE Test;
  26442. VAR set: SET; boolean: BOOLEAN;
  26443. BEGIN EXCL (set, boolean);
  26444. END Test.
  26445. negative: exclude statement on set with character
  26446. MODULE Test;
  26447. VAR set: SET; character: CHAR;
  26448. BEGIN EXCL (set, character);
  26449. END Test.
  26450. positive: exclude statement on set with short integer
  26451. MODULE Test;
  26452. VAR set: SET; integer: SHORTINT;
  26453. BEGIN EXCL (set, integer);
  26454. END Test.
  26455. positive: exclude statement on set with integer
  26456. MODULE Test;
  26457. VAR set: SET; integer: INTEGER;
  26458. BEGIN EXCL (set, integer);
  26459. END Test.
  26460. positive: exclude statement on set with long integer
  26461. MODULE Test;
  26462. VAR set: SET; integer: LONGINT;
  26463. BEGIN EXCL (set, integer);
  26464. END Test.
  26465. positive: exclude statement on set with huge integer
  26466. MODULE Test;
  26467. VAR set: SET; integer: HUGEINT;
  26468. BEGIN EXCL (set, integer);
  26469. END Test.
  26470. negative: exclude statement on set with real
  26471. MODULE Test;
  26472. VAR set: SET; real: REAL;
  26473. BEGIN EXCL (set, real);
  26474. END Test.
  26475. negative: exclude statement on array
  26476. MODULE Test;
  26477. VAR array: ARRAY 10 OF CHAR;
  26478. BEGIN EXCL (array, 0);
  26479. END Test.
  26480. negative: exclude statement on record
  26481. MODULE Test;
  26482. VAR record: RECORD END;
  26483. BEGIN EXCL (record, 0);
  26484. END Test.
  26485. negative: exclude statement on object
  26486. MODULE Test;
  26487. VAR object: OBJECT END;
  26488. BEGIN EXCL (object, 0);
  26489. END Test.
  26490. negative: exclude statement on pointer to array
  26491. MODULE Test;
  26492. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  26493. BEGIN EXCL (pointer, 0);
  26494. END Test.
  26495. negative: exclude statement on pointer to record
  26496. MODULE Test;
  26497. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  26498. BEGIN EXCL (pointer, 0);
  26499. END Test.
  26500. negative: exclude statement on procedure
  26501. MODULE Test;
  26502. VAR procedure: PROCEDURE;
  26503. BEGIN EXCL (procedure, 0);
  26504. END Test.
  26505. # copy statement
  26506. negative: copy statement on boolean
  26507. MODULE Test;
  26508. VAR source, dest: BOOLEAN;
  26509. BEGIN COPY (source, dest);
  26510. END Test.
  26511. negative: copy statement on character
  26512. MODULE Test;
  26513. VAR source, dest: CHAR;
  26514. BEGIN COPY (source, dest);
  26515. END Test.
  26516. negative: copy statement on integer
  26517. MODULE Test;
  26518. VAR source, dest: INTEGER;
  26519. BEGIN COPY (source, dest);
  26520. END Test.
  26521. negative: copy statement on real
  26522. MODULE Test;
  26523. VAR source, dest: REAL;
  26524. BEGIN COPY (source, dest);
  26525. END Test.
  26526. negative: copy statement on set
  26527. MODULE Test;
  26528. VAR source, dest: SET;
  26529. BEGIN COPY (source, dest);
  26530. END Test.
  26531. negative: copy statement on array of boolean
  26532. MODULE Test;
  26533. VAR source, dest: ARRAY 10 OF BOOLEAN;
  26534. BEGIN COPY (source, dest);
  26535. END Test.
  26536. positive: copy statement on array of character
  26537. MODULE Test;
  26538. VAR source, dest: ARRAY 10 OF CHAR;
  26539. BEGIN COPY (source, dest);
  26540. END Test.
  26541. positive: copy statement on array of character and longer array of character
  26542. MODULE Test;
  26543. VAR source: ARRAY 10 OF CHAR; dest: ARRAY 20 OF CHAR;
  26544. BEGIN COPY (source, dest);
  26545. END Test.
  26546. positive: copy statement on array of character and shorter array of character
  26547. MODULE Test;
  26548. VAR source: ARRAY 20 OF CHAR; dest: ARRAY 10 OF CHAR;
  26549. BEGIN source[9] := 0X; COPY (source, dest);
  26550. END Test.
  26551. positive: copy statement on string and longer array of character
  26552. MODULE Test;
  26553. CONST Source = "source";
  26554. VAR dest: ARRAY 10 OF CHAR;
  26555. BEGIN COPY (Source, dest);
  26556. END Test.
  26557. negative: copy statement on string and shorter array of character
  26558. MODULE Test;
  26559. CONST Source = "longer source";
  26560. VAR dest: ARRAY 10 OF CHAR;
  26561. BEGIN COPY (Source, dest);
  26562. END Test.
  26563. negative: copy statement on array of character and string
  26564. MODULE Test;
  26565. CONST Dest = "dest";
  26566. VAR source: ARRAY 10 OF CHAR;
  26567. BEGIN COPY (source, Dest);
  26568. END Test.
  26569. positive: copy statement with array of character parameter as source
  26570. MODULE Test;
  26571. PROCEDURE Procedure (source: ARRAY 10 OF CHAR);
  26572. VAR dest: ARRAY 10 OF CHAR;
  26573. BEGIN COPY (source, dest);
  26574. END Procedure;
  26575. END Test.
  26576. positive: copy statement with variable array of character parameter as source
  26577. MODULE Test;
  26578. PROCEDURE Procedure (VAR source: ARRAY 10 OF CHAR);
  26579. VAR dest: ARRAY 10 OF CHAR;
  26580. BEGIN COPY (source, dest);
  26581. END Procedure;
  26582. END Test.
  26583. positive: copy statement with constant array of character parameter as source
  26584. MODULE Test;
  26585. PROCEDURE Procedure (CONST source: ARRAY 10 OF CHAR);
  26586. VAR dest: ARRAY 10 OF CHAR;
  26587. BEGIN COPY (source, dest);
  26588. END Procedure;
  26589. END Test.
  26590. positive: copy statement with open array of character parameter as source
  26591. MODULE Test;
  26592. PROCEDURE Procedure (source: ARRAY OF CHAR);
  26593. VAR dest: ARRAY 10 OF CHAR;
  26594. BEGIN COPY (source, dest);
  26595. END Procedure;
  26596. END Test.
  26597. positive: copy statement with open variable array of character parameter as source
  26598. MODULE Test;
  26599. PROCEDURE Procedure (VAR source: ARRAY OF CHAR);
  26600. VAR dest: ARRAY 10 OF CHAR;
  26601. BEGIN COPY (source, dest);
  26602. END Procedure;
  26603. END Test.
  26604. positive: copy statement with open constant array of character parameter as source
  26605. MODULE Test;
  26606. PROCEDURE Procedure (CONST source: ARRAY OF CHAR);
  26607. VAR dest: ARRAY 10 OF CHAR;
  26608. BEGIN COPY (source, dest);
  26609. END Procedure;
  26610. END Test.
  26611. positive: copy statement with array of character parameter as destination
  26612. MODULE Test;
  26613. PROCEDURE Procedure (dest: ARRAY 10 OF CHAR);
  26614. VAR source: ARRAY 10 OF CHAR;
  26615. BEGIN COPY (source, dest);
  26616. END Procedure;
  26617. END Test.
  26618. positive: copy statement with variable array of character parameter as destination
  26619. MODULE Test;
  26620. PROCEDURE Procedure (VAR dest: ARRAY 10 OF CHAR);
  26621. VAR source: ARRAY 10 OF CHAR;
  26622. BEGIN COPY (source, dest);
  26623. END Procedure;
  26624. END Test.
  26625. negative: copy statement with constant array of character parameter as destination
  26626. MODULE Test;
  26627. PROCEDURE Procedure (CONST dest: ARRAY 10 OF CHAR);
  26628. VAR source: ARRAY 10 OF CHAR;
  26629. BEGIN COPY (source, dest);
  26630. END Procedure;
  26631. END Test.
  26632. positive: copy statement with open array of character parameter as destination
  26633. MODULE Test;
  26634. PROCEDURE Procedure (dest: ARRAY OF CHAR);
  26635. VAR source: ARRAY 10 OF CHAR;
  26636. BEGIN COPY (source, dest);
  26637. END Procedure;
  26638. END Test.
  26639. positive: copy statement with open variable array of character parameter as destination
  26640. MODULE Test;
  26641. PROCEDURE Procedure (VAR dest: ARRAY OF CHAR);
  26642. VAR source: ARRAY 10 OF CHAR;
  26643. BEGIN COPY (source, dest);
  26644. END Procedure;
  26645. END Test.
  26646. negative: copy statement with open constant array of character parameter as destination
  26647. MODULE Test;
  26648. PROCEDURE Procedure (CONST dest: ARRAY OF CHAR);
  26649. VAR source: ARRAY 10 OF CHAR;
  26650. BEGIN COPY (source, dest);
  26651. END Procedure;
  26652. END Test.
  26653. positive: copy statement with string as source and array of character parameter as destination
  26654. MODULE Test;
  26655. PROCEDURE Procedure (dest: ARRAY 10 OF CHAR);
  26656. BEGIN COPY ("source", dest);
  26657. END Procedure;
  26658. END Test.
  26659. positive: copy statement with string as source and variable array of character parameter as destination
  26660. MODULE Test;
  26661. PROCEDURE Procedure (VAR dest: ARRAY 10 OF CHAR);
  26662. BEGIN COPY ("source", dest);
  26663. END Procedure;
  26664. END Test.
  26665. negative: copy statement with string as source and constant array of character parameter as destination
  26666. MODULE Test;
  26667. PROCEDURE Procedure (CONST dest: ARRAY 10 OF CHAR);
  26668. BEGIN COPY ("source", dest);
  26669. END Procedure;
  26670. END Test.
  26671. positive: copy statement with string as source and open array of character parameter as destination
  26672. MODULE Test;
  26673. PROCEDURE Procedure (dest: ARRAY OF CHAR);
  26674. BEGIN COPY ("source", dest);
  26675. END Procedure;
  26676. END Test.
  26677. positive: copy statement with string as source and open variable array of character parameter as destination
  26678. MODULE Test;
  26679. PROCEDURE Procedure (VAR dest: ARRAY OF CHAR);
  26680. BEGIN COPY ("source", dest);
  26681. END Procedure;
  26682. END Test.
  26683. negative: copy statement with string as source and open constant array of character parameter as destination
  26684. MODULE Test;
  26685. PROCEDURE Procedure (CONST dest: ARRAY OF CHAR);
  26686. BEGIN COPY ("source", dest);
  26687. END Procedure;
  26688. END Test.
  26689. negative: copy statement on array of integer
  26690. MODULE Test;
  26691. VAR source, dest: ARRAY 10 OF INTEGER;
  26692. BEGIN COPY (source, dest);
  26693. END Test.
  26694. negative: copy statement on array of real
  26695. MODULE Test;
  26696. VAR source, dest: ARRAY 10 OF REAL;
  26697. BEGIN COPY (source, dest);
  26698. END Test.
  26699. negative: copy statement on array of set
  26700. MODULE Test;
  26701. VAR source, dest: ARRAY 10 OF SET;
  26702. BEGIN COPY (source, dest);
  26703. END Test.
  26704. negative: copy statement on array of record
  26705. MODULE Test;
  26706. VAR source, dest: ARRAY 10 OF RECORD END;
  26707. BEGIN COPY (source, dest);
  26708. END Test.
  26709. negative: copy statement on array of object
  26710. MODULE Test;
  26711. VAR source, dest: ARRAY 10 OF OBJECT END;
  26712. BEGIN COPY (source, dest);
  26713. END Test.
  26714. negative: copy statement on array of base object
  26715. MODULE Test;
  26716. VAR source, dest: ARRAY 10 OF OBJECT;
  26717. BEGIN COPY (source, dest);
  26718. END Test.
  26719. negative: copy statement on array of pointer to array
  26720. MODULE Test;
  26721. VAR source, dest: ARRAY 10 OF POINTER TO ARRAY OF CHAR;
  26722. BEGIN COPY (source, dest);
  26723. END Test.
  26724. negative: copy statement on array of pointer to record
  26725. MODULE Test;
  26726. VAR source, dest: ARRAY 10 OF POINTER TO RECORD END;
  26727. BEGIN COPY (source, dest);
  26728. END Test.
  26729. negative: copy statement on array of procedure
  26730. MODULE Test;
  26731. VAR source, dest: ARRAY 10 OF PROCEDURE;
  26732. BEGIN COPY (source, dest);
  26733. END Test.
  26734. negative: copy statement on record
  26735. MODULE Test;
  26736. VAR source, dest: RECORD END;
  26737. BEGIN COPY (source, dest);
  26738. END Test.
  26739. negative: copy statement on object
  26740. MODULE Test;
  26741. VAR source, dest: OBJECT END;
  26742. BEGIN COPY (source, dest);
  26743. END Test.
  26744. negative: copy statement on base object
  26745. MODULE Test;
  26746. VAR source, dest: OBJECT;
  26747. BEGIN COPY (source, dest);
  26748. END Test.
  26749. negative: copy statement on pointer to array
  26750. MODULE Test;
  26751. VAR source, dest: POINTER TO ARRAY 10 OF CHAR;
  26752. BEGIN COPY (source, dest);
  26753. END Test.
  26754. negative: copy statement on pointer to record
  26755. MODULE Test;
  26756. VAR source, dest: POINTER TO RECORD END;
  26757. BEGIN COPY (source, dest);
  26758. END Test.
  26759. negative: copy statement on procedure
  26760. MODULE Test;
  26761. VAR source, dest: PROCEDURE;
  26762. BEGIN COPY (source, dest);
  26763. END Test.
  26764. # overriding object procedures
  26765. positive: overriding same object procedure
  26766. MODULE Test;
  26767. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26768. TYPE B = OBJECT (A) PROCEDURE P; END P; END B;
  26769. END Test.
  26770. positive: deep overriding same object procedure
  26771. MODULE Test;
  26772. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26773. TYPE B = OBJECT (A) END B;
  26774. TYPE C = OBJECT (D) PROCEDURE P; END P; END C;
  26775. TYPE D = OBJECT (B) END D;
  26776. END Test.
  26777. negative: deep overriding same object procedure with different return type
  26778. MODULE Test;
  26779. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26780. TYPE B = OBJECT (A) END B;
  26781. TYPE C = OBJECT (D) PROCEDURE P (): A; END P; END C;
  26782. TYPE D = OBJECT (B) END D;
  26783. END Test.
  26784. positive: deep overriding same object procedure with same symbol in-between
  26785. MODULE Test;
  26786. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26787. TYPE B = OBJECT (A) VAR P: A END B;
  26788. TYPE C = OBJECT (D) PROCEDURE P; END P; END C;
  26789. TYPE D = OBJECT (B) END D;
  26790. END Test.
  26791. negative: deep overriding same object procedure with different return type and same symbol in-between
  26792. MODULE Test;
  26793. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26794. TYPE B = OBJECT (A) VAR P: A END B;
  26795. TYPE C = OBJECT (D) PROCEDURE P (): A; END P; END C;
  26796. TYPE D = OBJECT (B) END D;
  26797. END Test.
  26798. negative: overriding same object procedure with one parameter
  26799. MODULE Test;
  26800. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26801. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26802. END Test.
  26803. negative: overriding same object procedure with no parameter
  26804. MODULE Test;
  26805. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26806. TYPE B = OBJECT (A) PROCEDURE P; END P; END B;
  26807. END Test.
  26808. positive: overriding same object procedure with parameter
  26809. MODULE Test;
  26810. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26811. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26812. END Test.
  26813. negative: overriding same object procedure with var parameter
  26814. MODULE Test;
  26815. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26816. TYPE B = OBJECT (A) PROCEDURE P (VAR p: A); END P; END B;
  26817. END Test.
  26818. negative: overriding same object procedure with const parameter
  26819. MODULE Test;
  26820. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26821. TYPE B = OBJECT (A) PROCEDURE P (CONST p: A); END P; END B;
  26822. END Test.
  26823. negative: overriding same object procedure with var parameter with parameter
  26824. MODULE Test;
  26825. TYPE A = OBJECT PROCEDURE P (VAR p: A); END P; END A;
  26826. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26827. END Test.
  26828. positive: overriding same object procedure with var parameter with var parameter
  26829. MODULE Test;
  26830. TYPE A = OBJECT PROCEDURE P (VAR p: A); END P; END A;
  26831. TYPE B = OBJECT (A) PROCEDURE P (VAR p: A); END P; END B;
  26832. END Test.
  26833. negative: overriding same object procedure with var parameter with const parameter
  26834. MODULE Test;
  26835. TYPE A = OBJECT PROCEDURE P (VAR p: A); END P; END A;
  26836. TYPE B = OBJECT (A) PROCEDURE P (CONST p: A); END P; END B;
  26837. END Test.
  26838. negative: overriding same object procedure with const parameter with parameter
  26839. MODULE Test;
  26840. TYPE A = OBJECT PROCEDURE P (CONST p: A); END P; END A;
  26841. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26842. END Test.
  26843. negative: overriding same object procedure with const parameter with var parameter
  26844. MODULE Test;
  26845. TYPE A = OBJECT PROCEDURE P (CONST p: A); END P; END A;
  26846. TYPE B = OBJECT (A) PROCEDURE P (VAR p: A); END P; END B;
  26847. END Test.
  26848. positive: overriding same object procedure with const parameter with const parameter
  26849. MODULE Test;
  26850. TYPE A = OBJECT PROCEDURE P (CONST p: A); END P; END A;
  26851. TYPE B = OBJECT (A) PROCEDURE P (CONST p: A); END P; END B;
  26852. END Test.
  26853. positive: overriding same object procedure with same parameter type
  26854. MODULE Test;
  26855. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26856. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26857. END Test.
  26858. negative: overriding same object procedure with covariant parameter type
  26859. MODULE Test;
  26860. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26861. TYPE B = OBJECT (A) PROCEDURE P (p: B); END P; END B;
  26862. END Test.
  26863. negative: overriding same object procedure with contravariant parameter type
  26864. MODULE Test;
  26865. TYPE A = OBJECT PROCEDURE P (p: B); END P; END A;
  26866. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26867. END Test.
  26868. negative: overriding same object procedure with different parameter type
  26869. MODULE Test;
  26870. TYPE A = OBJECT PROCEDURE P (p: SET); END P; END A;
  26871. TYPE B = OBJECT (A) PROCEDURE P (p: CHAR); END P; END B;
  26872. END Test.
  26873. positive: overriding object procedure with same return type
  26874. MODULE Test;
  26875. TYPE A = OBJECT PROCEDURE P(): A; END P; END A;
  26876. TYPE B = OBJECT (A) PROCEDURE P(): A; END P; END B;
  26877. END Test.
  26878. negative: overriding object procedure with covariant return type
  26879. MODULE Test;
  26880. TYPE A = OBJECT PROCEDURE P(): A; END P; END A;
  26881. TYPE B = OBJECT (A) PROCEDURE P(): B; END P; END B;
  26882. END Test.
  26883. negative: overriding object procedure with contravariant return type
  26884. MODULE Test;
  26885. TYPE A = OBJECT PROCEDURE P(): B; END P; END A;
  26886. TYPE B = OBJECT (A) PROCEDURE P(): A; END P; END B;
  26887. END Test.
  26888. negative: overriding object procedure with different return type
  26889. MODULE Test;
  26890. TYPE A = OBJECT PROCEDURE P(): SET; END P; END A;
  26891. TYPE B = OBJECT (A) PROCEDURE P(): CHAR; END P; END B;
  26892. END Test.
  26893. negative: super call on procedure variable in module
  26894. MODULE Test;
  26895. VAR procedure: PROCEDURE;
  26896. BEGIN procedure^
  26897. END Test.
  26898. negative: super call on procedure variable in procedure
  26899. MODULE Test;
  26900. PROCEDURE Procedure;
  26901. VAR procedure: PROCEDURE;
  26902. BEGIN procedure^
  26903. END Procedure;
  26904. END Test.
  26905. negative: super call on procedure variable in object
  26906. MODULE Test;
  26907. TYPE Object = OBJECT
  26908. VAR procedure: PROCEDURE;
  26909. BEGIN procedure^
  26910. END Object;
  26911. END Test.
  26912. negative: super call on hidden procedure variable in object
  26913. MODULE Test;
  26914. TYPE Base = OBJECT
  26915. VAR procedure: PROCEDURE;
  26916. END Base;
  26917. TYPE Derived = OBJECT (Base)
  26918. BEGIN procedure^
  26919. END Derived;
  26920. END Test.
  26921. negative: super call on hiding procedure variable in object
  26922. MODULE Test;
  26923. TYPE Base = OBJECT
  26924. VAR procedure: PROCEDURE;
  26925. END Base;
  26926. TYPE Derived = OBJECT (Base)
  26927. VAR procedure: PROCEDURE;
  26928. BEGIN procedure^
  26929. END Derived;
  26930. END Test.
  26931. negative: super call to procedure in module
  26932. MODULE Test;
  26933. PROCEDURE Procedure; END Procedure;
  26934. BEGIN Procedure^
  26935. END Test.
  26936. negative: super call to procedure in procedure
  26937. MODULE Test;
  26938. PROCEDURE Procedure;
  26939. PROCEDURE Procedure; END Procedure;
  26940. BEGIN Procedure^
  26941. END Procedure;
  26942. END Test.
  26943. negative: super call to non-overriding procedure in object
  26944. MODULE Test;
  26945. TYPE Object = OBJECT
  26946. PROCEDURE Procedure; END Procedure;
  26947. BEGIN Procedure^
  26948. END Object;
  26949. END Test.
  26950. negative: super call to non-overridden procedure in object
  26951. MODULE Test;
  26952. TYPE Base = OBJECT
  26953. PROCEDURE Procedure; END Procedure;
  26954. END Base;
  26955. TYPE Derived = OBJECT (Base)
  26956. BEGIN Procedure^
  26957. END Derived;
  26958. END Test.
  26959. positive: super call to overridden procedure in object
  26960. MODULE Test;
  26961. TYPE Base = OBJECT
  26962. PROCEDURE Procedure; END Procedure;
  26963. END Base;
  26964. TYPE Derived = OBJECT (Base)
  26965. PROCEDURE Procedure; END Procedure;
  26966. BEGIN Procedure^
  26967. END Derived;
  26968. END Test.
  26969. negative: qualified super call to overridden but non-overriding procedure in object
  26970. MODULE Test;
  26971. TYPE A = OBJECT
  26972. PROCEDURE Procedure; END Procedure;
  26973. END A;
  26974. TYPE B = OBJECT (A)
  26975. PROCEDURE Procedure; END Procedure;
  26976. END B;
  26977. TYPE C = OBJECT (B)
  26978. BEGIN SELF.Procedure^
  26979. END C;
  26980. END Test.
  26981. negative: qualified super call on reference to overridden procedure in object
  26982. MODULE Test;
  26983. TYPE Base = OBJECT
  26984. PROCEDURE Procedure; END Procedure;
  26985. END Base;
  26986. TYPE Derived = OBJECT (Base)
  26987. VAR object: Derived;
  26988. PROCEDURE Procedure; END Procedure;
  26989. BEGIN object.Procedure^
  26990. END Derived;
  26991. END Test.
  26992. negative: qualified super call on reference to overridden procedure in module
  26993. MODULE Test;
  26994. TYPE Base = OBJECT
  26995. PROCEDURE Procedure; END Procedure;
  26996. END Base;
  26997. TYPE Derived = OBJECT (Base)
  26998. PROCEDURE Procedure; END Procedure;
  26999. END Derived;
  27000. VAR object: Derived;
  27001. BEGIN object.Procedure^
  27002. END Test.
  27003. # flags
  27004. negative: procedure illegaly marked delegate
  27005. MODULE Test;
  27006. PROCEDURE {DELEGATE} P; END P;
  27007. END Test.
  27008. negative: procedure illegaly marked untraced
  27009. MODULE Test;
  27010. PROCEDURE {UNTRACED} P; END P;
  27011. END Test.
  27012. positive: pointer to array variable marked untraced
  27013. MODULE Test;
  27014. VAR a {UNTRACED}: POINTER TO ARRAY OF CHAR;
  27015. END Test.
  27016. positive: pointer to record variable marked untraced
  27017. MODULE Test;
  27018. VAR a {UNTRACED}: POINTER TO RECORD END;
  27019. END Test.
  27020. negative: non-pointer variable marked untraced
  27021. MODULE Test;
  27022. VAR a {UNTRACED}: LONGINT;
  27023. END Test.
  27024. negative: variable marked delegate
  27025. MODULE Test;
  27026. VAR a{DELEGATE}: PROCEDURE;
  27027. END Test.
  27028. positive: delegate procedure type
  27029. MODULE Test;
  27030. TYPE TP=PROCEDURE{DELEGATE};
  27031. END Test.
  27032. positive: delegate procedure type with arguments
  27033. MODULE Test;
  27034. TYPE TP=PROCEDURE{DELEGATE}(a: LONGINT): LONGINT;
  27035. END Test.
  27036. positive: delegate procedure variable assignment
  27037. MODULE Test;
  27038. VAR p:PROCEDURE{DELEGATE};
  27039. PROCEDURE P; END P;
  27040. BEGIN p := P
  27041. END Test.
  27042. positive: delegate procedure variable nil assignment
  27043. MODULE Test;
  27044. VAR p: PROCEDURE{DELEGATE};
  27045. BEGIN p := NIL
  27046. END Test.
  27047. positive: delegate procedure variable assignment in exclusive block
  27048. MODULE Test;
  27049. VAR p:PROCEDURE{DELEGATE};
  27050. PROCEDURE P; END P;
  27051. BEGIN {EXCLUSIVE} p := P
  27052. END Test.
  27053. positive: delegate procedure variable nil assignment in exclusive block
  27054. MODULE Test;
  27055. VAR p: PROCEDURE{DELEGATE};
  27056. BEGIN {EXCLUSIVE} p := NIL
  27057. END Test.
  27058. positive: delegate procedure variable assigned to method
  27059. MODULE Test;
  27060. TYPE O=OBJECT PROCEDURE P; END P; END O;
  27061. VAR o:O; p:PROCEDURE{DELEGATE};
  27062. BEGIN p := o.P
  27063. END Test.
  27064. negative: non-delegate procedure variable assigned to method
  27065. MODULE Test;
  27066. TYPE O=OBJECT PROCEDURE P; END P; END O;
  27067. VAR o:O; p:PROCEDURE;
  27068. BEGIN p := o.P
  27069. END Test.
  27070. # signatures
  27071. positive: signature matching extension of object
  27072. MODULE Test;
  27073. TYPE O=OBJECT
  27074. PROCEDURE P; END P;
  27075. PROCEDURE Q(i: INTEGER); END Q;
  27076. PROCEDURE R(i: LONGINT): LONGINT; END R;
  27077. END O;
  27078. TYPE OO=OBJECT(O);
  27079. PROCEDURE P; END P;
  27080. PROCEDURE Q(i: INTEGER); END Q;
  27081. PROCEDURE R(i: LONGINT): LONGINT; END R;
  27082. END OO;
  27083. END Test.
  27084. negative: extension of objects with nonmatching signature: parameter incompatible
  27085. MODULE Test;
  27086. TYPE O=OBJECT
  27087. PROCEDURE P(i: INTEGER); END P;
  27088. END O;
  27089. TYPE OO=OBJECT(O)
  27090. PROCEDURE P(i: LONGINT); END P;
  27091. END OO;
  27092. END Test.
  27093. positive: extension of object matching signature: constructor extends non-constructor
  27094. MODULE Test;
  27095. TYPE O=OBJECT
  27096. PROCEDURE P; END P;
  27097. END O;
  27098. TYPE OO=OBJECT(O);
  27099. PROCEDURE &P; END P;
  27100. END OO;
  27101. END Test.
  27102. negative: extension of object with nonmatching signature: non-constructor extends constructor
  27103. MODULE Test;
  27104. TYPE O=OBJECT
  27105. PROCEDURE &P; END P;
  27106. END O;
  27107. TYPE OO=OBJECT(O);
  27108. PROCEDURE P; END P;
  27109. END OO;
  27110. END Test.
  27111. positive: non-exported constructor used in same module
  27112. MODULE Dummy;
  27113. TYPE O*=OBJECT
  27114. PROCEDURE & Init (x: LONGINT; CONST y: ARRAY OF CHAR);
  27115. END Init;
  27116. END O;
  27117. VAR o:O;
  27118. BEGIN
  27119. NEW(o,10,"test")
  27120. END Dummy.
  27121. negative: non-exported constructor used as method in different module
  27122. MODULE Test;
  27123. IMPORT Dummy;
  27124. VAR a: Dummy.O;
  27125. BEGIN
  27126. a.Init(10,"test")
  27127. END Test.
  27128. negative: non-exported constructor used as constructor in different module
  27129. MODULE Test;
  27130. IMPORT Dummy;
  27131. VAR a: Dummy.O;
  27132. BEGIN
  27133. NEW(a,10,"test");
  27134. END Test.
  27135. positive: non-exported constructor overwritten by new constructor with different name in different module
  27136. MODULE Test;
  27137. IMPORT Dummy;
  27138. TYPE O=OBJECT (Dummy.O)
  27139. PROCEDURE & InitX(a,b: LONGINT); END InitX;
  27140. END O;
  27141. VAR a: O;
  27142. BEGIN
  27143. NEW(a,10,20);
  27144. END Test.
  27145. positive: non-exported constructor overwritten by new constructor with same name in different module
  27146. MODULE Test;
  27147. IMPORT Dummy;
  27148. TYPE O=OBJECT (Dummy.O)
  27149. PROCEDURE & Init(a,b: LONGINT); END Init;
  27150. END O;
  27151. VAR a: O;
  27152. BEGIN
  27153. NEW(a,10,20);
  27154. END Test.
  27155. positive: exported constructor used in same module
  27156. MODULE Dummy;
  27157. TYPE O*=OBJECT
  27158. PROCEDURE & Init* (x: LONGINT; CONST y: ARRAY OF CHAR);
  27159. END Init;
  27160. END O;
  27161. VAR o:O;
  27162. BEGIN
  27163. NEW(o,10,"test")
  27164. END Dummy.
  27165. positive: exported constructor used as method in different module
  27166. MODULE Test;
  27167. IMPORT Dummy;
  27168. VAR a: Dummy.O;
  27169. BEGIN
  27170. a.Init(10,"test")
  27171. END Test.
  27172. positive: exported constructor used as constructor in different module
  27173. MODULE Test;
  27174. IMPORT Dummy;
  27175. VAR a: Dummy.O;
  27176. BEGIN
  27177. NEW(a,10,"test");
  27178. END Test.
  27179. positive: exported constructor overwritten by new constructor with different name and non-matching signature in different module
  27180. MODULE Test;
  27181. IMPORT Dummy;
  27182. TYPE O=OBJECT (Dummy.O)
  27183. PROCEDURE & InitX(a,b: LONGINT); END InitX;
  27184. END O;
  27185. VAR a: O;
  27186. BEGIN
  27187. NEW(a,10,20);
  27188. END Test.
  27189. negative: non-exported constructor overwritten by new constructor with same name and non-matching signature in different module
  27190. MODULE Test;
  27191. IMPORT Dummy;
  27192. TYPE O=OBJECT (Dummy.O)
  27193. PROCEDURE & Init(a,b: LONGINT); END Init;
  27194. END O;
  27195. END Test.
  27196. positive: non-exported constructor overwritten by new constructor with same name and matching signature in different module
  27197. MODULE Test;
  27198. IMPORT Dummy;
  27199. TYPE O=OBJECT (Dummy.O)
  27200. PROCEDURE & Init(a: LONGINT; CONST name: ARRAY OF CHAR); END Init;
  27201. END O;
  27202. VAR a: O;
  27203. BEGIN
  27204. NEW(a,10,"test");
  27205. END Test.
  27206. negative: new on object with non-exported constructor with empty parameter list
  27207. MODULE Dummy;
  27208. TYPE O*=OBJECT
  27209. PROCEDURE & Init;
  27210. END Init;
  27211. END O;
  27212. END Dummy.
  27213. MODULE Test;
  27214. IMPORT Dummy;
  27215. VAR o: Dummy.O;
  27216. BEGIN NEW(o)
  27217. END Test.
  27218. # realtime objects
  27219. positive: plain realtime object
  27220. MODULE Test;
  27221. TYPE A = OBJECT {REALTIME} END A;
  27222. END Test.
  27223. positive: realtime pointer to record
  27224. MODULE Test;
  27225. TYPE A = POINTER {REALTIME} TO RECORD END;
  27226. END Test.
  27227. positive: realtime pointer to array
  27228. MODULE Test;
  27229. TYPE A = POINTER {REALTIME} TO ARRAY OF CHAR;
  27230. END Test.
  27231. positive: realtime object containing basic type fields
  27232. MODULE Test;
  27233. IMPORT SYSTEM;
  27234. TYPE A = OBJECT {REALTIME}
  27235. VAR a0: CHAR8; a1: CHAR16; a2: CHAR32; a3: SHORTINT; a4: INTEGER; a5: LONGINT; a6: HUGEINT; a7: REAL;
  27236. a8: LONGREAL; a9: BOOLEAN; a10: SET; a11: ADDRESS; a12:SIZE; a13: SYSTEM.BYTE;
  27237. END A;
  27238. END Test.
  27239. positive: realtime pointer to record that contains basic type fields
  27240. MODULE Test;
  27241. IMPORT SYSTEM;
  27242. TYPE A = POINTER {REALTIME} TO RECORD
  27243. a0: CHAR8; a1: CHAR16; a2: CHAR32; a3: SHORTINT; a4: INTEGER; a5: LONGINT; a6: HUGEINT; a7: REAL;
  27244. a8: LONGREAL; a9: BOOLEAN; a10: SET; a11: ADDRESS; a12:SIZE; a13: SYSTEM.BYTE;
  27245. END;
  27246. END Test.
  27247. positive: realtime pointer to array where the elements contain basic type fields
  27248. MODULE Test;
  27249. IMPORT SYSTEM;
  27250. TYPE A0 = POINTER {REALTIME} TO ARRAY OF RECORD
  27251. a0: CHAR8; a1: CHAR16; a2: CHAR32; a3: SHORTINT; a4: INTEGER; a5: LONGINT; a6: HUGEINT; a7: REAL;
  27252. a8: LONGREAL; a9: BOOLEAN; a10: SET; a11: ADDRESS; a12:SIZE; a13: SYSTEM.BYTE;
  27253. END;
  27254. END Test.
  27255. positive: realtime object containing enumeration type field
  27256. MODULE Test;
  27257. TYPE Color = ENUM red, green, blue END;
  27258. RTObject = OBJECT {REALTIME} VAR color: Color; END RTObject;
  27259. END Test.
  27260. positive: realtime object containing non-basic type realtime fields
  27261. MODULE Test;
  27262. TYPE A = OBJECT {REALTIME} END A;
  27263. B = OBJECT {REALTIME} VAR a: A; b: B; END B;
  27264. END Test.
  27265. positive: realtime pointer to record that contains non-basic type fields
  27266. MODULE Test;
  27267. TYPE A = POINTER {REALTIME} TO RECORD END;
  27268. B = POINTER {REALTIME} TO RECORD a: A; b: B END;
  27269. END Test.
  27270. positive: realtime pointer to array where the elements contain non-basic realtime fields
  27271. MODULE Test;
  27272. TYPE A = POINTER {REALTIME} TO RECORD END;
  27273. B = POINTER {REALTIME} TO ARRAY OF RECORD a: A; b: B END;
  27274. END Test.
  27275. negative: realtime object containing non-realtime any pointer
  27276. MODULE Test;
  27277. TYPE A = OBJECT {REALTIME} VAR a0: ANY END A;
  27278. END Test;
  27279. negative: realtime object containing non-realtime pointer to record
  27280. MODULE Test;
  27281. TYPE A = OBJECT {REALTIME} VAR a0: POINTER TO RECORD END END A;
  27282. END Test;
  27283. negative: realtime object containing non-realtime pointer to array
  27284. MODULE Test;
  27285. TYPE A = OBJECT {REALTIME} VAR a0: POINTER TO ARRAY OF CHAR END A;
  27286. END Test;
  27287. negative: realtime object containing non-realtime object reference
  27288. MODULE Test;
  27289. TYPE A = OBJECT END A;
  27290. B = OBJECT {REALTIME} b: A END B;
  27291. END Test;
  27292. positive: realtime object containing record variable with realtime fields
  27293. MODULE Test;
  27294. TYPE A = OBJECT {REALTIME} VAR a: RECORD k: SHORTINT; l: INTEGER; m: A END END A;
  27295. END Test.
  27296. positive: realtime object containing record variable with realtime pointers
  27297. MODULE Test;
  27298. TYPE A = OBJECT {REALTIME} VAR a: RECORD p0: POINTER {REALTIME} TO RECORD END;
  27299. p1: POINTER {REALTIME} TO ARRAY OF CHAR; END; END A;
  27300. END Test.
  27301. negative: realtime object containing record variable with a non-realtime any pointer
  27302. MODULE Test;
  27303. TYPE A = OBJECT {REALTIME} VAR a: RECORD p: ANY END; END A;
  27304. END Test.
  27305. negative: realtime object containing record variable with a non-realtime record pointer
  27306. MODULE Test;
  27307. TYPE A = OBJECT {REALTIME} VAR a: RECORD p: POINTER TO RECORD END; END; END A;
  27308. END Test.
  27309. negative: realtime object containing record variable with a non-realtime array pointer
  27310. MODULE Test;
  27311. TYPE A = OBJECT {REALTIME} VAR a: RECORD p: POINTER TO ARRAY OF CHAR END; END A;
  27312. END Test.
  27313. positive: non-realtime object containing reference to realtime object
  27314. MODULE Test;
  27315. TYPE A = OBJECT {REALTIME} VAR a0: LONGINT; a1: CHAR; END A;
  27316. B = OBJECT VAR a: A; END B;
  27317. END Test.
  27318. positive: extension of realtime object declared as realtime object
  27319. MODULE Test;
  27320. TYPE A = OBJECT {REALTIME} VAR a0: CHAR; a1: SET; END A;
  27321. B = OBJECT {REALTIME} (A) VAR b0: INTEGER; b1: LONGINT; END B;
  27322. END Test.
  27323. positive: variable of realtime pointer to record type
  27324. MODULE Test;
  27325. VAR p: POINTER {REALTIME} TO RECORD k, l: LONGINT END;
  27326. END Test.
  27327. positive: variable of realtime pointer to array type
  27328. MODULE Test;
  27329. VAR p: POINTER {REALTIME} TO ARRAY OF BOOLEAN;
  27330. END Test.
  27331. negative: realtime extension of non-realtime object
  27332. MODULE Test;
  27333. TYPE A = OBJECT VAR a0: CHAR; a1: SET; END A;
  27334. B = OBJECT {REALTIME} (A) VAR b0: INTEGER; b1: LONGINT; END B;
  27335. END Test.
  27336. negative: non-realtime extension of realtime object
  27337. MODULE Test;
  27338. TYPE A = OBJECT {REALTIME} VAR a0: CHAR; a1: SET; END A;
  27339. B = OBJECT (A) VAR b0: INTEGER; b1: LONGINT; END B;
  27340. END Test.
  27341. positive: record extensions - both record types are implicit realtime objects
  27342. MODULE Test;
  27343. TYPE A = RECORD a0: CHAR; a1: SET; END;
  27344. B = RECORD (A) b0: INTEGER; b1: LONGINT; END;
  27345. AP = POINTER {REALTIME} TO A;
  27346. BP = POINTER {REALTIME} TO B;
  27347. END Test.
  27348. negative: record extensions - only base type is realtime object
  27349. MODULE Test;
  27350. TYPE A = RECORD a0: CHAR; a1: SET; END;
  27351. B = RECORD (A) b0: INTEGER; b1: ANY; END;
  27352. AP = POINTER {REALTIME} TO A;
  27353. BP = POINTER {REALTIME} TO B;
  27354. END Test.
  27355. positive: extension of realtime pointer
  27356. MODULE Test;
  27357. TYPE R = RECORD r0, r1: LONGINT; END;
  27358. P = POINTER {REALTIME} TO Q;
  27359. Q = RECORD (R) q0, q1: LONGINT; END;
  27360. S = OBJECT {REALTIME} (P) VAR s0, s1: LONGINT; END S;
  27361. END Test.
  27362. positive: module Dummy for realtime and non-realtime types
  27363. MODULE Dummy;
  27364. TYPE RTRec* = RECORD r0: LONGINT; r1: CHAR; END;
  27365. NRTRec* = RECORD n0: LONGINT; n1: ANY; END;
  27366. RTO* = OBJECT {REALTIME} VAR m0: SET; END RTO;
  27367. NRTO0* = OBJECT VAR p: ANY; END NRTO0;
  27368. NRTO1* = OBJECT VAR k: LONGINT; END NRTO1;
  27369. END Dummy.
  27370. positive: realtime pointer to (realtime) record from imported module
  27371. MODULE Test;
  27372. IMPORT Dummy;
  27373. TYPE RTPtr = POINTER {REALTIME} TO Dummy.RTRec;
  27374. END Test.
  27375. positive: non-realtime pointer to (non-realtime) record from imported module
  27376. MODULE Test;
  27377. IMPORT Dummy;
  27378. TYPE NRTPtr = POINTER TO Dummy.NRTRec;
  27379. END Test.
  27380. positive: non-realtime pointer to (realtime) record from imported module
  27381. MODULE Test;
  27382. IMPORT Dummy;
  27383. TYPE NRTPtr = POINTER TO Dummy.RTRec;
  27384. END Test.
  27385. negative: realtime pointer to (non-realtime) record from imported module
  27386. MODULE Test;
  27387. IMPORT Dummy;
  27388. TYPE RTPtr = POINTER {REALTIME} TO Dummy.NRTRec;
  27389. END Test.
  27390. positive: realtime extension of imported realtime object
  27391. MODULE Test;
  27392. IMPORT Dummy;
  27393. TYPE RTE = OBJECT {REALTIME} (Dummy.RTO) VAR t0: POINTER {REALTIME} TO ARRAY OF CHAR; END RTE;
  27394. END Test.
  27395. negative: non-realtime extension of imported realtime object
  27396. MODULE Test;
  27397. IMPORT Dummy;
  27398. TYPE NRTE = OBJECT (Dummy.RTO) VAR k: LONGINT; END NRTE;
  27399. END Test.
  27400. positive: non-realtime extension of imported non-realtime object that contains non-realtime fields
  27401. MODULE Test;
  27402. IMPORT Dummy;
  27403. TYPE NRTE = OBJECT (Dummy.NRTO0) VAR c: CHAR; END NRTE;
  27404. END Test.
  27405. positive: non-realtime extension of imported non-realtime object that contains only realtime fields
  27406. MODULE Test;
  27407. IMPORT Dummy;
  27408. TYPE NRTE = OBJECT (Dummy.NRTO1) VAR c: CHAR; END NRTE;
  27409. END Test.
  27410. # realtime procedures
  27411. positive: procedure marked as realtime
  27412. MODULE Test;
  27413. PROCEDURE {REALTIME} P; END P;
  27414. END Test.
  27415. positive: calling realtime procedure in non-realtime procedure
  27416. MODULE Test;
  27417. PROCEDURE {REALTIME} RTP; END RTP;
  27418. PROCEDURE NRTP; BEGIN RTP; END NRTP;
  27419. END Test.
  27420. positive: recursive call of realtime procedure
  27421. MODULE Test;
  27422. PROCEDURE {REALTIME} RTP; BEGIN RTP; END RTP;
  27423. END Test.
  27424. negative: calling non-realtime procedure in realtime procedure
  27425. MODULE Test;
  27426. PROCEDURE NRTP; END NRTP;
  27427. PROCEDURE {REALTIME} RTP; BEGIN NRTP; END RTP;
  27428. END Test.
  27429. negative: new statement in realtime procedure
  27430. MODULE Test;
  27431. PROCEDURE {REALTIME} P;
  27432. VAR p: POINTER TO RECORD END;
  27433. BEGIN NEW (p);
  27434. END P;
  27435. END Test.
  27436. negative: exclusive block in realtime procedure
  27437. MODULE Test;
  27438. PROCEDURE {REALTIME} P;
  27439. BEGIN {EXCLUSIVE}
  27440. END P;
  27441. END Test.
  27442. negative: await statement in realtime procedure
  27443. MODULE Test;
  27444. VAR condition: BOOLEAN;
  27445. PROCEDURE {REALTIME} P;
  27446. BEGIN AWAIT (condition);
  27447. END P;
  27448. END Test.
  27449. positive: realtime procedure variable to non-realtime procedure variable assignment
  27450. MODULE Test;
  27451. VAR rtp: PROCEDURE {REALTIME}; nrtp: PROCEDURE;
  27452. BEGIN nrtp := rtp;
  27453. END Test.
  27454. positive: realtime procedure variable to realtime procedure variable assignment
  27455. MODULE Test;
  27456. VAR rtp: PROCEDURE {REALTIME};
  27457. BEGIN rtp := rtp;
  27458. END Test.
  27459. negative: non-realtime procedure variable to realtime procedure variable assignment
  27460. MODULE Test;
  27461. VAR rtp: PROCEDURE {REALTIME}; nrtp: PROCEDURE;
  27462. BEGIN rtp := nrtp;
  27463. END Test.
  27464. negative: module body marked as realtime
  27465. MODULE Test;
  27466. BEGIN {REALTIME}
  27467. END Test.
  27468. negative: procedure body marked as realtime
  27469. MODULE Test;
  27470. PROCEDURE P;
  27471. BEGIN {REALTIME}
  27472. END P;
  27473. END Test.
  27474. positive: passive object body marked as realtime
  27475. MODULE Test;
  27476. TYPE Object = OBJECT
  27477. BEGIN {REALTIME}
  27478. END Object;
  27479. END Test.
  27480. positive: calling realtime procedure in passive object body marked as realtime
  27481. MODULE Test;
  27482. TYPE Object = OBJECT {REALTIME}
  27483. PROCEDURE {REALTIME} P; END P;
  27484. BEGIN {REALTIME} P;
  27485. END Object;
  27486. END Test.
  27487. negative: calling non-realtime procedure in passive object body marked as realtime
  27488. MODULE Test;
  27489. TYPE Object = OBJECT
  27490. PROCEDURE P; END P;
  27491. BEGIN {REALTIME} P;
  27492. END Object;
  27493. END Test.
  27494. positive: active object body marked as realtime
  27495. MODULE Test;
  27496. TYPE Object = OBJECT
  27497. BEGIN {ACTIVE, REALTIME}
  27498. END Object;
  27499. END Test.
  27500. positive: calling realtime procedure in active object body marked as realtime
  27501. MODULE Test;
  27502. TYPE Object = OBJECT {REALTIME}
  27503. PROCEDURE {REALTIME} P; END P;
  27504. BEGIN {ACTIVE, REALTIME} P;
  27505. END Object;
  27506. END Test.
  27507. negative: declaring realtime procedure/method in non-realtime object
  27508. MODULE Test;
  27509. TYPE A = OBJECT
  27510. PROCEDURE {REALTIME} P;
  27511. END P;
  27512. END A;
  27513. END Test.
  27514. negative: calling non-realtime procedure in active object body marked as realtime
  27515. MODULE Test;
  27516. TYPE Object = OBJECT
  27517. PROCEDURE P; END P;
  27518. BEGIN {ACTIVE, REALTIME} P;
  27519. END Object;
  27520. END Test.
  27521. positive: overwriting realtime procedure with realtime procedure
  27522. MODULE Test;
  27523. TYPE Base = OBJECT {REALTIME}
  27524. PROCEDURE {REALTIME} P; END P;
  27525. END Base;
  27526. TYPE Object = OBJECT {REALTIME} (Base)
  27527. PROCEDURE {REALTIME} P; END P;
  27528. END Object;
  27529. END Test.
  27530. negative: overwriting non-realtime procedure with realtime procedure
  27531. MODULE Test;
  27532. TYPE Base = OBJECT {REALTIME}
  27533. PROCEDURE P; END P;
  27534. END Base;
  27535. TYPE Object = OBJECT {REALTIME} (Base)
  27536. PROCEDURE {REALTIME} P; END P;
  27537. END Object;
  27538. END Test.
  27539. negative: overwriting realtime procedure with non-realtime procedure
  27540. MODULE Test;
  27541. TYPE Base = OBJECT {REALTIME}
  27542. PROCEDURE {REALTIME} P; END P;
  27543. END Base;
  27544. TYPE Object = OBJECT {REALTIME} (Base)
  27545. PROCEDURE P; END P;
  27546. END Object;
  27547. END Test.
  27548. positive: exporting realtime procedure
  27549. MODULE Dummy;
  27550. PROCEDURE {REALTIME} P*;
  27551. BEGIN END P;
  27552. PROCEDURE {REALTIME} Pp*(i: LONGINT);
  27553. BEGIN END Pp;
  27554. PROCEDURE Q*;
  27555. BEGIN END Q;
  27556. END Dummy.
  27557. positive: using imported realtime procedure in realtime and non-realtime procedure
  27558. MODULE Test;
  27559. IMPORT Dummy;
  27560. PROCEDURE {REALTIME} P;
  27561. BEGIN Dummy.P; Dummy.Pp(10)
  27562. END P;
  27563. PROCEDURE Q;
  27564. BEGIN Dummy.P
  27565. END Q;
  27566. END Test.
  27567. negative: using imported non-realtime procedure in realtime procedure
  27568. MODULE Test;
  27569. IMPORT Dummy;
  27570. PROCEDURE {REALTIME} P;
  27571. BEGIN Dummy.Q; Dummy.Pp(10)
  27572. END P;
  27573. END Test.
  27574. positive: use of basic type realtime variables and parameters in realtime procedure
  27575. MODULE Test;
  27576. PROCEDURE {REALTIME} P(VAR k: LONGINT);
  27577. VAR l: SET;
  27578. BEGIN l:= {}; k:= 5;
  27579. END P;
  27580. END Test.
  27581. positive: use of structured realtime variables in realtime procedure
  27582. MODULE Test;
  27583. TYPE A = OBJECT {REALTIME} VAR k, l: LONGINT END A;
  27584. PROCEDURE {REALTIME} P(VAR a: A);
  27585. BEGIN a.k := 0; a.l := 0;
  27586. END P;
  27587. END Test.
  27588. negative: use of non-realtime variables in realtime procedure
  27589. MODULE Test;
  27590. PROCEDURE {REALTIME} P(VAR a: POINTER TO ARRAY OF CHAR);
  27591. VAR i: LONGINT
  27592. BEGIN FOR i := 0 TO LEN(a) DO a[i] := '' END;
  27593. END P;
  27594. END Test.
  27595. positive: use of string constant (of implicit realtime type) in realtime procedure
  27596. MODULE Test;
  27597. PROCEDURE {REALTIME} P;
  27598. VAR a: ARRAY 10 OF CHAR;
  27599. BEGIN a := "AA";
  27600. END P;
  27601. END Test.
  27602. positive: module Dummy for realtime and non-realtime types and variables
  27603. MODULE Dummy;
  27604. TYPE RTRec* = RECORD i*: LONGINT; END;
  27605. NRTRec* = RECORD p*: ANY; END;
  27606. RTO* = OBJECT {REALTIME} VAR s: SET; END RTO;
  27607. NRTO* = OBJECT VAR p: ANY; END NRTO;
  27608. VAR rtrec*: RTRec;
  27609. nrtrec*: NRTRec;
  27610. PROCEDURE {REALTIME} P*;
  27611. END P;
  27612. PROCEDURE Q*;
  27613. END Q;
  27614. END Dummy.
  27615. positive: use of imported realtime type in realtime procedure
  27616. MODULE Test;
  27617. IMPORT Dummy;
  27618. PROCEDURE {REALTIME} P(VAR r: Dummy.RTO);
  27619. END P;
  27620. END Test.
  27621. negative: use of imported non-realtime type in realtime procedure
  27622. MODULE Test;
  27623. IMPORT Dummy;
  27624. PROCEDURE {REALTIME} P(VAR n: Dummy.NRTO);
  27625. END P;
  27626. END Test.
  27627. positive: use of imported realtime variable in realtime procedure
  27628. MODULE Test;
  27629. IMPORT Dummy;
  27630. PROCEDURE {REALTIME} P;
  27631. BEGIN Dummy.rtrec.i := 0;
  27632. END P;
  27633. END Test.
  27634. negative: use of imported non-realtime variable in realtime procedure
  27635. MODULE Test;
  27636. IMPORT Dummy;
  27637. PROCEDURE {REALTIME} P;
  27638. BEGIN Dummy.nrtrec.p := NIL;
  27639. END P;
  27640. END Test.
  27641. positive: use of imported realtime variable in non-realtime procedure
  27642. MODULE Test;
  27643. IMPORT Dummy;
  27644. PROCEDURE P;
  27645. BEGIN Dummy.rtrec.i := 0;
  27646. END P;
  27647. END Test.
  27648. positive: use of imported non-realtime variable in non-realtime procedure
  27649. MODULE Test;
  27650. IMPORT Dummy;
  27651. PROCEDURE P;
  27652. BEGIN Dummy.nrtrec.p := NIL;
  27653. END P;
  27654. END Test.
  27655. positive: realtime procedure used as parameter in realtime procedure
  27656. MODULE Test;
  27657. TYPE RTPT = PROCEDURE {REALTIME};
  27658. VAR rtp: PROCEDURE {REALTIME};
  27659. PROCEDURE {REALTIME} P(rtp: RTPT);
  27660. END P;
  27661. BEGIN P(rtp);
  27662. END Test.
  27663. negative: non-realtime procedure as parameter in realtime procedure
  27664. MODULE Test;
  27665. TYPE RTPT = PROCEDURE {REALTIME};
  27666. VAR rtp: PROCEDURE;
  27667. PROCEDURE {REALTIME} P(rtp: RTPT);
  27668. END P;
  27669. BEGIN P(rtp);
  27670. END Test.
  27671. positive: realtime procedure used as var-parameter in realtime procedure
  27672. MODULE Test;
  27673. TYPE RTPT = PROCEDURE {REALTIME};
  27674. VAR rtp: PROCEDURE {REALTIME};
  27675. PROCEDURE {REALTIME} P(VAR rtp: RTPT);
  27676. END P;
  27677. BEGIN P(rtp);
  27678. END Test.
  27679. negative: use of exclusive section in realtime module procedure
  27680. MODULE Test;
  27681. PROCEDURE {REALTIME} P;
  27682. BEGIN {EXCLUSIVE}
  27683. END P;
  27684. END Test.
  27685. # handling of untraced flag
  27686. positive: untraced flag on pointer to record
  27687. MODULE Test;
  27688. TYPE P= POINTER TO RECORD END;
  27689. VAR x {UNTRACED}: P;
  27690. END Test.
  27691. positive: untraced flag on object
  27692. MODULE Test;
  27693. TYPE P= OBJECT END P;
  27694. VAR x {UNTRACED}: P;
  27695. END Test.
  27696. positive: untraced flag on pointer to array
  27697. MODULE Test;
  27698. TYPE P=POINTER TO ARRAY OF CHAR;
  27699. VAR x {UNTRACED}: P;
  27700. END Test.
  27701. positive: untraced flag on delegate procedure
  27702. MODULE Test;
  27703. TYPE P=PROCEDURE {DELEGATE};
  27704. VAR x {UNTRACED}: P;
  27705. END Test.
  27706. negative: untraced flag on basic type
  27707. MODULE Test;
  27708. TYPE P=LONGINT;
  27709. VAR x{UNTRACED}: P;
  27710. END Test.
  27711. negative: untraced flag on procedure type
  27712. MODULE Test;
  27713. TYPE P= PROCEDURE;
  27714. VAR x{UNTRACED}: P;
  27715. END Test.
  27716. negative: untraced flag on record type;
  27717. MODULE Test;
  27718. TYPE P=RECORD END;
  27719. VAR x{UNTRACED}: P;
  27720. END Test.
  27721. #miscellaneous
  27722. positive: system address type size
  27723. MODULE Test;
  27724. IMPORT SYSTEM;
  27725. VAR a: LONGINT;
  27726. BEGIN a := SIZEOF(ADDRESS)
  27727. END Test.
  27728. negative: system address function on size-incompatible type
  27729. MODULE Test;
  27730. IMPORT SYSTEM;
  27731. VAR a: SHORTINT;
  27732. BEGIN a := SYSTEM.ADR(a)
  27733. END Test.
  27734. positive: system address function on size-compatible type
  27735. MODULE Test;
  27736. IMPORT SYSTEM;
  27737. VAR a: HUGEINT;
  27738. BEGIN a := SYSTEM.ADR(a)
  27739. END Test.
  27740. positive: unsigned system address function
  27741. MODULE Test;
  27742. IMPORT SYSTEM;
  27743. VAR a: ADDRESS;
  27744. BEGIN a := SYSTEM.ADR(a)
  27745. END Test.
  27746. positive: mixture of 32 and 8 bit types implying high register pressure by using an array
  27747. MODULE Test;
  27748. VAR b: ARRAY 2 OF CHAR; a: LONGINT; ch: CHAR;
  27749. BEGIN
  27750. b[a] := CHR(((a MOD 0AH) + 30H))
  27751. END Test.
  27752. positive: system.val
  27753. MODULE Test;
  27754. IMPORT SYSTEM;
  27755. VAR a: LONGINT; b: REAL; c: POINTER TO ARRAY OF CHAR; i: INTEGER; ch: CHAR;
  27756. BEGIN
  27757. a := SYSTEM.VAL(LONGINT,a);
  27758. a := SYSTEM.VAL(LONGINT,c);
  27759. a := SYSTEM.VAL(LONGINT,b);
  27760. a := SYSTEM.VAL(LONGINT,i);
  27761. a := SYSTEM.VAL(LONGINT,ch);
  27762. END Test.
  27763. positive: shift of unsigned type by signed value
  27764. MODULE Test;
  27765. IMPORT SYSTEM;
  27766. VAR ebx: SET;
  27767. BEGIN
  27768. ebx := LSH(ebx, -16)
  27769. END Test.
  27770. positive: shift of unsigned type by signed variable
  27771. MODULE Test;
  27772. IMPORT SYSTEM;
  27773. VAR ebx: SET; a: LONGINT;
  27774. BEGIN
  27775. ebx := LSH(ebx, a)
  27776. END Test.
  27777. positive: assignment of converted unsigned type to signed type
  27778. MODULE Test;
  27779. IMPORT SYSTEM;
  27780. VAR ebx: SET; a,i: LONGINT;
  27781. BEGIN
  27782. i := SYSTEM.VAL(LONGINT, LSH(ebx * {16..23}, -16));
  27783. END Test.
  27784. positive: getprocedure builtin call
  27785. MODULE Test;
  27786. TYPE
  27787. R= RECORD END;
  27788. MyO= OBJECT END MyO;
  27789. VAR
  27790. p: PROCEDURE;
  27791. q: PROCEDURE(r: R);
  27792. r: PROCEDURE():MyO;
  27793. s: PROCEDURE(p: MyO): MyO;
  27794. t: PROCEDURE(p:MyO);
  27795. u: PROCEDURE(r: R): MyO;
  27796. BEGIN
  27797. GETPROCEDURE("TestModule","TestProcedure",p);
  27798. GETPROCEDURE("X","Y",p);
  27799. GETPROCEDURE("TestModule","TestProcedure",p);
  27800. GETPROCEDURE("TestModule","TestProcedure",q);
  27801. GETPROCEDURE("TestModule","TestProcedure",r);
  27802. GETPROCEDURE("TestModule","TestProcedure",t);
  27803. GETPROCEDURE("TestModule","TestProcedure",s);
  27804. GETPROCEDURE("TestModule","TestProcedure",u);
  27805. END Test.
  27806. negative: procedure call designator returning nil as index
  27807. MODULE Test;
  27808. VAR a: ARRAY 32 OF CHAR; c: CHAR;
  27809. PROCEDURE P;
  27810. BEGIN
  27811. END P;
  27812. BEGIN
  27813. c := a[P()];
  27814. END Test.
  27815. negative: procedure call designator returning nil in binary expression
  27816. MODULE Test;
  27817. VAR a,b: LONGINT;
  27818. PROCEDURE P;
  27819. BEGIN
  27820. END P;
  27821. BEGIN
  27822. a := b + P();
  27823. END Test.
  27824. positive: module exporting procedure variable with return type
  27825. MODULE Dummy;
  27826. VAR
  27827. p-: PROCEDURE(a,b: LONGINT): LONGINT;
  27828. END Dummy.
  27829. positive: module importing procedure variable with return type
  27830. MODULE Test;
  27831. IMPORT Dummy;
  27832. VAR a: LONGINT;
  27833. BEGIN
  27834. a := a + Dummy.p(0,0);
  27835. END Test.
  27836. positive: passing NIL parameter on WINAPI string parameter
  27837. MODULE Test;
  27838. IMPORT SYSTEM;
  27839. VAR
  27840. p: PROCEDURE{WINAPI}(CONST a: ARRAY OF CHAR);
  27841. BEGIN
  27842. p(NIL);
  27843. END Test.
  27844. positive: SYSTEM.TYPECODE on records, pointer to record and object
  27845. MODULE Test;
  27846. IMPORT SYSTEM;
  27847. TYPE
  27848. R1=RECORD END; R2=RECORD (R1) END;
  27849. P1= POINTER TO RECORD END; P2=POINTER TO RECORD (P1) END;
  27850. O1 = OBJECT END O1; O2=OBJECT(O1) END O2;
  27851. PROCEDURE P(VAR r: R1; p: P1; o: O1);
  27852. VAR a: ADDRESS;
  27853. BEGIN
  27854. IF r IS R2 THEN END;
  27855. a := SYSTEM.TYPECODE(R2);
  27856. IF p IS P2 THEN END;
  27857. a := SYSTEM.TYPECODE(P2);
  27858. IF o IS O2 THEN END;
  27859. a := SYSTEM.TYPECODE(O2);
  27860. END P;
  27861. END Test.
  27862. negative: SYSTEM.TYPECODE with basic type
  27863. MODULE Test;
  27864. IMPORT SYSTEM;
  27865. TYPE
  27866. T = INTEGER;
  27867. VAR
  27868. a: LONGINT;
  27869. BEGIN
  27870. a:= SYSTEM.TYPECODE(T);
  27871. END Test.
  27872. negative: SYSTEM.TYPECODE with ANY type
  27873. MODULE Test;
  27874. IMPORT SYSTEM;
  27875. TYPE
  27876. T = ANY;
  27877. VAR
  27878. a: LONGINT;
  27879. BEGIN
  27880. a:= SYSTEM.TYPECODE(T);
  27881. END Test.
  27882. negative: SYSTEM.TYPECODE with OBJECT type
  27883. MODULE Test;
  27884. IMPORT SYSTEM;
  27885. TYPE
  27886. T = OBJECT;
  27887. VAR
  27888. a: LONGINT;
  27889. BEGIN
  27890. a:= SYSTEM.TYPECODE(T);
  27891. END Test.
  27892. negative: SYSTEM.TYPECODE with static array
  27893. MODULE Test;
  27894. IMPORT SYSTEM;
  27895. TYPE
  27896. T = ARRAY 32 OF CHAR;
  27897. VAR
  27898. a: LONGINT;
  27899. BEGIN
  27900. a:= SYSTEM.TYPECODE(T);
  27901. END Test.
  27902. negative: SYSTEM.TYPECODE with pointer to static array
  27903. MODULE Test;
  27904. IMPORT SYSTEM;
  27905. TYPE
  27906. T = POINTER TO ARRAY 32 OF LONGINT;
  27907. VAR
  27908. a: LONGINT;
  27909. BEGIN
  27910. a:= SYSTEM.TYPECODE(T);
  27911. END Test.
  27912. negative: SYSTEM.TYPECODE with pointer to dynamic array without pointers
  27913. MODULE Test;
  27914. IMPORT SYSTEM;
  27915. TYPE
  27916. T = POINTER TO ARRAY OF LONGINT;
  27917. VAR
  27918. a: LONGINT;
  27919. BEGIN
  27920. a:= SYSTEM.TYPECODE(T);
  27921. END Test.
  27922. positive: SYSTEM.HALT statement
  27923. MODULE Test;
  27924. IMPORT SYSTEM;
  27925. BEGIN
  27926. SYSTEM.HALT(100);
  27927. SYSTEM.HALT(10);
  27928. END Test.
  27929. positive: HALT statement with small parameter
  27930. MODULE Test;
  27931. BEGIN HALT(14)
  27932. END Test.
  27933. positive: pass a one and two character array as string and pass one array character as character
  27934. MODULE Test;
  27935. PROCEDURE P(CONST s: ARRAY OF CHAR);
  27936. BEGIN END P;
  27937. PROCEDURE Q(CONST c: CHAR);
  27938. BEGIN END Q;
  27939. BEGIN P("a"); P("ab"); Q("a"); P('a'); P('ab'); Q('a');
  27940. END Test.
  27941. positive: assign one character array to character
  27942. MODULE Test;
  27943. VAR a: CHAR;
  27944. BEGIN a := "a"
  27945. END Test.
  27946. negative: assign a character to a string
  27947. MODULE Test;
  27948. VAR a: ARRAY 2 OF CHAR;
  27949. BEGIN a := 0X;
  27950. END Test.
  27951. negative: pass a character value as a string
  27952. MODULE Test;
  27953. PROCEDURE P(CONST a: ARRAY OF CHAR);
  27954. BEGIN END P;
  27955. BEGIN P(0X);
  27956. END Test.
  27957. positive: assign a string of length zero to variable parameter
  27958. MODULE Test;
  27959. PROCEDURE P(VAR a: ARRAY OF CHAR);
  27960. BEGIN
  27961. a := "";
  27962. END P;
  27963. END Test.
  27964. positive: index array of record and pass as parameter
  27965. MODULE Test;
  27966. TYPE R=RECORD END;
  27967. VAR a: ARRAY 32 OF R;
  27968. PROCEDURE P(CONST r: R);
  27969. BEGIN END P;
  27970. BEGIN P(a[10]);
  27971. END Test.
  27972. positive: export of a type
  27973. MODULE Dummy;
  27974. TYPE R*=RECORD END;
  27975. END Dummy.
  27976. positive: reexport a type
  27977. MODULE Test;
  27978. IMPORT Dummy;
  27979. PROCEDURE P*(VAR r: Dummy.R);
  27980. BEGIN END P;
  27981. END Test.
  27982. positive: new on pointer to array containing pointers (any)
  27983. MODULE Test;
  27984. VAR a: POINTER TO ARRAY OF ANY;
  27985. BEGIN NEW(a,10) END Test.
  27986. positive: new on pointer to array containing pointers (delegates)
  27987. MODULE Test;
  27988. TYPE delegate = PROCEDURE{DELEGATE}(x: LONGINT);
  27989. VAR a: POINTER TO ARRAY OF delegate;
  27990. BEGIN NEW(a,10) END Test.
  27991. positive: new on pointer to array containing pointers (objects)
  27992. MODULE Test;
  27993. TYPE object = OBJECT END object;
  27994. VAR a: POINTER TO ARRAY OF object;
  27995. BEGIN NEW(a,10) END Test.
  27996. positive: new on pointer to array containing pointers (record with pointer)
  27997. MODULE Test;
  27998. TYPE
  27999. r1 = RECORD a: LONGINT; b: POINTER TO r1 END;
  28000. r2 = RECORD r: r1 END;
  28001. record = RECORD (r2) b: LONGINT END;
  28002. VAR a: POINTER TO ARRAY OF record;
  28003. BEGIN NEW(a,10) END Test.
  28004. positive: export object with field
  28005. MODULE Dummy;
  28006. TYPE
  28007. Volume* = OBJECT
  28008. VAR size-: LONGINT
  28009. END Volume;
  28010. END Dummy.
  28011. positive: import object with field
  28012. MODULE Test;
  28013. IMPORT Dummy;
  28014. TYPE
  28015. File = OBJECT
  28016. VAR
  28017. vol: Dummy.Volume;
  28018. PROCEDURE P;
  28019. VAR size: LONGINT;
  28020. BEGIN
  28021. size := vol.size;
  28022. END P;
  28023. END File;
  28024. END Test.
  28025. positive: export string value
  28026. MODULE Dummy;
  28027. CONST str*="myString";
  28028. END Dummy.
  28029. positive: import and use string value
  28030. MODULE Test;
  28031. IMPORT Dummy;
  28032. PROCEDURE P(str: ARRAY OF CHAR);
  28033. BEGIN
  28034. END P;
  28035. BEGIN P(Dummy.str);
  28036. END Test.
  28037. positive: boolean in record designator in pointer to array
  28038. MODULE Test;
  28039. TYPE
  28040. R= RECORD a,b: BOOLEAN END;
  28041. P= POINTER TO ARRAY OF R;
  28042. B= ARRAY 20 OF BOOLEAN;
  28043. VAR p:P; b:B;
  28044. BEGIN ASSERT(p[10].b); ASSERT(b[10]);
  28045. END Test.
  28046. positive: formal array of system.byte parameter used with basic actual parameter
  28047. MODULE Test;
  28048. IMPORT SYSTEM;
  28049. VAR a: ARRAY 32 OF CHAR; b: LONGINT;
  28050. PROCEDURE P(CONST a: ARRAY OF SYSTEM.BYTE);
  28051. BEGIN
  28052. END P;
  28053. BEGIN P(a); P(b); P(a[0]);
  28054. END Test.
  28055. positive: module exporting OBJECT
  28056. MODULE Dummy;
  28057. VAR a*: OBJECT;
  28058. END Dummy.
  28059. positive: module importing OBJECT
  28060. MODULE Test;
  28061. IMPORT Dummy;
  28062. PROCEDURE P(a: OBJECT);
  28063. BEGIN
  28064. END P;
  28065. BEGIN P(Dummy.a);
  28066. END Test.
  28067. positive: binary MIN function
  28068. MODULE Test;
  28069. CONST min = MIN(10,20);
  28070. VAR a,b: LONGINT; r1,r2: REAL;
  28071. BEGIN
  28072. a := MIN(a,b);
  28073. r1 := MIN(r1,r2);
  28074. a := MIN(a,256);
  28075. r1 := MIN(r1,20);
  28076. r1 := MIN(2.0,200);
  28077. ASSERT(MIN(1,10)=1);
  28078. ASSERT(MIN(-10,10)=-10);
  28079. END Test.
  28080. positive: binary MAX function
  28081. MODULE Test;
  28082. CONST min = MAX(10,20);
  28083. VAR a,b: LONGINT; r1,r2: REAL;
  28084. BEGIN
  28085. a := MAX(a,b);
  28086. r1 := MAX(r1,r2);
  28087. a := MAX(a,256);
  28088. r1 := MAX(r1,20);
  28089. r1 := MAX(2.0,200);
  28090. ASSERT(MAX(1,10)=10);
  28091. ASSERT(MAX(-10,10)=10);
  28092. END Test.
  28093. positive: method returning a delegate type
  28094. MODULE Test;
  28095. IMPORT SYSTEM;
  28096. TYPE Proc = PROCEDURE{DELEGATE};
  28097. TYPE O= OBJECT
  28098. VAR
  28099. PROCEDURE P;
  28100. BEGIN END P;
  28101. PROCEDURE Q(): Proc;
  28102. BEGIN
  28103. RETURN P;
  28104. END Q;
  28105. END O;
  28106. VAR x: Proc; o:O;
  28107. BEGIN x := o.Q(); x:= x;
  28108. END Test.
  28109. positive: type test on pointer returned by procedure
  28110. MODULE Test;
  28111. TYPE O = OBJECT END O;
  28112. PROCEDURE P(): OBJECT; BEGIN RETURN NIL; END P;
  28113. BEGIN ASSERT(P() IS O);
  28114. END Test.
  28115. positive: delegate array element assignment
  28116. MODULE Test;
  28117. IMPORT SYSTEM;
  28118. TYPE Handler= PROCEDURE{DELEGATE};
  28119. VAR
  28120. handlers: ARRAY 6 OF Handler; h: Handler;
  28121. BEGIN handlers[3] := h;
  28122. END Test.
  28123. positive: large stack size
  28124. MODULE Test;
  28125. CONST stackSize = 10000H;
  28126. PROCEDURE P;
  28127. VAR a: ARRAY stackSize OF CHAR;
  28128. BEGIN
  28129. END P;
  28130. PROCEDURE Q;
  28131. VAR a: ARRAY 100 OF CHAR;
  28132. BEGIN
  28133. END Q;
  28134. END Test.
  28135. positive: shortint variable multiplied by shortint value (8bit multiply)
  28136. MODULE Test;
  28137. PROCEDURE P;
  28138. VAR a: SHORTINT;
  28139. BEGIN
  28140. IF a = a*3 THEN END;
  28141. END P;
  28142. END Test.
  28143. positive: with statement on object field
  28144. MODULE Test;
  28145. TYPE Object = OBJECT VAR a: LONGINT; END Object;
  28146. TYPE Object2 = OBJECT (Object) VAR a: Object; END Object2;
  28147. TYPE Object3 = OBJECT VAR a: Object; BEGIN WITH a: Object2 DO a.a.a := a.a.a; END; END Object3;
  28148. END Test.
  28149. negative: access to different instance of a with-guarded variable
  28150. MODULE Test;
  28151. TYPE A = OBJECT END A;
  28152. TYPE B = OBJECT (A)
  28153. VAR a: A;
  28154. BEGIN WITH a: B DO a.a.a := NIL END;
  28155. END B;
  28156. END Test.
  28157. positive: use of SYSTEM.NEW
  28158. MODULE Test;
  28159. IMPORT SYSTEM;
  28160. VAR any: ANY;
  28161. BEGIN SYSTEM.NEW(any,100);
  28162. END Test.
  28163. positive: expression involving a reordering of floating point stack
  28164. MODULE Test;
  28165. VAR x,y: LONGREAL;
  28166. PROCEDURE Sqrt(x: REAL): REAL;
  28167. BEGIN END Sqrt;
  28168. BEGIN
  28169. x := x*y + Sqrt(SHORT(x)) + x*y;
  28170. END Test.
  28171. positive: use string length with different lengths (to check side-effects on length field in string value)
  28172. MODULE Test;
  28173. TYPE
  28174. String = ARRAY 128 OF CHAR;
  28175. PROCEDURE PutBareName ( VAR name : String);
  28176. VAR ix : LONGINT;
  28177. BEGIN
  28178. WHILE (ix<LEN(name)) DO END;
  28179. END PutBareName;
  28180. PROCEDURE AddUserToName (VAR thisName : String);
  28181. VAR pos : INTEGER;
  28182. BEGIN
  28183. IF pos < LEN (thisName) THEN END;
  28184. END AddUserToName;
  28185. END Test.
  28186. positive: SYSTEM.BYTE varpar
  28187. MODULE Test;
  28188. IMPORT SYSTEM;
  28189. VAR c: CHAR;
  28190. PROCEDURE P(VAR x: SYSTEM.BYTE);
  28191. BEGIN
  28192. END P;
  28193. BEGIN
  28194. P(c);
  28195. END Test.
  28196. positive: write a SYSTEM.BYTE varpar without conversion
  28197. MODULE Test;
  28198. IMPORT SYSTEM;
  28199. PROCEDURE P(VAR buf: SYSTEM.BYTE);
  28200. VAR s1,s2: SHORTINT;
  28201. BEGIN
  28202. buf := s2*16 + (s1 MOD 16)
  28203. END P;
  28204. END Test.
  28205. positive: use a value for a the address in SYSTEM.GET
  28206. MODULE Test;
  28207. IMPORT SYSTEM;
  28208. PROCEDURE P(VAR buf: SYSTEM.BYTE);
  28209. VAR adr: ADDRESS;
  28210. BEGIN
  28211. adr := 0;
  28212. SYSTEM.GET (040EH, SYSTEM.VAL (INTEGER, adr)); (* EBDA address *)
  28213. END P;
  28214. END Test.
  28215. negative: use a non variable for destination in SYSTEM.GET
  28216. MODULE Test;
  28217. IMPORT SYSTEM;
  28218. PROCEDURE P(VAR buf: SYSTEM.BYTE);
  28219. VAR adr: ADDRESS;
  28220. BEGIN
  28221. SYSTEM.GET (adr, adr+1); (* EBDA address *)
  28222. END P;
  28223. END Test.
  28224. positive: negative values in address
  28225. MODULE Test;
  28226. IMPORT SYSTEM;
  28227. VAR a: ADDRESS;
  28228. BEGIN
  28229. a := -1;
  28230. END Test.
  28231. positive: negative values in address in SYSTEM.GET
  28232. MODULE Test;
  28233. IMPORT SYSTEM;
  28234. VAR a: LONGINT;
  28235. BEGIN
  28236. SYSTEM.GET(-1,a)
  28237. END Test.
  28238. positive: ugly system.val with records
  28239. MODULE Test;
  28240. IMPORT SYSTEM;
  28241. TYPE Record= RECORD a,b: LONGINT END;
  28242. PROCEDURE P(VAR r: Record);
  28243. VAR a: LONGINT;
  28244. BEGIN
  28245. P(SYSTEM.VAL(Record,a));
  28246. END P;
  28247. PROCEDURE Q(r: Record);
  28248. VAR a: LONGINT;
  28249. BEGIN
  28250. Q(SYSTEM.VAL(Record,a));
  28251. END Q;
  28252. END Test.
  28253. positive: call an empty inline code
  28254. MODULE Test;
  28255. IMPORT SYSTEM;
  28256. PROCEDURE -P;
  28257. CODE{SYSTEM.i386}
  28258. END P;
  28259. BEGIN P;
  28260. END Test.
  28261. positive: export inline code with reference to (local) constant
  28262. MODULE Test;
  28263. IMPORT SYSTEM;
  28264. PROCEDURE -P*;
  28265. CONST const=16;
  28266. CODE{SYSTEM.i386}
  28267. MOV EAX,const
  28268. END P;
  28269. END Test.
  28270. positive: export and import real number
  28271. MODULE A;
  28272. CONST
  28273. e*=1.2345D0;
  28274. END A.
  28275. MODULE Test;
  28276. IMPORT A;
  28277. CONST e=1.2345D0;
  28278. BEGIN
  28279. ASSERT(A.e = e);
  28280. END Test.
  28281. positive: addition of ADDRESS and SIZE
  28282. MODULE Test;
  28283. IMPORT SYSTEM;
  28284. VAR a: ADDRESS; s: SIZE;
  28285. BEGIN
  28286. a := a + s;
  28287. END Test.
  28288. positive: implicit HUGEINT conversion in comparison
  28289. MODULE Test;
  28290. VAR h: HUGEINT;
  28291. BEGIN
  28292. IF h < 0 THEN END
  28293. END Test.
  28294. positive: ADDRESS as variable in for loop
  28295. MODULE Test;
  28296. IMPORT SYSTEM;
  28297. VAR a,b,i: ADDRESS;
  28298. BEGIN
  28299. FOR i := a TO b DO
  28300. END;
  28301. END Test.
  28302. positive: subtract a ADDRESS from ADDRESS
  28303. MODULE Test;
  28304. IMPORT SYSTEM;
  28305. VAR a,b: ADDRESS; size: SIZE;
  28306. BEGIN
  28307. size := a-b;
  28308. size := -size
  28309. END Test.
  28310. negative: LONG conversion on ADDRESS
  28311. MODULE Test;
  28312. IMPORT SYSTEM;
  28313. VAR a: ADDRESS; v: HUGEINT;
  28314. BEGIN
  28315. v := LONG(a)
  28316. END Test.
  28317. positive: add negative value to ADDRESS
  28318. MODULE Test;
  28319. IMPORT SYSTEM;
  28320. VAR a: ADDRESS;
  28321. CONST const = -4;
  28322. BEGIN
  28323. a := a + const;
  28324. END Test.
  28325. positive: unary negation of ADDRESS
  28326. MODULE Test;
  28327. IMPORT SYSTEM;
  28328. VAR a: ADDRESS;
  28329. BEGIN
  28330. a := a + (-a) MOD 4;
  28331. END Test.
  28332. positive: export and import ADDRESS parameter
  28333. MODULE A;
  28334. IMPORT SYSTEM;
  28335. PROCEDURE P*(VAR a: ADDRESS);
  28336. BEGIN
  28337. END P;
  28338. END A.
  28339. MODULE Test;
  28340. IMPORT SYSTEM,A;
  28341. VAR a: ADDRESS;
  28342. BEGIN A.P(a)
  28343. END Test.
  28344. positive: use ADDRESS as array index
  28345. MODULE Test;
  28346. IMPORT SYSTEM;
  28347. VAR a: ADDRESS; b: ARRAY 32 OF ADDRESS;
  28348. BEGIN b[a] := b[a]
  28349. END Test.
  28350. positive: long jumps (backend test for TRM)
  28351. MODULE Test;
  28352. PROCEDURE LongJumpBackwards;
  28353. VAR a,b,c: LONGINT;
  28354. BEGIN
  28355. REPEAT
  28356. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28357. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28358. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28359. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28360. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28361. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28362. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28363. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28364. UNTIL a<b
  28365. END LongJumpBackwards;
  28366. PROCEDURE LongJumpForwards;
  28367. VAR a,b,c: LONGINT;
  28368. BEGIN
  28369. IF a>=b THEN
  28370. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28371. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28372. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28373. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28374. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28375. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28376. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28377. a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c; a := b + c;
  28378. END;
  28379. END LongJumpForwards;
  28380. END Test.
  28381. positive: expressions of type real with longint divisions
  28382. MODULE Test;
  28383. PROCEDURE Do*(x: REAL): REAL;
  28384. VAR v: REAL;
  28385. BEGIN
  28386. v := x * (x * (x * (x * ((11 / 11520) - x * (1 / 14400)) - 583 / 69120) + 14597 / 276480) - 156409 / 737280) + 381773117 / 928972800;
  28387. RETURN v;
  28388. END Do;
  28389. END Test.
  28390. negative: invalid arrow designator
  28391. MODULE Test;
  28392. VAR s: ARRAY 128 OF CHAR;
  28393. BEGIN
  28394. COPY("WMClock.Open~", s)^;
  28395. END Test.
  28396. positive: tests of MIN and MAX
  28397. MODULE Test;
  28398. PROCEDURE TestMinMax*();
  28399. BEGIN
  28400. ASSERT(-128 = MIN(SHORTINT)); ASSERT(127 = MAX(SHORTINT));
  28401. ASSERT(-32768 = MIN(INTEGER)); ASSERT(32767 = MAX(INTEGER));
  28402. ASSERT(-2147483648 = MIN(LONGINT)); ASSERT(2147483647 = MAX(LONGINT));
  28403. ASSERT(-9223372036854775807-1 = MIN(HUGEINT)); ASSERT(9223372036854775807 = MAX(HUGEINT));
  28404. ASSERT(-128 = MIN(SIGNED8)); ASSERT(127 = MAX(SIGNED8));
  28405. ASSERT(-32768 = MIN(SIGNED16)); ASSERT(32767 = MAX(SIGNED16));
  28406. ASSERT(-2147483648 = MIN(SIGNED32)); ASSERT(2147483647 = MAX(SIGNED32));
  28407. ASSERT(-9223372036854775807 -1 = MIN(SIGNED64)); ASSERT(9223372036854775807 = MAX(SIGNED64));
  28408. ASSERT(0 = MIN(UNSIGNED8)); ASSERT(255 = MAX(UNSIGNED8));
  28409. ASSERT(0 = MIN(UNSIGNED16)); ASSERT(65535 = MAX(UNSIGNED16));
  28410. ASSERT(0 = MIN(UNSIGNED32)); ASSERT(4294967295 = MAX(UNSIGNED32));
  28411. ASSERT(0 = MIN(UNSIGNED64)); ASSERT(SIGNED64(-1) = MAX(UNSIGNED64));
  28412. END TestMinMax;
  28413. BEGIN
  28414. END Test.
  28415. negative: conversion float to unsigned data type
  28416. MODULE Test;
  28417. VAR real: REAL;
  28418. VAR unsigned8: UNSIGNED8;
  28419. BEGIN
  28420. unsigned8 := UNSIGNED8(real);
  28421. END Test.
  28422. negative: use array of size for array size
  28423. MODULE Test;
  28424. CONST Data = [10,20];
  28425. VAR a: ARRAY LEN(Data) OF LONGINT;
  28426. END Test.
  28427. positive: use array size for array size
  28428. MODULE Test;
  28429. CONST Data = [10,20];
  28430. VAR a: ARRAY LEN(Data,0) OF LONGINT;
  28431. END Test.