Oberon.Compilation.Test 849 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432
  1. # Oberon language test and validation suite
  2. # options --command="Compiler.Compile -p=Win32G 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 (object);
  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 (-{0..Result} = {})
  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. # variables
  6236. positive: unmarked variable
  6237. MODULE Test;
  6238. VAR variable: RECORD END;
  6239. END Test.
  6240. positive: initializing unmarked variable
  6241. MODULE Test;
  6242. VAR variable: INTEGER;
  6243. BEGIN variable := 0
  6244. END Test.
  6245. positive: unmarked variable within procedure
  6246. MODULE Test;
  6247. PROCEDURE Procedure;
  6248. VAR variable: RECORD END;
  6249. END Procedure;
  6250. END Test.
  6251. positive: initializing unmarked variable within procedure
  6252. MODULE Test;
  6253. PROCEDURE Procedure;
  6254. VAR variable: INTEGER;
  6255. BEGIN variable := 0
  6256. END Procedure;
  6257. END Test.
  6258. positive: unmarked variable within nested procedure
  6259. MODULE Test;
  6260. PROCEDURE Procedure;
  6261. PROCEDURE Procedure;
  6262. VAR variable: RECORD END;
  6263. END Procedure;
  6264. END Procedure;
  6265. END Test.
  6266. positive: initializing unmarked variable within nested procedure
  6267. MODULE Test;
  6268. PROCEDURE Procedure;
  6269. PROCEDURE Procedure;
  6270. VAR variable: INTEGER;
  6271. BEGIN variable := 0
  6272. END Procedure;
  6273. END Procedure;
  6274. END Test.
  6275. positive: unmarked variable within record
  6276. MODULE Test;
  6277. TYPE Record = RECORD
  6278. variable: RECORD END;
  6279. END;
  6280. END Test.
  6281. positive: initializing unmarked variable within record
  6282. MODULE Test;
  6283. TYPE Record = RECORD
  6284. variable: INTEGER;
  6285. END;
  6286. VAR record: Record;
  6287. BEGIN record.variable := 0
  6288. END Test.
  6289. positive: unmarked variable within object
  6290. MODULE Test;
  6291. TYPE Object = OBJECT
  6292. VAR variable: RECORD END;
  6293. END Object;
  6294. END Test.
  6295. positive: initializing unmarked variable within object
  6296. MODULE Test;
  6297. TYPE Object = OBJECT
  6298. VAR variable: INTEGER;
  6299. BEGIN variable := 0
  6300. END Object;
  6301. END Test.
  6302. positive: unmarked variable within record in procedure
  6303. MODULE Test;
  6304. PROCEDURE Procedure;
  6305. TYPE Record = RECORD
  6306. variable: RECORD END;
  6307. END;
  6308. END Procedure;
  6309. END Test.
  6310. positive: initializing unmarked variable within record in procedure
  6311. MODULE Test;
  6312. PROCEDURE Procedure;
  6313. TYPE Record = RECORD
  6314. variable: INTEGER;
  6315. END;
  6316. VAR record: Record;
  6317. BEGIN record.variable := 0
  6318. END Procedure;
  6319. END Test.
  6320. positive: unmarked variable within object in procedure
  6321. MODULE Test;
  6322. PROCEDURE Procedure;
  6323. TYPE Object = OBJECT
  6324. VAR variable: RECORD END;
  6325. END Object;
  6326. END Procedure;
  6327. END Test.
  6328. positive: initializing unmarked variable within object in procedure
  6329. MODULE Test;
  6330. PROCEDURE Procedure;
  6331. TYPE Object = OBJECT
  6332. VAR variable: INTEGER;
  6333. BEGIN variable := 0
  6334. END Object;
  6335. END Procedure;
  6336. END Test.
  6337. positive: unmarked variable within procedure in object
  6338. MODULE Test;
  6339. TYPE Object = OBJECT
  6340. PROCEDURE Procedure;
  6341. VAR variable: RECORD END;
  6342. END Procedure;
  6343. END Object;
  6344. END Test.
  6345. positive: initializing unmarked variable within procedure in object
  6346. MODULE Test;
  6347. TYPE Object = OBJECT
  6348. PROCEDURE Procedure;
  6349. VAR variable: INTEGER;
  6350. BEGIN variable := 0
  6351. END Procedure;
  6352. END Object;
  6353. END Test.
  6354. positive: variable marked as exported
  6355. MODULE Test;
  6356. VAR variable*: RECORD END;
  6357. END Test.
  6358. positive: initializing variable marked as exported
  6359. MODULE Test;
  6360. VAR variable*: INTEGER;
  6361. BEGIN variable := 0
  6362. END Test.
  6363. negative: variable marked as exported within procedure
  6364. MODULE Test;
  6365. PROCEDURE Procedure;
  6366. VAR variable*: RECORD END;
  6367. END Procedure;
  6368. END Test.
  6369. negative: variable marked as exported within nested procedure
  6370. MODULE Test;
  6371. PROCEDURE Procedure;
  6372. PROCEDURE Procedure;
  6373. VAR variable*: RECORD END;
  6374. END Procedure;
  6375. END Procedure;
  6376. END Test.
  6377. positive: variable marked as exported within record
  6378. MODULE Test;
  6379. TYPE Record = RECORD
  6380. variable*: RECORD END;
  6381. END;
  6382. END Test.
  6383. positive: initializing variable marked as exported within record
  6384. MODULE Test;
  6385. TYPE Record = RECORD
  6386. variable*: INTEGER;
  6387. END;
  6388. VAR record: Record;
  6389. BEGIN record.variable := 0
  6390. END Test.
  6391. positive: variable marked as exported within object
  6392. MODULE Test;
  6393. TYPE Object = OBJECT
  6394. VAR variable*: RECORD END;
  6395. END Object;
  6396. END Test.
  6397. positive: initializing variable marked as exported within object
  6398. MODULE Test;
  6399. TYPE Object = OBJECT
  6400. VAR variable*: INTEGER;
  6401. BEGIN variable := 0
  6402. END Object;
  6403. END Test.
  6404. negative: variable marked as exported within record in procedure
  6405. MODULE Test;
  6406. PROCEDURE Procedure;
  6407. TYPE Record = RECORD
  6408. variable*: RECORD END;
  6409. END;
  6410. END Procedure;
  6411. END Test.
  6412. negative: variable marked as exported within object in procedure
  6413. MODULE Test;
  6414. PROCEDURE Procedure;
  6415. TYPE Object = OBJECT
  6416. VAR variable*: RECORD END;
  6417. END Object;
  6418. END Procedure;
  6419. END Test.
  6420. negative: variable marked as exported within procedure in object
  6421. MODULE Test;
  6422. TYPE Object = OBJECT
  6423. PROCEDURE Procedure;
  6424. VAR variable*: RECORD END;
  6425. END Procedure;
  6426. END Object;
  6427. END Test.
  6428. positive: variable marked as read-only
  6429. MODULE Test;
  6430. VAR variable-: RECORD END;
  6431. END Test.
  6432. positive: initializing variable marked as read-only
  6433. MODULE Test;
  6434. VAR variable-: INTEGER;
  6435. BEGIN variable := 0
  6436. END Test.
  6437. negative: variable marked as read-only within procedure
  6438. MODULE Test;
  6439. PROCEDURE Procedure;
  6440. VAR variable-: RECORD END;
  6441. END Procedure;
  6442. END Test.
  6443. negative: variable marked as read-only within nested procedure
  6444. MODULE Test;
  6445. PROCEDURE Procedure;
  6446. PROCEDURE Procedure;
  6447. VAR variable-: RECORD END;
  6448. END Procedure;
  6449. END Procedure;
  6450. END Test.
  6451. positive: variable marked as read-only within record
  6452. MODULE Test;
  6453. TYPE Record = RECORD
  6454. variable-: RECORD END;
  6455. END;
  6456. END Test.
  6457. positive: initializing variable marked as read-only within record
  6458. MODULE Test;
  6459. TYPE Record = RECORD
  6460. variable-: INTEGER;
  6461. END;
  6462. VAR record: Record;
  6463. BEGIN record.variable := 0
  6464. END Test.
  6465. positive: variable marked as read-only within object
  6466. MODULE Test;
  6467. TYPE Object = OBJECT
  6468. VAR variable-: RECORD END;
  6469. END Object;
  6470. END Test.
  6471. positive: initializing variable marked as read-only within object
  6472. MODULE Test;
  6473. TYPE Object = OBJECT
  6474. VAR variable-: INTEGER;
  6475. BEGIN variable := 0
  6476. END Object;
  6477. END Test.
  6478. negative: variable marked as read-only within record in procedure
  6479. MODULE Test;
  6480. PROCEDURE Procedure;
  6481. TYPE Record = RECORD
  6482. variable-: RECORD END;
  6483. END;
  6484. END Procedure;
  6485. END Test.
  6486. negative: variable marked as read-only within object in procedure
  6487. MODULE Test;
  6488. PROCEDURE Procedure;
  6489. TYPE Object = OBJECT
  6490. VAR variable-: RECORD END;
  6491. END Object;
  6492. END Procedure;
  6493. END Test.
  6494. negative: variable marked as read-only within procedure in object
  6495. MODULE Test;
  6496. TYPE Object = OBJECT
  6497. PROCEDURE Procedure;
  6498. VAR variable-: RECORD END;
  6499. END Procedure;
  6500. END Object;
  6501. END Test.
  6502. negative: duplicated variable
  6503. MODULE Test;
  6504. VAR variable: LONGINT;
  6505. VAR variable: RECORD END;
  6506. END Test.
  6507. negative: duplicated variable within procedure
  6508. MODULE Test;
  6509. PROCEDURE Procedure;
  6510. VAR variable: LONGINT;
  6511. VAR variable: RECORD END;
  6512. END Procedure;
  6513. END Test.
  6514. negative: duplicated variable within nested procedure
  6515. MODULE Test;
  6516. PROCEDURE Procedure;
  6517. PROCEDURE Procedure;
  6518. VAR variable: LONGINT;
  6519. VAR variable: RECORD END;
  6520. END Procedure;
  6521. END Procedure;
  6522. END Test.
  6523. negative: duplicated variable within record
  6524. MODULE Test;
  6525. TYPE Record = RECORD
  6526. variable: LONGINT;
  6527. variable: RECORD END;
  6528. END;
  6529. END Test.
  6530. negative: duplicated variable within object
  6531. MODULE Test;
  6532. TYPE Object = OBJECT
  6533. VAR variable: LONGINT;
  6534. VAR variable: RECORD END;
  6535. END Object;
  6536. END Test.
  6537. negative: duplicated variable within record in procedure
  6538. MODULE Test;
  6539. PROCEDURE Procedure;
  6540. TYPE Record = RECORD
  6541. variable: LONGINT;
  6542. variable: RECORD END;
  6543. END;
  6544. END Procedure;
  6545. END Test.
  6546. negative: duplicated variable within object in procedure
  6547. MODULE Test;
  6548. PROCEDURE Procedure;
  6549. TYPE Object = OBJECT
  6550. VAR variable: LONGINT;
  6551. VAR variable: RECORD END;
  6552. END Object;
  6553. END Procedure;
  6554. END Test.
  6555. negative: duplicated variable within procedure in object
  6556. MODULE Test;
  6557. TYPE Object = OBJECT
  6558. PROCEDURE Procedure;
  6559. VAR variable: LONGINT;
  6560. VAR variable: RECORD END;
  6561. END Procedure;
  6562. END Object;
  6563. END Test.
  6564. negative: duplicated variable in same declaration
  6565. MODULE Test;
  6566. VAR variable, variable: LONGINT;
  6567. END Test.
  6568. negative: duplicated variable in same declaration within procedure
  6569. MODULE Test;
  6570. PROCEDURE Procedure;
  6571. VAR variable, variable: LONGINT;
  6572. END Procedure;
  6573. END Test.
  6574. negative: duplicated variable in same declaration within nested procedure
  6575. MODULE Test;
  6576. PROCEDURE Procedure;
  6577. PROCEDURE Procedure;
  6578. VAR variable, variable: LONGINT;
  6579. END Procedure;
  6580. END Procedure;
  6581. END Test.
  6582. negative: duplicated variable in same declaration within record
  6583. MODULE Test;
  6584. TYPE Record = RECORD
  6585. variable, variable: LONGINT;
  6586. END;
  6587. END Test.
  6588. negative: duplicated variable in same declaration within object
  6589. MODULE Test;
  6590. TYPE Object = OBJECT
  6591. VAR variable, variable: LONGINT;
  6592. END Object;
  6593. END Test.
  6594. negative: duplicated variable in same declaration within record in procedure
  6595. MODULE Test;
  6596. PROCEDURE Procedure;
  6597. TYPE Record = RECORD
  6598. variable, variable: LONGINT;
  6599. END;
  6600. END Procedure;
  6601. END Test.
  6602. negative: duplicated variable in same declaration within object in procedure
  6603. MODULE Test;
  6604. PROCEDURE Procedure;
  6605. TYPE Object = OBJECT
  6606. VAR variable, variable: LONGINT;
  6607. END Object;
  6608. END Procedure;
  6609. END Test.
  6610. negative: duplicated variable in same declaration within procedure in object
  6611. MODULE Test;
  6612. TYPE Object = OBJECT
  6613. PROCEDURE Procedure;
  6614. VAR variable, variable: LONGINT;
  6615. END Procedure;
  6616. END Object;
  6617. END Test.
  6618. negative: import as variable
  6619. MODULE Test;
  6620. IMPORT Import := Dummy;
  6621. VAR variable: Import;
  6622. END Test.
  6623. negative: constant as variable
  6624. MODULE Test;
  6625. CONST Constant = 0;
  6626. VAR variable: Constant;
  6627. END Test.
  6628. positive: type as variable
  6629. MODULE Test;
  6630. TYPE Type = INTEGER;
  6631. VAR variable: Type;
  6632. END Test.
  6633. negative: procedure as variable
  6634. MODULE Test;
  6635. VAR variable: Procedure;
  6636. PROCEDURE Procedure; END Procedure;
  6637. END Test.
  6638. negative: parameter as variable
  6639. MODULE Test;
  6640. PROCEDURE Procedure (parameter: INTEGER);
  6641. VAR variable: parameter;
  6642. END Procedure;
  6643. END Test.
  6644. positive: variable of basic character type
  6645. MODULE Test;
  6646. VAR variable: CHAR;
  6647. END Test.
  6648. positive: variable of basic boolean type
  6649. MODULE Test;
  6650. VAR variable: BOOLEAN;
  6651. END Test.
  6652. positive: variable of basic short integer type
  6653. MODULE Test;
  6654. VAR variable: SHORTINT;
  6655. END Test.
  6656. positive: variable of basic integer type
  6657. MODULE Test;
  6658. VAR variable: INTEGER;
  6659. END Test.
  6660. positive: variable of basic long integer type
  6661. MODULE Test;
  6662. VAR variable: LONGINT;
  6663. END Test.
  6664. positive: variable of basic huge integer type
  6665. MODULE Test;
  6666. VAR variable: HUGEINT;
  6667. END Test.
  6668. positive: variable of basic real type
  6669. MODULE Test;
  6670. VAR variable: REAL;
  6671. END Test.
  6672. positive: variable of basic long real type
  6673. MODULE Test;
  6674. VAR variable: LONGREAL;
  6675. END Test.
  6676. positive: variable of basic set type
  6677. MODULE Test;
  6678. VAR variable: SET;
  6679. END Test.
  6680. positive: variable of record type
  6681. MODULE Test;
  6682. TYPE Record = RECORD c: CHAR END;
  6683. VAR variable: Record;
  6684. END Test.
  6685. positive: variables of record type
  6686. MODULE Test;
  6687. TYPE Record = RECORD c: CHAR END;
  6688. VAR a, b, c: Record;
  6689. END Test.
  6690. positive: variable of anonymous record type
  6691. MODULE Test;
  6692. VAR variable: RECORD c: CHAR END;
  6693. END Test.
  6694. positive: variables of anonymous record type
  6695. MODULE Test;
  6696. VAR a, b, c: RECORD c: CHAR END;
  6697. END Test.
  6698. positive: variable of array type
  6699. MODULE Test;
  6700. TYPE Array = ARRAY 10 OF RECORD END;
  6701. VAR variable: Array;
  6702. END Test.
  6703. positive: variables of array type
  6704. MODULE Test;
  6705. TYPE Array = ARRAY 10 OF RECORD END;
  6706. VAR a, b, c: Array;
  6707. END Test.
  6708. positive: variable of anonymous array type
  6709. MODULE Test;
  6710. VAR variable: ARRAY 10 OF RECORD END;
  6711. END Test.
  6712. positive: variables of anonymous array type
  6713. MODULE Test;
  6714. VAR a, b, c: ARRAY 10 OF RECORD END;
  6715. END Test.
  6716. negative: variable of open array type
  6717. MODULE Test;
  6718. TYPE Array = ARRAY OF RECORD END;
  6719. VAR variable: Array;
  6720. END Test.
  6721. negative: variables of open array type
  6722. MODULE Test;
  6723. TYPE Array = ARRAY OF RECORD END;
  6724. VAR a, v, c: Array;
  6725. END Test.
  6726. negative: variable of anonymous open array type
  6727. MODULE Test;
  6728. VAR variable: ARRAY OF RECORD END;
  6729. END Test.
  6730. negative: variables of anonymous open array type
  6731. MODULE Test;
  6732. VAR a, b, c: ARRAY OF RECORD END;
  6733. END Test.
  6734. positive: variable of object type
  6735. MODULE Test;
  6736. TYPE Object = OBJECT VAR c: CHAR END Object;
  6737. VAR variable: Object;
  6738. END Test.
  6739. positive: variables of object type
  6740. MODULE Test;
  6741. TYPE Object = OBJECT VAR c: CHAR END Object;
  6742. VAR a, b, c: Object;
  6743. END Test.
  6744. positive: variable of anonymous object type
  6745. MODULE Test;
  6746. VAR variable: OBJECT VAR c: CHAR END;
  6747. END Test.
  6748. positive: variables of anonymous object type
  6749. MODULE Test;
  6750. VAR a, b, c: OBJECT VAR c: CHAR END;
  6751. END Test.
  6752. positive: variable of pointer type
  6753. MODULE Test;
  6754. TYPE Pointer = POINTER TO RECORD c: CHAR END;
  6755. VAR variable: Pointer;
  6756. END Test.
  6757. positive: variables of pointer type
  6758. MODULE Test;
  6759. TYPE Pointer = POINTER TO RECORD c: CHAR END;
  6760. VAR a, b, c: Pointer;
  6761. END Test.
  6762. positive: variable of anonymous pointer type
  6763. MODULE Test;
  6764. VAR variable: POINTER TO RECORD c: CHAR END;
  6765. END Test.
  6766. positive: variables of anonymous pointer type
  6767. MODULE Test;
  6768. VAR a, b, c: POINTER TO RECORD c: CHAR END;
  6769. END Test.
  6770. positive: variable of procedure type
  6771. MODULE Test;
  6772. TYPE Procedure = PROCEDURE;
  6773. VAR variable: Procedure;
  6774. END Test.
  6775. positive: variables of procedure type
  6776. MODULE Test;
  6777. TYPE Procedure = PROCEDURE;
  6778. VAR a, b, c: Procedure;
  6779. END Test.
  6780. positive: variable of anonymous procedure type
  6781. MODULE Test;
  6782. VAR variable: PROCEDURE;
  6783. END Test.
  6784. positive: variables of anonymous procedure type
  6785. MODULE Test;
  6786. VAR a, b, c: PROCEDURE;
  6787. END Test.
  6788. negative: definition of self in module
  6789. MODULE Test;
  6790. VAR SELF: OBJECT;
  6791. END Test.
  6792. negative: definition of self in procedure
  6793. MODULE Test;
  6794. PROCEDURE Procedure;
  6795. VAR SELF: OBJECT;
  6796. END Procedure;
  6797. END Test.
  6798. negative: definition of self in object
  6799. MODULE Test;
  6800. TYPE Object = OBJECT
  6801. VAR SELF: OBJECT;
  6802. END Object;
  6803. END Test.
  6804. negative: definition of self in procedure in object
  6805. MODULE Test;
  6806. TYPE Object = OBJECT
  6807. PROCEDURE Procedure;
  6808. VAR SELF: OBJECT;
  6809. END Procedure;
  6810. END Object;
  6811. END Test.
  6812. negative: definition of self in nested procedure in object
  6813. MODULE Test;
  6814. TYPE Object = OBJECT
  6815. PROCEDURE Procedure;
  6816. PROCEDURE Procedure;
  6817. VAR SELF: OBJECT;
  6818. END Procedure;
  6819. END Procedure;
  6820. END Object;
  6821. END Test.
  6822. negative: modification of self in module
  6823. MODULE Test;
  6824. BEGIN SELF := NIL;
  6825. END Test.
  6826. negative: modification of self in procedure
  6827. MODULE Test;
  6828. PROCEDURE Procedure;
  6829. BEGIN SELF := NIL;
  6830. END Procedure;
  6831. END Test.
  6832. negative: modification of self in object
  6833. MODULE Test;
  6834. TYPE Object = OBJECT
  6835. BEGIN SELF := NIL;
  6836. END Object;
  6837. END Test.
  6838. negative: modification of self in procedure in object
  6839. MODULE Test;
  6840. TYPE Object = OBJECT
  6841. PROCEDURE Procedure;
  6842. BEGIN SELF := NIL;
  6843. END Procedure;
  6844. END Object;
  6845. END Test.
  6846. negative: modification of self in nested procedure in object
  6847. MODULE Test;
  6848. TYPE Object = OBJECT
  6849. PROCEDURE Procedure;
  6850. PROCEDURE Procedure;
  6851. BEGIN SELF := NIL;
  6852. END Procedure;
  6853. END Procedure;
  6854. END Object;
  6855. END Test.
  6856. negative: reading self in module
  6857. MODULE Test;
  6858. VAR a: INTEGER;
  6859. BEGIN a := SELF.a;
  6860. END Test.
  6861. negative: reading self in procedure
  6862. MODULE Test;
  6863. VAR a: INTEGER;
  6864. PROCEDURE Procedure;
  6865. BEGIN a := SELF.a;
  6866. END Procedure;
  6867. END Test.
  6868. positive: reading self in object
  6869. MODULE Test;
  6870. TYPE Object = OBJECT
  6871. VAR a: INTEGER;
  6872. BEGIN a := SELF.a;
  6873. END Object;
  6874. END Test.
  6875. positive: reading self in procedure in object
  6876. MODULE Test;
  6877. TYPE Object = OBJECT
  6878. VAR a: INTEGER;
  6879. PROCEDURE Procedure;
  6880. BEGIN a := SELF.a;
  6881. END Procedure;
  6882. END Object;
  6883. END Test.
  6884. positive: reading self in nested procedure in object
  6885. MODULE Test;
  6886. TYPE Object = OBJECT
  6887. VAR a: INTEGER;
  6888. PROCEDURE Procedure;
  6889. PROCEDURE Procedure;
  6890. BEGIN a := SELF.a;
  6891. END Procedure;
  6892. END Procedure;
  6893. END Object;
  6894. END Test.
  6895. negative: writing self in module
  6896. MODULE Test;
  6897. VAR a: INTEGER;
  6898. BEGIN SELF.a := a;
  6899. END Test.
  6900. negative: writing self in procedure
  6901. MODULE Test;
  6902. VAR a: INTEGER;
  6903. PROCEDURE Procedure;
  6904. BEGIN SELF.a := a;
  6905. END Procedure;
  6906. END Test.
  6907. positive: writing self in object
  6908. MODULE Test;
  6909. TYPE Object = OBJECT
  6910. VAR a: INTEGER;
  6911. BEGIN SELF.a := a;
  6912. END Object;
  6913. END Test.
  6914. positive: writing self in procedure in object
  6915. MODULE Test;
  6916. TYPE Object = OBJECT
  6917. VAR a: INTEGER;
  6918. PROCEDURE Procedure;
  6919. BEGIN SELF.a := a;
  6920. END Procedure;
  6921. END Object;
  6922. END Test.
  6923. positive: writing self in nested procedure in object
  6924. MODULE Test;
  6925. TYPE Object = OBJECT
  6926. VAR a: INTEGER;
  6927. PROCEDURE Procedure;
  6928. PROCEDURE Procedure;
  6929. BEGIN SELF.a := a;
  6930. END Procedure;
  6931. END Procedure;
  6932. END Object;
  6933. END Test.
  6934. positive: usage of self in object
  6935. MODULE Test;
  6936. TYPE Object = OBJECT
  6937. VAR object: Object;
  6938. BEGIN object := SELF;
  6939. END Object;
  6940. END Test.
  6941. positive: usage of self in procedure in object
  6942. MODULE Test;
  6943. TYPE Object = OBJECT
  6944. VAR object: Object;
  6945. PROCEDURE Procedure;
  6946. BEGIN object := SELF;
  6947. END Procedure;
  6948. END Object;
  6949. END Test.
  6950. positive: usage of self in nested procedure in object
  6951. MODULE Test;
  6952. TYPE Object = OBJECT
  6953. VAR object: Object;
  6954. PROCEDURE Procedure;
  6955. PROCEDURE Procedure;
  6956. BEGIN object := SELF;
  6957. END Procedure;
  6958. END Procedure;
  6959. END Object;
  6960. END Test.
  6961. positive: usage of self as base object in object
  6962. MODULE Test;
  6963. TYPE Object = OBJECT
  6964. VAR object: OBJECT;
  6965. BEGIN object := SELF;
  6966. END Object;
  6967. END Test.
  6968. positive: usage of self as base object in procedure in object
  6969. MODULE Test;
  6970. TYPE Object = OBJECT
  6971. VAR object: OBJECT;
  6972. PROCEDURE Procedure;
  6973. BEGIN object := SELF;
  6974. END Procedure;
  6975. END Object;
  6976. END Test.
  6977. positive: usage of self as base object in nested procedure in object
  6978. MODULE Test;
  6979. TYPE Object = OBJECT
  6980. VAR object: OBJECT;
  6981. PROCEDURE Procedure;
  6982. PROCEDURE Procedure;
  6983. BEGIN object := SELF;
  6984. END Procedure;
  6985. END Procedure;
  6986. END Object;
  6987. END Test.
  6988. positive: dummy module exporting variables
  6989. MODULE Dummy;
  6990. VAR exported*, readonly-, private: INTEGER;
  6991. END Dummy.
  6992. positive: importing exported variable
  6993. MODULE Test;
  6994. IMPORT Dummy;
  6995. VAR result: INTEGER;
  6996. BEGIN result := Dummy.exported;
  6997. END Test.
  6998. positive: changing imported exported variable
  6999. MODULE Test;
  7000. IMPORT Dummy;
  7001. BEGIN Dummy.exported := 0;
  7002. END Test.
  7003. positive: importing read-only variable
  7004. MODULE Test;
  7005. IMPORT Dummy;
  7006. VAR result: INTEGER;
  7007. BEGIN result := Dummy.readonly;
  7008. END Test.
  7009. negative: changing imported read-only variable
  7010. MODULE Test;
  7011. IMPORT Dummy;
  7012. BEGIN Dummy.readonly := 0;
  7013. END Test.
  7014. negative: importing private variable
  7015. MODULE Test;
  7016. IMPORT Dummy;
  7017. VAR result: INTEGER;
  7018. BEGIN result := Dummy.private;
  7019. END Test.
  7020. negative: changing imported private variable
  7021. MODULE Test;
  7022. IMPORT Dummy;
  7023. BEGIN Dummy.private := 0;
  7024. END Test.
  7025. negative: importing invalid variable
  7026. MODULE Test;
  7027. IMPORT Dummy;
  7028. VAR result: INTEGER;
  7029. BEGIN result := Dummy.invalid;
  7030. END Test.
  7031. # procedures
  7032. positive: unmarked procedure
  7033. MODULE Test;
  7034. PROCEDURE Procedure;
  7035. END Procedure;
  7036. END Test.
  7037. positive: unmarked procedure within procedure
  7038. MODULE Test;
  7039. PROCEDURE Procedure;
  7040. PROCEDURE Procedure;
  7041. END Procedure;
  7042. END Procedure;
  7043. END Test.
  7044. positive: unmarked procedure within nested procedure
  7045. MODULE Test;
  7046. PROCEDURE Procedure;
  7047. PROCEDURE Procedure;
  7048. PROCEDURE Procedure;
  7049. END Procedure;
  7050. END Procedure;
  7051. END Procedure;
  7052. END Test.
  7053. positive: unmarked procedure within object
  7054. MODULE Test;
  7055. TYPE Object = OBJECT
  7056. PROCEDURE Procedure;
  7057. END Procedure;
  7058. END Object;
  7059. END Test.
  7060. positive: unmarked procedure within object in procedure
  7061. MODULE Test;
  7062. PROCEDURE Procedure;
  7063. TYPE Object = OBJECT
  7064. PROCEDURE Procedure;
  7065. END Procedure;
  7066. END Object;
  7067. END Procedure;
  7068. END Test.
  7069. positive: unmarked procedure within procedure in object
  7070. MODULE Test;
  7071. TYPE Object = OBJECT
  7072. PROCEDURE Procedure;
  7073. PROCEDURE Procedure;
  7074. END Procedure;
  7075. END Procedure;
  7076. END Object;
  7077. END Test.
  7078. positive: procedure marked as exported
  7079. MODULE Test;
  7080. PROCEDURE Procedure*;
  7081. END Procedure;
  7082. END Test.
  7083. negative: procedure marked as exported within procedure
  7084. MODULE Test;
  7085. PROCEDURE Procedure;
  7086. PROCEDURE Procedure*;
  7087. END Procedure;
  7088. END Procedure;
  7089. END Test.
  7090. negative: procedure marked as exported within nested procedure
  7091. MODULE Test;
  7092. PROCEDURE Procedure;
  7093. PROCEDURE Procedure;
  7094. PROCEDURE Procedure*;
  7095. END Procedure;
  7096. END Procedure;
  7097. END Procedure;
  7098. END Test.
  7099. positive: procedure marked as exported within object
  7100. MODULE Test;
  7101. TYPE Object = OBJECT
  7102. PROCEDURE Procedure*;
  7103. END Procedure;
  7104. END Object;
  7105. END Test.
  7106. negative: procedure marked as exported within object in procedure
  7107. MODULE Test;
  7108. PROCEDURE Procedure;
  7109. TYPE Object = OBJECT
  7110. PROCEDURE Procedure*;
  7111. END Procedure;
  7112. END Object;
  7113. END Procedure;
  7114. END Test.
  7115. negative: procedure marked as exported within procedure in object
  7116. MODULE Test;
  7117. TYPE Object = OBJECT
  7118. PROCEDURE Procedure;
  7119. PROCEDURE Procedure*;
  7120. END Procedure;
  7121. END Procedure;
  7122. END Object;
  7123. END Test.
  7124. positive: procedure marked as read-only
  7125. MODULE Test;
  7126. PROCEDURE Procedure-;
  7127. END Procedure;
  7128. END Test.
  7129. negative: procedure marked as read-only within procedure
  7130. MODULE Test;
  7131. PROCEDURE Procedure;
  7132. PROCEDURE Procedure-;
  7133. END Procedure;
  7134. END Procedure;
  7135. END Test.
  7136. negative: procedure marked as read-only within nested procedure
  7137. MODULE Test;
  7138. PROCEDURE Procedure;
  7139. PROCEDURE Procedure;
  7140. PROCEDURE Procedure-;
  7141. END Procedure;
  7142. END Procedure;
  7143. END Procedure;
  7144. END Test.
  7145. positive: procedure marked as read-only within object
  7146. MODULE Test;
  7147. TYPE Object = OBJECT
  7148. PROCEDURE Procedure-;
  7149. END Procedure;
  7150. END Object;
  7151. END Test.
  7152. negative: procedure marked as read-only within object in procedure
  7153. MODULE Test;
  7154. PROCEDURE Procedure;
  7155. TYPE Object = OBJECT
  7156. PROCEDURE Procedure-;
  7157. END Procedure;
  7158. END Object;
  7159. END Procedure;
  7160. END Test.
  7161. negative: procedure marked as read-only within procedure in object
  7162. MODULE Test;
  7163. TYPE Object = OBJECT
  7164. PROCEDURE Procedure;
  7165. PROCEDURE Procedure-;
  7166. END Procedure;
  7167. END Procedure;
  7168. END Object;
  7169. END Test.
  7170. negative: duplicated procedure
  7171. MODULE Test;
  7172. PROCEDURE Procedure; END Procedure;
  7173. PROCEDURE Procedure; END Procedure;
  7174. END Test.
  7175. negative: duplicated procedure within procedure
  7176. MODULE Test;
  7177. PROCEDURE Procedure;
  7178. PROCEDURE Procedure; END Procedure;
  7179. PROCEDURE Procedure; END Procedure;
  7180. END Procedure;
  7181. END Test.
  7182. negative: duplicated procedure within nested procedure
  7183. MODULE Test;
  7184. PROCEDURE Procedure;
  7185. PROCEDURE Procedure;
  7186. PROCEDURE Procedure; END Procedure;
  7187. PROCEDURE Procedure; END Procedure;
  7188. END Procedure;
  7189. END Procedure;
  7190. END Test.
  7191. negative: duplicated procedure within object
  7192. MODULE Test;
  7193. TYPE Object = OBJECT
  7194. PROCEDURE Procedure; END Procedure;
  7195. PROCEDURE Procedure; END Procedure;
  7196. END Object;
  7197. END Test.
  7198. negative: duplicated procedure within object in procedure
  7199. MODULE Test;
  7200. PROCEDURE Procedure;
  7201. TYPE Object = OBJECT
  7202. PROCEDURE Procedure; END Procedure;
  7203. PROCEDURE Procedure; END Procedure;
  7204. END Object;
  7205. END Procedure;
  7206. END Test.
  7207. negative: duplicated procedure within procedure in object
  7208. MODULE Test;
  7209. TYPE Object = OBJECT
  7210. PROCEDURE Procedure;
  7211. PROCEDURE Procedure; END Procedure;
  7212. PROCEDURE Procedure; END Procedure;
  7213. END Procedure;
  7214. END Object;
  7215. END Test.
  7216. positive: calling procedure in module
  7217. MODULE Test;
  7218. PROCEDURE Procedure; END Procedure;
  7219. BEGIN Procedure
  7220. END Test.
  7221. positive: calling procedure in module with parentheses
  7222. MODULE Test;
  7223. PROCEDURE Procedure; END Procedure;
  7224. BEGIN Procedure ()
  7225. END Test.
  7226. positive: calling procedure recursively
  7227. MODULE Test;
  7228. PROCEDURE Procedure;
  7229. BEGIN Procedure
  7230. END Procedure;
  7231. END Test.
  7232. positive: calling procedure recursively with parentheses
  7233. MODULE Test;
  7234. PROCEDURE Procedure;
  7235. BEGIN Procedure
  7236. END Procedure;
  7237. END Test.
  7238. positive: calling nested procedure in procedure
  7239. MODULE Test;
  7240. PROCEDURE Procedure;
  7241. PROCEDURE Nested; END Nested;
  7242. BEGIN Nested
  7243. END Procedure;
  7244. END Test.
  7245. positive: calling nested procedure in procedure with parentheses
  7246. MODULE Test;
  7247. PROCEDURE Procedure;
  7248. PROCEDURE Nested; END Nested;
  7249. BEGIN Nested ()
  7250. END Procedure;
  7251. END Test.
  7252. positive: calling nested procedure in procedure recursively
  7253. MODULE Test;
  7254. PROCEDURE Procedure;
  7255. PROCEDURE Nested;
  7256. BEGIN Nested
  7257. END Nested;
  7258. END Procedure;
  7259. END Test.
  7260. positive: calling nested procedure in procedure recursively with parentheses
  7261. MODULE Test;
  7262. PROCEDURE Procedure;
  7263. PROCEDURE Nested;
  7264. BEGIN Nested ()
  7265. END Nested;
  7266. END Procedure;
  7267. END Test.
  7268. positive: calling method in object
  7269. MODULE Test;
  7270. TYPE Object = OBJECT
  7271. PROCEDURE Procedure; END Procedure;
  7272. BEGIN Procedure
  7273. END Object;
  7274. END Test.
  7275. positive: calling method in object with parentheses
  7276. MODULE Test;
  7277. TYPE Object = OBJECT
  7278. PROCEDURE Procedure; END Procedure;
  7279. BEGIN Procedure
  7280. END Object;
  7281. END Test.
  7282. positive: calling method recursively
  7283. MODULE Test;
  7284. TYPE Object = OBJECT
  7285. PROCEDURE Procedure;
  7286. BEGIN Procedure
  7287. END Procedure;
  7288. END Object;
  7289. END Test.
  7290. positive: calling method recursively with parentheses
  7291. MODULE Test;
  7292. TYPE Object = OBJECT
  7293. PROCEDURE Procedure;
  7294. BEGIN Procedure ()
  7295. END Procedure;
  7296. END Object;
  7297. END Test.
  7298. positive: calling nested procedure in method
  7299. MODULE Test;
  7300. TYPE Object = OBJECT
  7301. PROCEDURE Procedure;
  7302. PROCEDURE Nested; END Nested;
  7303. BEGIN Nested
  7304. END Procedure;
  7305. END Object;
  7306. END Test.
  7307. positive: calling nested procedure in method with parentheses
  7308. MODULE Test;
  7309. TYPE Object = OBJECT
  7310. PROCEDURE Procedure;
  7311. PROCEDURE Nested; END Nested;
  7312. BEGIN Nested ()
  7313. END Procedure;
  7314. END Object;
  7315. END Test.
  7316. positive: calling nested procedure in method recursively
  7317. MODULE Test;
  7318. TYPE Object = OBJECT
  7319. PROCEDURE Procedure;
  7320. PROCEDURE Nested;
  7321. BEGIN Nested
  7322. END Nested;
  7323. END Procedure;
  7324. END Object;
  7325. END Test.
  7326. positive: calling nested procedure in method recursively with parentheses
  7327. MODULE Test;
  7328. TYPE Object = OBJECT
  7329. PROCEDURE Procedure;
  7330. PROCEDURE Nested;
  7331. BEGIN Nested ()
  7332. END Nested;
  7333. END Procedure;
  7334. END Object;
  7335. END Test.
  7336. positive: calling procedure variable in module
  7337. MODULE Test;
  7338. VAR procedure: PROCEDURE;
  7339. BEGIN procedure
  7340. END Test.
  7341. positive: calling procedure variable in module with parentheses
  7342. MODULE Test;
  7343. VAR procedure: PROCEDURE;
  7344. BEGIN procedure ()
  7345. END Test.
  7346. positive: calling procedure variable in procedure
  7347. MODULE Test;
  7348. VAR procedure: PROCEDURE;
  7349. PROCEDURE Procedure;
  7350. BEGIN procedure
  7351. END Procedure;
  7352. END Test.
  7353. positive: calling procedure variable in procedure with parentheses
  7354. MODULE Test;
  7355. VAR procedure: PROCEDURE;
  7356. PROCEDURE Procedure;
  7357. BEGIN procedure ()
  7358. END Procedure;
  7359. END Test.
  7360. positive: calling procedure variable in object
  7361. MODULE Test;
  7362. TYPE Object = OBJECT
  7363. VAR procedure: PROCEDURE;
  7364. BEGIN procedure
  7365. END Object;
  7366. END Test.
  7367. VAR procedure: PROCEDURE;
  7368. BEGIN procedure
  7369. positive: calling procedure variable in object with parentheses
  7370. MODULE Test;
  7371. TYPE Object = OBJECT
  7372. VAR procedure: PROCEDURE;
  7373. BEGIN procedure ()
  7374. END Object;
  7375. END Test.
  7376. VAR procedure: PROCEDURE;
  7377. BEGIN procedure
  7378. positive: calling procedure variable in method
  7379. MODULE Test;
  7380. TYPE Object = OBJECT
  7381. VAR procedure: PROCEDURE;
  7382. PROCEDURE Procedure;
  7383. BEGIN procedure
  7384. END Procedure;
  7385. END Object;
  7386. END Test.
  7387. positive: calling procedure variable in method with parentheses
  7388. MODULE Test;
  7389. TYPE Object = OBJECT
  7390. VAR procedure: PROCEDURE;
  7391. PROCEDURE Procedure;
  7392. BEGIN procedure ()
  7393. END Procedure;
  7394. END Object;
  7395. END Test.
  7396. positive: calling procedure with no parameters with no arguments
  7397. MODULE Test;
  7398. PROCEDURE Procedure; END Procedure;
  7399. BEGIN Procedure
  7400. END Test.
  7401. negative: calling procedure with one parameter with no arguments
  7402. MODULE Test;
  7403. PROCEDURE Procedure (one: INTEGER); END Procedure;
  7404. BEGIN Procedure
  7405. END Test.
  7406. negative: calling procedure with two parameter with no arguments
  7407. MODULE Test;
  7408. PROCEDURE Procedure (one, two: INTEGER); END Procedure;
  7409. BEGIN Procedure
  7410. END Test.
  7411. negative: calling procedure with no parameters with one argument
  7412. MODULE Test;
  7413. PROCEDURE Procedure; END Procedure;
  7414. BEGIN Procedure (0)
  7415. END Test.
  7416. positive: calling procedure with one parameter with one argument
  7417. MODULE Test;
  7418. PROCEDURE Procedure (one: INTEGER); END Procedure;
  7419. BEGIN Procedure (0)
  7420. END Test.
  7421. negative: calling procedure with two parameter with one argument
  7422. MODULE Test;
  7423. PROCEDURE Procedure (one, two: INTEGER); END Procedure;
  7424. BEGIN Procedure (0)
  7425. END Test.
  7426. negative: calling procedure with no parameters with two arguments
  7427. MODULE Test;
  7428. PROCEDURE Procedure; END Procedure;
  7429. BEGIN Procedure (1, 2)
  7430. END Test.
  7431. negative: calling procedure with one parameter with two arguments
  7432. MODULE Test;
  7433. PROCEDURE Procedure (one: INTEGER); END Procedure;
  7434. BEGIN Procedure (1, 2)
  7435. END Test.
  7436. positive: calling procedure with two parameter with two arguments
  7437. MODULE Test;
  7438. PROCEDURE Procedure (one, two: INTEGER); END Procedure;
  7439. BEGIN Procedure (1, 2)
  7440. END Test.
  7441. positive: calling procedure variable with no parameters with no arguments
  7442. MODULE Test;
  7443. VAR procedure: PROCEDURE;
  7444. BEGIN procedure
  7445. END Test.
  7446. negative: calling procedure variable with one parameter with no arguments
  7447. MODULE Test;
  7448. VAR procedure: PROCEDURE (one: INTEGER);
  7449. BEGIN procedure
  7450. END Test.
  7451. negative: calling procedure variable with two parameter with no arguments
  7452. MODULE Test;
  7453. VAR procedure: PROCEDURE (one, two: INTEGER);
  7454. BEGIN procedure
  7455. END Test.
  7456. negative: calling procedure variable with no parameters with one argument
  7457. MODULE Test;
  7458. VAR procedure: PROCEDURE;
  7459. BEGIN procedure (0)
  7460. END Test.
  7461. positive: calling procedure variable with one parameter with one argument
  7462. MODULE Test;
  7463. VAR procedure: PROCEDURE (one: INTEGER);
  7464. BEGIN procedure (0)
  7465. END Test.
  7466. negative: calling procedure variable with two parameter with one argument
  7467. MODULE Test;
  7468. VAR procedure: PROCEDURE (one, two: INTEGER);
  7469. BEGIN procedure (0)
  7470. END Test.
  7471. negative: calling procedure variable with no parameters with two arguments
  7472. MODULE Test;
  7473. VAR procedure: PROCEDURE;
  7474. BEGIN procedure (1, 2)
  7475. END Test.
  7476. negative: calling procedure variable with one parameter with two arguments
  7477. MODULE Test;
  7478. VAR procedure: PROCEDURE (one: INTEGER);
  7479. BEGIN procedure (1, 2)
  7480. END Test.
  7481. positive: calling procedure variable with two parameter with two arguments
  7482. MODULE Test;
  7483. VAR procedure: PROCEDURE (one, two: INTEGER);
  7484. BEGIN procedure (1, 2)
  7485. END Test.
  7486. # procedure return types
  7487. positive: procedure returning basic character type
  7488. MODULE Test;
  7489. PROCEDURE Procedure (): CHAR;
  7490. END Procedure;
  7491. END Test.
  7492. positive: procedure returning basic boolean type
  7493. MODULE Test;
  7494. PROCEDURE Procedure (): BOOLEAN;
  7495. END Procedure;
  7496. END Test.
  7497. positive: procedure returning basic short integer type
  7498. MODULE Test;
  7499. PROCEDURE Procedure (): SHORTINT;
  7500. END Procedure;
  7501. END Test.
  7502. positive: procedure returning basic integer type
  7503. MODULE Test;
  7504. PROCEDURE Procedure (): INTEGER;
  7505. END Procedure;
  7506. END Test.
  7507. positive: procedure returning basic long integer type
  7508. MODULE Test;
  7509. PROCEDURE Procedure (): LONGINT;
  7510. END Procedure;
  7511. END Test.
  7512. positive: procedure returning basic huge integer type
  7513. MODULE Test;
  7514. PROCEDURE Procedure (): HUGEINT;
  7515. END Procedure;
  7516. END Test.
  7517. positive: procedure returning basic real type
  7518. MODULE Test;
  7519. PROCEDURE Procedure (): REAL;
  7520. END Procedure;
  7521. END Test.
  7522. positive: procedure returning basic long real type
  7523. MODULE Test;
  7524. PROCEDURE Procedure (): LONGREAL;
  7525. END Procedure;
  7526. END Test.
  7527. positive: procedure returning basic set type
  7528. MODULE Test;
  7529. PROCEDURE Procedure (): SET;
  7530. END Procedure;
  7531. END Test.
  7532. positive: procedure returning record type
  7533. MODULE Test;
  7534. TYPE Record = RECORD END;
  7535. PROCEDURE Procedure (): Record;
  7536. END Procedure;
  7537. END Test.
  7538. positive: procedure returning anonymous record type
  7539. MODULE Test;
  7540. PROCEDURE Procedure (): RECORD END;
  7541. END Procedure;
  7542. END Test.
  7543. positive: procedure returning array type
  7544. MODULE Test;
  7545. TYPE Array = ARRAY 10 OF RECORD END;
  7546. PROCEDURE Procedure (): Array;
  7547. END Procedure;
  7548. END Test.
  7549. positive: procedure returning anonymous array type
  7550. MODULE Test;
  7551. PROCEDURE Procedure (): ARRAY 10 OF RECORD END;
  7552. END Procedure;
  7553. END Test.
  7554. negative: procedure returning open array type
  7555. MODULE Test;
  7556. TYPE Array = ARRAY OF RECORD END;
  7557. PROCEDURE Procedure (): Array;
  7558. END Procedure;
  7559. END Test.
  7560. negative: procedure returning anonymous open array type
  7561. MODULE Test;
  7562. PROCEDURE Procedure (): ARRAY OF RECORD END;
  7563. END Procedure;
  7564. END Test.
  7565. positive: procedure returning object type
  7566. MODULE Test;
  7567. TYPE Object = OBJECT;
  7568. PROCEDURE Procedure (): Object;
  7569. END Procedure;
  7570. END Test.
  7571. positive: procedure returning anonymous object type
  7572. MODULE Test;
  7573. PROCEDURE Procedure (): OBJECT;
  7574. END Procedure;
  7575. END Test.
  7576. positive: procedure returning pointer type
  7577. MODULE Test;
  7578. TYPE Pointer = POINTER TO RECORD END;
  7579. PROCEDURE Procedure (): Pointer;
  7580. END Procedure;
  7581. END Test.
  7582. positive: procedure returning anonymous pointer type
  7583. MODULE Test;
  7584. PROCEDURE Procedure (): POINTER TO RECORD END;
  7585. END Procedure;
  7586. END Test.
  7587. positive: procedure returning procedure type
  7588. MODULE Test;
  7589. TYPE Proc = PROCEDURE;
  7590. PROCEDURE Procedure (): Proc;
  7591. END Procedure;
  7592. END Test.
  7593. positive: procedure returning anonymous procedure type
  7594. MODULE Test;
  7595. PROCEDURE Procedure (): PROCEDURE;
  7596. END Procedure;
  7597. END Test.
  7598. positive: procedure returning anonymous procedure returning anonymous procedure
  7599. MODULE Test;
  7600. PROCEDURE Procedure (): PROCEDURE (): PROCEDURE;
  7601. END Procedure;
  7602. END Test.
  7603. negative: procedure returning itself
  7604. MODULE Test;
  7605. PROCEDURE Procedure (): Procedure;
  7606. END Procedure;
  7607. END Test.
  7608. negative: procedure with returning local type
  7609. MODULE Test;
  7610. PROCEDURE Procedure (): Type;
  7611. TYPE Type = RECORD END;
  7612. END Procedure;
  7613. END Test.
  7614. # procedure parameters
  7615. negative: parameter marked as exported
  7616. MODULE Test;
  7617. PROCEDURE Procedure (parameter*: OBJECT);
  7618. END Procedure;
  7619. END Test.
  7620. negative: parameter marked as read-only
  7621. MODULE Test;
  7622. PROCEDURE Procedure (parameter*: OBJECT);
  7623. END Procedure;
  7624. END Test.
  7625. negative: duplicated parameters
  7626. MODULE Test;
  7627. PROCEDURE Procedure (parameter: LONGINT; parameter: LONGINT);
  7628. END Procedure;
  7629. END Test.
  7630. negative: duplicated parameters in same declaration
  7631. MODULE Test;
  7632. PROCEDURE Procedure (parameter, parameter: LONGINT);
  7633. END Procedure;
  7634. END Test.
  7635. positive: procedure with parameter of same type
  7636. MODULE Test;
  7637. TYPE Proc = PROCEDURE;
  7638. PROCEDURE Procedure (procedure: Proc);
  7639. END Procedure;
  7640. END Test.
  7641. negative: procedure with multiple variable parameter
  7642. MODULE Test;
  7643. PROCEDURE Procedure (VAR VAR parameter: SET);
  7644. END Procedure;
  7645. END Test.
  7646. negative: procedure with multiple constant parameter
  7647. MODULE Test;
  7648. PROCEDURE Procedure (CONST CONST parameter: SET);
  7649. END Procedure;
  7650. END Test.
  7651. negative: procedure with variable and constant parameter
  7652. MODULE Test;
  7653. PROCEDURE Procedure (VAR CONST parameter: SET);
  7654. END Procedure;
  7655. END Test.
  7656. negative: procedure with constant and variable parameter
  7657. MODULE Test;
  7658. PROCEDURE Procedure (VAR CONST parameter: SET);
  7659. END Procedure;
  7660. END Test.
  7661. negative: procedure with parameter marked as exported
  7662. MODULE Test;
  7663. PROCEDURE Procedure (parameter*: CHAR);
  7664. END Procedure;
  7665. END Test.
  7666. negative: procedure with parameter marked as read-only
  7667. MODULE Test;
  7668. PROCEDURE Procedure (parameter-: CHAR);
  7669. END Procedure;
  7670. END Test.
  7671. positive: procedure with a parameter of basic character type
  7672. MODULE Test;
  7673. PROCEDURE Procedure (parameter: CHAR);
  7674. END Procedure;
  7675. END Test.
  7676. positive: procedure with parameters of basic character type
  7677. MODULE Test;
  7678. PROCEDURE Procedure (a, b, c: CHAR);
  7679. END Procedure;
  7680. END Test.
  7681. positive: procedure with a parameter of variable character type
  7682. MODULE Test;
  7683. PROCEDURE Procedure (VAR parameter: CHAR);
  7684. END Procedure;
  7685. END Test.
  7686. positive: procedure with parameters of variable character type
  7687. MODULE Test;
  7688. PROCEDURE Procedure (VAR a, b, c: CHAR);
  7689. END Procedure;
  7690. END Test.
  7691. positive: procedure with a parameter of constant character type
  7692. MODULE Test;
  7693. PROCEDURE Procedure (CONST parameter: CHAR);
  7694. END Procedure;
  7695. END Test.
  7696. positive: procedure with parameters of constant character type
  7697. MODULE Test;
  7698. PROCEDURE Procedure (CONST a, b, c: CHAR);
  7699. END Procedure;
  7700. END Test.
  7701. positive: procedure with intermixed parameters of character type
  7702. MODULE Test;
  7703. PROCEDURE Procedure (a: CHAR; VAR b: CHAR; CONST c: CHAR);
  7704. END Procedure;
  7705. END Test.
  7706. positive: procedure with a parameter of basic boolean type
  7707. MODULE Test;
  7708. PROCEDURE Procedure (parameter: BOOLEAN);
  7709. END Procedure;
  7710. END Test.
  7711. positive: procedure with parameters of basic boolean type
  7712. MODULE Test;
  7713. PROCEDURE Procedure (a, b, c: BOOLEAN);
  7714. END Procedure;
  7715. END Test.
  7716. positive: procedure with a parameter of variable boolean type
  7717. MODULE Test;
  7718. PROCEDURE Procedure (VAR parameter: BOOLEAN);
  7719. END Procedure;
  7720. END Test.
  7721. positive: procedure with parameters of variable boolean type
  7722. MODULE Test;
  7723. PROCEDURE Procedure (VAR a, b, c: BOOLEAN);
  7724. END Procedure;
  7725. END Test.
  7726. positive: procedure with a parameter of constant boolean type
  7727. MODULE Test;
  7728. PROCEDURE Procedure (CONST parameter: BOOLEAN);
  7729. END Procedure;
  7730. END Test.
  7731. positive: procedure with parameters of constant boolean type
  7732. MODULE Test;
  7733. PROCEDURE Procedure (CONST a, b, c: BOOLEAN);
  7734. END Procedure;
  7735. END Test.
  7736. positive: procedure with intermixed parameters of boolean type
  7737. MODULE Test;
  7738. PROCEDURE Procedure (a: BOOLEAN; VAR b: BOOLEAN; CONST c: BOOLEAN);
  7739. END Procedure;
  7740. END Test.
  7741. positive: procedure with a parameter of basic short integer type
  7742. MODULE Test;
  7743. PROCEDURE Procedure (parameter: SHORTINT);
  7744. END Procedure;
  7745. END Test.
  7746. positive: procedure with parameters of basic short integer type
  7747. MODULE Test;
  7748. PROCEDURE Procedure (a, b, c: SHORTINT);
  7749. END Procedure;
  7750. END Test.
  7751. positive: procedure with a parameter of variable short integer type
  7752. MODULE Test;
  7753. PROCEDURE Procedure (VAR parameter: SHORTINT);
  7754. END Procedure;
  7755. END Test.
  7756. positive: procedure with parameters of variable short integer type
  7757. MODULE Test;
  7758. PROCEDURE Procedure (VAR a, b, c: SHORTINT);
  7759. END Procedure;
  7760. END Test.
  7761. positive: procedure with a parameter of constant short integer type
  7762. MODULE Test;
  7763. PROCEDURE Procedure (CONST parameter: SHORTINT);
  7764. END Procedure;
  7765. END Test.
  7766. positive: procedure with parameters of constant short integer type
  7767. MODULE Test;
  7768. PROCEDURE Procedure (CONST a, b, c: SHORTINT);
  7769. END Procedure;
  7770. END Test.
  7771. positive: procedure with intermixed parameters of short integer type
  7772. MODULE Test;
  7773. PROCEDURE Procedure (a: SHORTINT; VAR b: SHORTINT; CONST c: SHORTINT);
  7774. END Procedure;
  7775. END Test.
  7776. positive: procedure with a parameter of basic integer type
  7777. MODULE Test;
  7778. PROCEDURE Procedure (parameter: INTEGER);
  7779. END Procedure;
  7780. END Test.
  7781. positive: procedure with parameters of basic integer type
  7782. MODULE Test;
  7783. PROCEDURE Procedure (a, b, c: INTEGER);
  7784. END Procedure;
  7785. END Test.
  7786. positive: procedure with a parameter of variable integer type
  7787. MODULE Test;
  7788. PROCEDURE Procedure (VAR parameter: INTEGER);
  7789. END Procedure;
  7790. END Test.
  7791. positive: procedure with parameters of variable integer type
  7792. MODULE Test;
  7793. PROCEDURE Procedure (VAR a, b, c: INTEGER);
  7794. END Procedure;
  7795. END Test.
  7796. positive: procedure with a parameter of constant integer type
  7797. MODULE Test;
  7798. PROCEDURE Procedure (CONST parameter: INTEGER);
  7799. END Procedure;
  7800. END Test.
  7801. positive: procedure with parameters of constant integer type
  7802. MODULE Test;
  7803. PROCEDURE Procedure (CONST a, b, c: INTEGER);
  7804. END Procedure;
  7805. END Test.
  7806. positive: procedure with intermixed parameters of integer type
  7807. MODULE Test;
  7808. PROCEDURE Procedure (a: INTEGER; VAR b: INTEGER; CONST c: INTEGER);
  7809. END Procedure;
  7810. END Test.
  7811. positive: procedure with a parameter of basic long integer type
  7812. MODULE Test;
  7813. PROCEDURE Procedure (parameter: LONGINT);
  7814. END Procedure;
  7815. END Test.
  7816. positive: procedure with parameters of basic long integer type
  7817. MODULE Test;
  7818. PROCEDURE Procedure (a, b, c: LONGINT);
  7819. END Procedure;
  7820. END Test.
  7821. positive: procedure with a parameter of variable long integer type
  7822. MODULE Test;
  7823. PROCEDURE Procedure (VAR parameter: LONGINT);
  7824. END Procedure;
  7825. END Test.
  7826. positive: procedure with parameters of variable long integer type
  7827. MODULE Test;
  7828. PROCEDURE Procedure (VAR a, b, c: LONGINT);
  7829. END Procedure;
  7830. END Test.
  7831. positive: procedure with a parameter of constant long integer type
  7832. MODULE Test;
  7833. PROCEDURE Procedure (CONST parameter: LONGINT);
  7834. END Procedure;
  7835. END Test.
  7836. positive: procedure with parameters of constant long integer type
  7837. MODULE Test;
  7838. PROCEDURE Procedure (CONST a, b, c: LONGINT);
  7839. END Procedure;
  7840. END Test.
  7841. positive: procedure with intermixed parameters of long integer type
  7842. MODULE Test;
  7843. PROCEDURE Procedure (a: LONGINT; VAR b: LONGINT; CONST c: LONGINT);
  7844. END Procedure;
  7845. END Test.
  7846. positive: procedure with a parameter of basic huge integer type
  7847. MODULE Test;
  7848. PROCEDURE Procedure (parameter: HUGEINT);
  7849. END Procedure;
  7850. END Test.
  7851. positive: procedure with parameters of basic huge integer type
  7852. MODULE Test;
  7853. PROCEDURE Procedure (a, b, c: HUGEINT);
  7854. END Procedure;
  7855. END Test.
  7856. positive: procedure with a parameter of variable huge integer type
  7857. MODULE Test;
  7858. PROCEDURE Procedure (VAR parameter: HUGEINT);
  7859. END Procedure;
  7860. END Test.
  7861. positive: procedure with parameters of variable huge integer type
  7862. MODULE Test;
  7863. PROCEDURE Procedure (VAR a, b, c: HUGEINT);
  7864. END Procedure;
  7865. END Test.
  7866. positive: procedure with a parameter of constant huge integer type
  7867. MODULE Test;
  7868. PROCEDURE Procedure (CONST parameter: HUGEINT);
  7869. END Procedure;
  7870. END Test.
  7871. positive: procedure with parameters of constant huge integer type
  7872. MODULE Test;
  7873. PROCEDURE Procedure (CONST a, b, c: HUGEINT);
  7874. END Procedure;
  7875. END Test.
  7876. positive: procedure with intermixed parameters of huge integer type
  7877. MODULE Test;
  7878. PROCEDURE Procedure (a: HUGEINT; VAR b: HUGEINT; CONST c: HUGEINT);
  7879. END Procedure;
  7880. END Test.
  7881. positive: procedure with a parameter of basic real type
  7882. MODULE Test;
  7883. PROCEDURE Procedure (parameter: REAL);
  7884. END Procedure;
  7885. END Test.
  7886. positive: procedure with parameters of basic real type
  7887. MODULE Test;
  7888. PROCEDURE Procedure (a, b, c: REAL);
  7889. END Procedure;
  7890. END Test.
  7891. positive: procedure with a parameter of variable real type
  7892. MODULE Test;
  7893. PROCEDURE Procedure (VAR parameter: REAL);
  7894. END Procedure;
  7895. END Test.
  7896. positive: procedure with parameters of variable real type
  7897. MODULE Test;
  7898. PROCEDURE Procedure (VAR a, b, c: REAL);
  7899. END Procedure;
  7900. END Test.
  7901. positive: procedure with a parameter of constant real type
  7902. MODULE Test;
  7903. PROCEDURE Procedure (CONST parameter: REAL);
  7904. END Procedure;
  7905. END Test.
  7906. positive: procedure with parameters of constant real type
  7907. MODULE Test;
  7908. PROCEDURE Procedure (CONST a, b, c: REAL);
  7909. END Procedure;
  7910. END Test.
  7911. positive: procedure with intermixed parameters of real type
  7912. MODULE Test;
  7913. PROCEDURE Procedure (a: REAL; VAR b: REAL; CONST c: REAL);
  7914. END Procedure;
  7915. END Test.
  7916. positive: procedure with a parameter of basic long real type
  7917. MODULE Test;
  7918. PROCEDURE Procedure (parameter: LONGREAL);
  7919. END Procedure;
  7920. END Test.
  7921. positive: procedure with parameters of basic long real type
  7922. MODULE Test;
  7923. PROCEDURE Procedure (a, b, c: LONGREAL);
  7924. END Procedure;
  7925. END Test.
  7926. positive: procedure with a parameter of variable long real type
  7927. MODULE Test;
  7928. PROCEDURE Procedure (VAR parameter: LONGREAL);
  7929. END Procedure;
  7930. END Test.
  7931. positive: procedure with parameters of variable long real type
  7932. MODULE Test;
  7933. PROCEDURE Procedure (VAR a, b, c: LONGREAL);
  7934. END Procedure;
  7935. END Test.
  7936. positive: procedure with a parameter of constant long real type
  7937. MODULE Test;
  7938. PROCEDURE Procedure (CONST parameter: LONGREAL);
  7939. END Procedure;
  7940. END Test.
  7941. positive: procedure with parameters of constant long real type
  7942. MODULE Test;
  7943. PROCEDURE Procedure (CONST a, b, c: LONGREAL);
  7944. END Procedure;
  7945. END Test.
  7946. positive: procedure with intermixed parameters of long real type
  7947. MODULE Test;
  7948. PROCEDURE Procedure (a: LONGREAL; VAR b: LONGREAL; CONST c: LONGREAL);
  7949. END Procedure;
  7950. END Test.
  7951. positive: procedure with a parameter of basic set type
  7952. MODULE Test;
  7953. PROCEDURE Procedure (parameter: SET);
  7954. END Procedure;
  7955. END Test.
  7956. positive: procedure with parameters of basic set type
  7957. MODULE Test;
  7958. PROCEDURE Procedure (a, b, c: SET);
  7959. END Procedure;
  7960. END Test.
  7961. positive: procedure with a parameter of variable set type
  7962. MODULE Test;
  7963. PROCEDURE Procedure (VAR parameter: SET);
  7964. END Procedure;
  7965. END Test.
  7966. positive: procedure with parameters of variable set type
  7967. MODULE Test;
  7968. PROCEDURE Procedure (VAR a, b, c: SET);
  7969. END Procedure;
  7970. END Test.
  7971. positive: procedure with a parameter of constant set type
  7972. MODULE Test;
  7973. PROCEDURE Procedure (CONST parameter: SET);
  7974. END Procedure;
  7975. END Test.
  7976. positive: procedure with parameters of constant set type
  7977. MODULE Test;
  7978. PROCEDURE Procedure (CONST a, b, c: SET);
  7979. END Procedure;
  7980. END Test.
  7981. positive: procedure with intermixed parameters of set type
  7982. MODULE Test;
  7983. PROCEDURE Procedure (a: SET; VAR b: SET; CONST c: SET);
  7984. END Procedure;
  7985. END Test.
  7986. positive: procedure with a parameter of record type
  7987. MODULE Test;
  7988. TYPE Record = RECORD END;
  7989. PROCEDURE Procedure (parameter: Record);
  7990. END Procedure;
  7991. END Test.
  7992. positive: procedure with parameters of record type
  7993. MODULE Test;
  7994. TYPE Record = RECORD END;
  7995. PROCEDURE Procedure (a, b, c: Record);
  7996. END Procedure;
  7997. END Test.
  7998. positive: procedure with a parameter of variable record type
  7999. MODULE Test;
  8000. TYPE Record = RECORD END;
  8001. PROCEDURE Procedure (VAR parameter: Record);
  8002. END Procedure;
  8003. END Test.
  8004. positive: procedure with parameters of variable record type
  8005. MODULE Test;
  8006. TYPE Record = RECORD END;
  8007. PROCEDURE Procedure (VAR a, b, c: Record);
  8008. END Procedure;
  8009. END Test.
  8010. positive: procedure with a parameter of constant record type
  8011. MODULE Test;
  8012. TYPE Record = RECORD END;
  8013. PROCEDURE Procedure (CONST parameter: Record);
  8014. END Procedure;
  8015. END Test.
  8016. positive: procedure with parameters of constant record type
  8017. MODULE Test;
  8018. TYPE Record = RECORD END;
  8019. PROCEDURE Procedure (CONST a, b, c: Record);
  8020. END Procedure;
  8021. END Test.
  8022. positive: procedure with intermixed parameters of record type
  8023. MODULE Test;
  8024. TYPE Record = RECORD END;
  8025. PROCEDURE Procedure (a: Record; VAR b: Record; CONST c: Record);
  8026. END Procedure;
  8027. END Test.
  8028. positive: procedure with a parameter of anonymous record type
  8029. MODULE Test;
  8030. TYPE Record = RECORD END;
  8031. PROCEDURE Procedure (parameter: RECORD END);
  8032. END Procedure;
  8033. END Test.
  8034. positive: procedure with parameters of anonymous record type
  8035. MODULE Test;
  8036. PROCEDURE Procedure (a, b, c: RECORD END);
  8037. END Procedure;
  8038. END Test.
  8039. positive: procedure with a parameter of variable anonymous record type
  8040. MODULE Test;
  8041. PROCEDURE Procedure (VAR parameter: RECORD END);
  8042. END Procedure;
  8043. END Test.
  8044. positive: procedure with parameters of variable anonymous record type
  8045. MODULE Test;
  8046. PROCEDURE Procedure (VAR a, b, c: RECORD END);
  8047. END Procedure;
  8048. END Test.
  8049. positive: procedure with a parameter of constant anonymous record type
  8050. MODULE Test;
  8051. PROCEDURE Procedure (CONST parameter: RECORD END);
  8052. END Procedure;
  8053. END Test.
  8054. positive: procedure with parameters of constant anonymous record type
  8055. MODULE Test;
  8056. PROCEDURE Procedure (CONST a, b, c: RECORD END);
  8057. END Procedure;
  8058. END Test.
  8059. positive: procedure with intermixed parameters of anonymous record type
  8060. MODULE Test;
  8061. PROCEDURE Procedure (a: RECORD END; VAR b: RECORD END; CONST c: RECORD END);
  8062. END Procedure;
  8063. END Test.
  8064. positive: procedure with a parameter of array type
  8065. MODULE Test;
  8066. TYPE Array = ARRAY 10 OF RECORD END;
  8067. PROCEDURE Procedure (parameter: Array);
  8068. END Procedure;
  8069. END Test.
  8070. positive: procedure with parameters of array type
  8071. MODULE Test;
  8072. TYPE Array = ARRAY 10 OF RECORD END;
  8073. PROCEDURE Procedure (a, b, c: Array);
  8074. END Procedure;
  8075. END Test.
  8076. positive: procedure with a parameter of variable array type
  8077. MODULE Test;
  8078. TYPE Array = ARRAY 10 OF RECORD END;
  8079. PROCEDURE Procedure (VAR parameter: Array);
  8080. END Procedure;
  8081. END Test.
  8082. positive: procedure with parameters of variable array type
  8083. MODULE Test;
  8084. TYPE Array = ARRAY 10 OF RECORD END;
  8085. PROCEDURE Procedure (VAR a, b, c: Array);
  8086. END Procedure;
  8087. END Test.
  8088. positive: procedure with a parameter of constant array type
  8089. MODULE Test;
  8090. TYPE Array = ARRAY 10 OF RECORD END;
  8091. PROCEDURE Procedure (CONST parameter: Array);
  8092. END Procedure;
  8093. END Test.
  8094. positive: procedure with parameters of constant array type
  8095. MODULE Test;
  8096. TYPE Array = ARRAY 10 OF RECORD END;
  8097. PROCEDURE Procedure (CONST a, b, c: Array);
  8098. END Procedure;
  8099. END Test.
  8100. positive: procedure with intermixed parameters of array type
  8101. MODULE Test;
  8102. TYPE Array = ARRAY 10 OF RECORD END;
  8103. PROCEDURE Procedure (a: Array; VAR b: Array; CONST c: Array);
  8104. END Procedure;
  8105. END Test.
  8106. positive: procedure with a parameter of anonymous array type
  8107. MODULE Test;
  8108. PROCEDURE Procedure (parameter: ARRAY 10 OF RECORD END);
  8109. END Procedure;
  8110. END Test.
  8111. positive: procedure with parameters of anonymous array type
  8112. MODULE Test;
  8113. PROCEDURE Procedure (a, b, c: ARRAY 10 OF RECORD END);
  8114. END Procedure;
  8115. END Test.
  8116. positive: procedure with a parameter of variable anonymous array type
  8117. MODULE Test;
  8118. PROCEDURE Procedure (VAR parameter: ARRAY 10 OF RECORD END);
  8119. END Procedure;
  8120. END Test.
  8121. positive: procedure with parameters of variable anonymous array type
  8122. MODULE Test;
  8123. PROCEDURE Procedure (VAR a, b, c: ARRAY 10 OF RECORD END);
  8124. END Procedure;
  8125. END Test.
  8126. positive: procedure with a parameter of constant anonymous array type
  8127. MODULE Test;
  8128. PROCEDURE Procedure (CONST parameter: ARRAY 10 OF RECORD END);
  8129. END Procedure;
  8130. END Test.
  8131. positive: procedure with parameters of constant anonymous array type
  8132. MODULE Test;
  8133. PROCEDURE Procedure (CONST a, b, c: ARRAY 10 OF RECORD END);
  8134. END Procedure;
  8135. END Test.
  8136. positive: procedure with intermixed parameters of anonymous array type
  8137. MODULE Test;
  8138. PROCEDURE Procedure (a: ARRAY 10 OF RECORD END; VAR b: ARRAY 10 OF RECORD END; CONST c: ARRAY 10 OF RECORD END);
  8139. END Procedure;
  8140. END Test.
  8141. positive: procedure with a parameter of open array type
  8142. MODULE Test;
  8143. TYPE Array = ARRAY OF RECORD END;
  8144. PROCEDURE Procedure (parameter: Array);
  8145. END Procedure;
  8146. END Test.
  8147. positive: procedure with parameters of open array type
  8148. MODULE Test;
  8149. TYPE Array = ARRAY OF RECORD END;
  8150. PROCEDURE Procedure (a, b, c: Array);
  8151. END Procedure;
  8152. END Test.
  8153. positive: procedure with a parameter of variable open array type
  8154. MODULE Test;
  8155. TYPE Array = ARRAY OF RECORD END;
  8156. PROCEDURE Procedure (VAR parameter: Array);
  8157. END Procedure;
  8158. END Test.
  8159. positive: procedure with parameters of variable open array type
  8160. MODULE Test;
  8161. TYPE Array = ARRAY OF RECORD END;
  8162. PROCEDURE Procedure (VAR a, b, c: Array);
  8163. END Procedure;
  8164. END Test.
  8165. positive: procedure with a parameter of constant open array type
  8166. MODULE Test;
  8167. TYPE Array = ARRAY OF RECORD END;
  8168. PROCEDURE Procedure (CONST parameter: Array);
  8169. END Procedure;
  8170. END Test.
  8171. positive: procedure with parameters of constant open array type
  8172. MODULE Test;
  8173. TYPE Array = ARRAY OF RECORD END;
  8174. PROCEDURE Procedure (CONST a, b, c: Array);
  8175. END Procedure;
  8176. END Test.
  8177. positive: procedure with intermixed parameters of open array type
  8178. MODULE Test;
  8179. TYPE Array = ARRAY OF RECORD END;
  8180. PROCEDURE Procedure (a: Array; VAR b: Array; CONST c: Array);
  8181. END Procedure;
  8182. END Test.
  8183. positive: procedure with a parameter of anonymous open array type
  8184. MODULE Test;
  8185. PROCEDURE Procedure (parameter: ARRAY OF RECORD END);
  8186. END Procedure;
  8187. END Test.
  8188. positive: procedure with parameters of anonymous open array type
  8189. MODULE Test;
  8190. PROCEDURE Procedure (a, b, c: ARRAY OF RECORD END);
  8191. END Procedure;
  8192. END Test.
  8193. positive: procedure with a parameter of variable anonymous open array type
  8194. MODULE Test;
  8195. PROCEDURE Procedure (VAR parameter: ARRAY OF RECORD END);
  8196. END Procedure;
  8197. END Test.
  8198. positive: procedure with parameters of variable anonymous open array type
  8199. MODULE Test;
  8200. PROCEDURE Procedure (VAR a, b, c: ARRAY OF RECORD END);
  8201. END Procedure;
  8202. END Test.
  8203. positive: procedure with a parameter of constant anonymous open array type
  8204. MODULE Test;
  8205. PROCEDURE Procedure (CONST parameter: ARRAY OF RECORD END);
  8206. END Procedure;
  8207. END Test.
  8208. positive: procedure with parameters of constant anonymous open array type
  8209. MODULE Test;
  8210. PROCEDURE Procedure (CONST a, b, c: ARRAY OF RECORD END);
  8211. END Procedure;
  8212. END Test.
  8213. positive: procedure with intermixed parameters of anonymous open array type
  8214. MODULE Test;
  8215. PROCEDURE Procedure (a: ARRAY OF RECORD END; VAR b: ARRAY OF RECORD END; CONST c: ARRAY OF RECORD END);
  8216. END Procedure;
  8217. END Test.
  8218. positive: procedure with a parameter of object type
  8219. MODULE Test;
  8220. TYPE Object = OBJECT END Object;
  8221. PROCEDURE Procedure (parameter: Object);
  8222. END Procedure;
  8223. END Test.
  8224. positive: procedure with a parameter of plain object type
  8225. MODULE Test;
  8226. TYPE Object = OBJECT;
  8227. PROCEDURE Procedure (parameter: Object);
  8228. END Procedure;
  8229. END Test.
  8230. positive: procedure with parameters of object type
  8231. MODULE Test;
  8232. TYPE Object = OBJECT END Object;
  8233. PROCEDURE Procedure (a, b, c: Object);
  8234. END Procedure;
  8235. END Test.
  8236. positive: procedure with a parameter of variable object type
  8237. MODULE Test;
  8238. TYPE Object = OBJECT END Object;
  8239. PROCEDURE Procedure (VAR parameter: Object);
  8240. END Procedure;
  8241. END Test.
  8242. positive: procedure with parameters of variable object type
  8243. MODULE Test;
  8244. TYPE Object = OBJECT END Object;
  8245. PROCEDURE Procedure (VAR a, b, c: Object);
  8246. END Procedure;
  8247. END Test.
  8248. positive: procedure with a parameter of constant object type
  8249. MODULE Test;
  8250. TYPE Object = OBJECT END Object;
  8251. PROCEDURE Procedure (CONST parameter: Object);
  8252. END Procedure;
  8253. END Test.
  8254. positive: procedure with parameters of constant object type
  8255. MODULE Test;
  8256. TYPE Object = OBJECT END Object;
  8257. PROCEDURE Procedure (CONST a, b, c: Object);
  8258. END Procedure;
  8259. END Test.
  8260. positive: procedure with intermixed parameters of object type
  8261. MODULE Test;
  8262. TYPE Object = OBJECT END Object;
  8263. PROCEDURE Procedure (a: Object; VAR b: Object; CONST c: Object);
  8264. END Procedure;
  8265. END Test.
  8266. positive: procedure with intermixed parameters of plain object type
  8267. MODULE Test;
  8268. TYPE Object = OBJECT;
  8269. PROCEDURE Procedure (a: Object; VAR b: Object; CONST c: Object);
  8270. END Procedure;
  8271. END Test.
  8272. positive: procedure with a parameter of anonymous object type
  8273. MODULE Test;
  8274. PROCEDURE Procedure (parameter: OBJECT END);
  8275. END Procedure;
  8276. END Test.
  8277. positive: procedure with a parameter of anonymous plain object type
  8278. MODULE Test;
  8279. PROCEDURE Procedure (parameter: OBJECT);
  8280. END Procedure;
  8281. END Test.
  8282. positive: procedure with parameters of anonymous object type
  8283. MODULE Test;
  8284. PROCEDURE Procedure (a, b, c: OBJECT END);
  8285. END Procedure;
  8286. END Test.
  8287. positive: procedure with a parameter of variable anonymous object type
  8288. MODULE Test;
  8289. PROCEDURE Procedure (VAR parameter: OBJECT END);
  8290. END Procedure;
  8291. END Test.
  8292. positive: procedure with parameters of variable anonymous object type
  8293. MODULE Test;
  8294. PROCEDURE Procedure (VAR a, b, c: OBJECT END);
  8295. END Procedure;
  8296. END Test.
  8297. positive: procedure with a parameter of constant anonymous object type
  8298. MODULE Test;
  8299. PROCEDURE Procedure (CONST parameter: OBJECT END);
  8300. END Procedure;
  8301. END Test.
  8302. positive: procedure with parameters of constant anonymous object type
  8303. MODULE Test;
  8304. PROCEDURE Procedure (CONST a, b, c: OBJECT END);
  8305. END Procedure;
  8306. END Test.
  8307. positive: procedure with intermixed parameters of anonymous object type
  8308. MODULE Test;
  8309. PROCEDURE Procedure (a: OBJECT END; VAR b: OBJECT END; CONST c: OBJECT END);
  8310. END Procedure;
  8311. END Test.
  8312. positive: procedure with intermixed parameters of anonymous plain object type
  8313. MODULE Test;
  8314. PROCEDURE Procedure (a: OBJECT; VAR b: OBJECT; CONST c: OBJECT);
  8315. END Procedure;
  8316. END Test.
  8317. positive: procedure with a parameter of pointer type
  8318. MODULE Test;
  8319. TYPE Pointer = POINTER TO RECORD END;
  8320. PROCEDURE Procedure (parameter: Pointer);
  8321. END Procedure;
  8322. END Test.
  8323. positive: procedure with parameters of pointer type
  8324. MODULE Test;
  8325. TYPE Pointer = POINTER TO RECORD END;
  8326. PROCEDURE Procedure (a, b, c: Pointer);
  8327. END Procedure;
  8328. END Test.
  8329. positive: procedure with a parameter of variable pointer type
  8330. MODULE Test;
  8331. TYPE Pointer = POINTER TO RECORD END;
  8332. PROCEDURE Procedure (VAR parameter: Pointer);
  8333. END Procedure;
  8334. END Test.
  8335. positive: procedure with parameters of variable pointer type
  8336. MODULE Test;
  8337. TYPE Pointer = POINTER TO RECORD END;
  8338. PROCEDURE Procedure (VAR a, b, c: Pointer);
  8339. END Procedure;
  8340. END Test.
  8341. positive: procedure with a parameter of constant pointer type
  8342. MODULE Test;
  8343. TYPE Pointer = POINTER TO RECORD END;
  8344. PROCEDURE Procedure (CONST parameter: Pointer);
  8345. END Procedure;
  8346. END Test.
  8347. positive: procedure with parameters of constant pointer type
  8348. MODULE Test;
  8349. TYPE Pointer = POINTER TO RECORD END;
  8350. PROCEDURE Procedure (CONST a, b, c: Pointer);
  8351. END Procedure;
  8352. END Test.
  8353. positive: procedure with intermixed parameters of pointer type
  8354. MODULE Test;
  8355. TYPE Pointer = POINTER TO RECORD END;
  8356. PROCEDURE Procedure (a: Pointer; VAR b: Pointer; CONST c: Pointer);
  8357. END Procedure;
  8358. END Test.
  8359. positive: procedure with a parameter of anonymous pointer type
  8360. MODULE Test;
  8361. PROCEDURE Procedure (parameter: POINTER TO RECORD END);
  8362. END Procedure;
  8363. END Test.
  8364. positive: procedure with parameters of anonymous pointer type
  8365. MODULE Test;
  8366. PROCEDURE Procedure (a, b, c: POINTER TO RECORD END);
  8367. END Procedure;
  8368. END Test.
  8369. positive: procedure with a parameter of variable anonymous pointer type
  8370. MODULE Test;
  8371. PROCEDURE Procedure (VAR parameter: POINTER TO RECORD END);
  8372. END Procedure;
  8373. END Test.
  8374. positive: procedure with parameters of variable anonymous pointer type
  8375. MODULE Test;
  8376. PROCEDURE Procedure (VAR a, b, c: POINTER TO RECORD END);
  8377. END Procedure;
  8378. END Test.
  8379. positive: procedure with a parameter of constant anonymous pointer type
  8380. MODULE Test;
  8381. PROCEDURE Procedure (CONST parameter: OBJECT END);
  8382. END Procedure;
  8383. END Test.
  8384. positive: procedure with parameters of constant anonymous pointer type
  8385. MODULE Test;
  8386. PROCEDURE Procedure (CONST a, b, c: POINTER TO RECORD END);
  8387. END Procedure;
  8388. END Test.
  8389. positive: procedure with intermixed parameters of anonymous pointer type
  8390. MODULE Test;
  8391. PROCEDURE Procedure (a: POINTER TO RECORD END; VAR b: POINTER TO RECORD END; CONST c: POINTER TO RECORD END);
  8392. END Procedure;
  8393. END Test.
  8394. positive: procedure with a parameter of procedure type
  8395. MODULE Test;
  8396. TYPE Proc = PROCEDURE;
  8397. PROCEDURE Procedure (parameter: Proc);
  8398. END Procedure;
  8399. END Test.
  8400. positive: procedure with parameters of procedure type
  8401. MODULE Test;
  8402. TYPE Proc = PROCEDURE;
  8403. PROCEDURE Procedure (a, b, c: Proc);
  8404. END Procedure;
  8405. END Test.
  8406. positive: procedure with a parameter of variable procedure type
  8407. MODULE Test;
  8408. TYPE Proc = PROCEDURE;
  8409. PROCEDURE Procedure (VAR parameter: Proc);
  8410. END Procedure;
  8411. END Test.
  8412. positive: procedure with parameters of variable procedure type
  8413. MODULE Test;
  8414. TYPE Proc = PROCEDURE;
  8415. PROCEDURE Procedure (VAR a, b, c: Proc);
  8416. END Procedure;
  8417. END Test.
  8418. positive: procedure with a parameter of constant procedure type
  8419. MODULE Test;
  8420. TYPE Proc = PROCEDURE;
  8421. PROCEDURE Procedure (CONST parameter: Proc);
  8422. END Procedure;
  8423. END Test.
  8424. positive: procedure with parameters of constant procedure type
  8425. MODULE Test;
  8426. TYPE Proc = PROCEDURE;
  8427. PROCEDURE Procedure (CONST a, b, c: Proc);
  8428. END Procedure;
  8429. END Test.
  8430. positive: procedure with intermixed parameters of procedure type
  8431. MODULE Test;
  8432. TYPE Proc = PROCEDURE;
  8433. PROCEDURE Procedure (a: Proc; VAR b: Proc; CONST c: Proc);
  8434. END Procedure;
  8435. END Test.
  8436. positive: procedure with a parameter of anonymous procedure type
  8437. MODULE Test;
  8438. PROCEDURE Procedure (parameter: PROCEDURE);
  8439. END Procedure;
  8440. END Test.
  8441. positive: procedure with parameters of anonymous procedure type
  8442. MODULE Test;
  8443. PROCEDURE Procedure (a, b, c: PROCEDURE);
  8444. END Procedure;
  8445. END Test.
  8446. positive: procedure with a parameter of variable anonymous procedure type
  8447. MODULE Test;
  8448. PROCEDURE Procedure (VAR parameter: PROCEDURE);
  8449. END Procedure;
  8450. END Test.
  8451. positive: procedure with parameters of variable anonymous procedure type
  8452. MODULE Test;
  8453. PROCEDURE Procedure (VAR a, b, c: PROCEDURE);
  8454. END Procedure;
  8455. END Test.
  8456. positive: procedure with a parameter of constant anonymous procedure type
  8457. MODULE Test;
  8458. PROCEDURE Procedure (CONST parameter: PROCEDURE);
  8459. END Procedure;
  8460. END Test.
  8461. positive: procedure with parameters of constant anonymous procedure type
  8462. MODULE Test;
  8463. PROCEDURE Procedure (CONST a, b, c: PROCEDURE);
  8464. END Procedure;
  8465. END Test.
  8466. positive: procedure with intermixed parameters of anonymous procedure type
  8467. MODULE Test;
  8468. PROCEDURE Procedure (a: PROCEDURE; VAR b: PROCEDURE; CONST c: PROCEDURE);
  8469. END Procedure;
  8470. END Test.
  8471. negative: procedure with parameters of local type
  8472. MODULE Test;
  8473. PROCEDURE Procedure (parameter: Type);
  8474. TYPE Type = RECORD END;
  8475. END Procedure;
  8476. END Test.
  8477. negative: procedure with parameter and local constant with same name
  8478. MODULE Test;
  8479. PROCEDURE Procedure (parameter: SET);
  8480. CONST parameter = 10;
  8481. END Procedure;
  8482. END Test.
  8483. negative: procedure with parameter and local type with same name
  8484. MODULE Test;
  8485. PROCEDURE Procedure (parameter: SET);
  8486. TYPE parameter = RECORD END;
  8487. END Procedure;
  8488. END Test.
  8489. negative: procedure with parameter and local variable with same name
  8490. MODULE Test;
  8491. PROCEDURE Procedure (parameter: SET);
  8492. VAR parameter: LONGINT;
  8493. END Procedure;
  8494. END Test.
  8495. negative: procedure with parameter and nested procedure with same name
  8496. MODULE Test;
  8497. PROCEDURE Procedure (parameter: SET);
  8498. PROCEDURE parameter; END parameter;
  8499. END Procedure;
  8500. END Test.
  8501. positive: boolean parameter assignment
  8502. MODULE Test;
  8503. PROCEDURE Procedure (value: BOOLEAN); BEGIN value := value; END Procedure;
  8504. END Test.
  8505. positive: char parameter assignment
  8506. MODULE Test;
  8507. PROCEDURE Procedure (value: CHAR); BEGIN value := value; END Procedure;
  8508. END Test.
  8509. positive: short integer parameter assignment
  8510. MODULE Test;
  8511. PROCEDURE Procedure (value: SHORTINT); BEGIN value := value; END Procedure;
  8512. END Test.
  8513. positive: integer parameter assignment
  8514. MODULE Test;
  8515. PROCEDURE Procedure (VAR value: INTEGER); BEGIN value := value; END Procedure;
  8516. END Test.
  8517. positive: long integer parameter assignment
  8518. MODULE Test;
  8519. PROCEDURE Procedure (value: LONGINT); BEGIN value := value; END Procedure;
  8520. END Test.
  8521. positive: huge integer parameter assignment
  8522. MODULE Test;
  8523. PROCEDURE Procedure (value: HUGEINT); BEGIN value := value; END Procedure;
  8524. END Test.
  8525. positive: real parameter assignment
  8526. MODULE Test;
  8527. PROCEDURE Procedure (value: REAL); BEGIN value := value; END Procedure;
  8528. END Test.
  8529. positive: long real parameter assignment
  8530. MODULE Test;
  8531. PROCEDURE Procedure (value: LONGREAL); BEGIN value := value; END Procedure;
  8532. END Test.
  8533. positive: set parameter assignment
  8534. MODULE Test;
  8535. PROCEDURE Procedure (value: SET); BEGIN value := value; END Procedure;
  8536. END Test.
  8537. positive: array parameter assignment
  8538. MODULE Test;
  8539. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8540. END Test.
  8541. positive: array parameter element assignment
  8542. MODULE Test;
  8543. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8544. END Test.
  8545. negative: open array parameter assignment
  8546. MODULE Test;
  8547. PROCEDURE Procedure (value: ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8548. END Test.
  8549. positive: open array parameter element assignment
  8550. MODULE Test;
  8551. PROCEDURE Procedure (value: ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8552. END Test.
  8553. positive: record parameter assignment
  8554. MODULE Test;
  8555. PROCEDURE Procedure (value: RECORD END); BEGIN value := value; END Procedure;
  8556. END Test.
  8557. positive: record parameter member assignment
  8558. MODULE Test;
  8559. PROCEDURE Procedure (value: RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8560. END Test.
  8561. positive: object parameter assignment
  8562. MODULE Test;
  8563. PROCEDURE Procedure (value: OBJECT END); BEGIN value := value; END Procedure;
  8564. END Test.
  8565. positive: object parameter member assignment
  8566. MODULE Test;
  8567. PROCEDURE Procedure (value: OBJECT VAR member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8568. END Test.
  8569. positive: base object parameter assignment
  8570. MODULE Test;
  8571. PROCEDURE Procedure (value: OBJECT); BEGIN value := value; END Procedure;
  8572. END Test.
  8573. positive: pointer to array parameter assignment
  8574. MODULE Test;
  8575. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8576. END Test.
  8577. positive: pointer to array parameter element assignment
  8578. MODULE Test;
  8579. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8580. END Test.
  8581. positive: pointer to open array parameter assignment
  8582. MODULE Test;
  8583. PROCEDURE Procedure (value: POINTER TO ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8584. END Test.
  8585. positive: pointer to open array parameter element assignment
  8586. MODULE Test;
  8587. PROCEDURE Procedure (value: POINTER TO ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8588. END Test.
  8589. positive: pointer to record parameter assignment
  8590. MODULE Test;
  8591. PROCEDURE Procedure (value: POINTER TO RECORD END); BEGIN value := value; END Procedure;
  8592. END Test.
  8593. positive: pointer to record parameter member assignment
  8594. MODULE Test;
  8595. PROCEDURE Procedure (value: POINTER TO RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8596. END Test.
  8597. positive: procedure parameter assignment
  8598. MODULE Test;
  8599. PROCEDURE Procedure (value: PROCEDURE); BEGIN value := value; END Procedure;
  8600. END Test.
  8601. positive: variable boolean parameter assignment
  8602. MODULE Test;
  8603. PROCEDURE Procedure (VAR value: BOOLEAN); BEGIN value := value; END Procedure;
  8604. END Test.
  8605. positive: variable char parameter assignment
  8606. MODULE Test;
  8607. PROCEDURE Procedure (VAR value: CHAR); BEGIN value := value; END Procedure;
  8608. END Test.
  8609. positive: variable short integer parameter assignment
  8610. MODULE Test;
  8611. PROCEDURE Procedure (VAR value: SHORTINT); BEGIN value := value; END Procedure;
  8612. END Test.
  8613. positive: variable integer parameter assignment
  8614. MODULE Test;
  8615. PROCEDURE Procedure (VAR value: INTEGER); BEGIN value := value; END Procedure;
  8616. END Test.
  8617. positive: variable long integer parameter assignment
  8618. MODULE Test;
  8619. PROCEDURE Procedure (VAR value: LONGINT); BEGIN value := value; END Procedure;
  8620. END Test.
  8621. positive: variable huge integer parameter assignment
  8622. MODULE Test;
  8623. PROCEDURE Procedure (VAR value: HUGEINT); BEGIN value := value; END Procedure;
  8624. END Test.
  8625. positive: variable real parameter assignment
  8626. MODULE Test;
  8627. PROCEDURE Procedure (VAR value: REAL); BEGIN value := value; END Procedure;
  8628. END Test.
  8629. positive: variable long real parameter assignment
  8630. MODULE Test;
  8631. PROCEDURE Procedure (VAR value: LONGREAL); BEGIN value := value; END Procedure;
  8632. END Test.
  8633. positive: variable set parameter assignment
  8634. MODULE Test;
  8635. PROCEDURE Procedure (VAR value: SET); BEGIN value := value; END Procedure;
  8636. END Test.
  8637. positive: variable array parameter assignment
  8638. MODULE Test;
  8639. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8640. END Test.
  8641. positive: variable array parameter element assignment
  8642. MODULE Test;
  8643. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8644. END Test.
  8645. negative: variable open array parameter assignment
  8646. MODULE Test;
  8647. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8648. END Test.
  8649. positive: variable open array parameter element assignment
  8650. MODULE Test;
  8651. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8652. END Test.
  8653. positive: variable record parameter assignment
  8654. MODULE Test;
  8655. PROCEDURE Procedure (VAR value: RECORD END); BEGIN value := value; END Procedure;
  8656. END Test.
  8657. positive: variable record parameter member assignment
  8658. MODULE Test;
  8659. PROCEDURE Procedure (VAR value: RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8660. END Test.
  8661. positive: variable object parameter assignment
  8662. MODULE Test;
  8663. PROCEDURE Procedure (VAR value: OBJECT END); BEGIN value := value; END Procedure;
  8664. END Test.
  8665. positive: variable object parameter member assignment
  8666. MODULE Test;
  8667. PROCEDURE Procedure (VAR value: OBJECT VAR member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8668. END Test.
  8669. positive: variable base object parameter assignment
  8670. MODULE Test;
  8671. PROCEDURE Procedure (VAR value: OBJECT); BEGIN value := value; END Procedure;
  8672. END Test.
  8673. positive: variable pointer to array parameter assignment
  8674. MODULE Test;
  8675. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8676. END Test.
  8677. positive: variable pointer to array parameter element assignment
  8678. MODULE Test;
  8679. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8680. END Test.
  8681. positive: variable pointer to open array parameter assignment
  8682. MODULE Test;
  8683. PROCEDURE Procedure (VAR value: POINTER TO ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8684. END Test.
  8685. positive: variable pointer to open array parameter element assignment
  8686. MODULE Test;
  8687. PROCEDURE Procedure (VAR value: POINTER TO ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8688. END Test.
  8689. positive: variable pointer to record parameter assignment
  8690. MODULE Test;
  8691. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); BEGIN value := value; END Procedure;
  8692. END Test.
  8693. positive: variable pointer to record parameter member assignment
  8694. MODULE Test;
  8695. PROCEDURE Procedure (VAR value: POINTER TO RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8696. END Test.
  8697. positive: variable procedure parameter assignment
  8698. MODULE Test;
  8699. PROCEDURE Procedure (VAR value: PROCEDURE); BEGIN value := value; END Procedure;
  8700. END Test.
  8701. negative: constant boolean parameter assignment
  8702. MODULE Test;
  8703. PROCEDURE Procedure (CONST value: BOOLEAN); BEGIN value := value; END Procedure;
  8704. END Test.
  8705. negative: constant char parameter assignment
  8706. MODULE Test;
  8707. PROCEDURE Procedure (CONST value: CHAR); BEGIN value := value; END Procedure;
  8708. END Test.
  8709. negative: constant short integer parameter assignment
  8710. MODULE Test;
  8711. PROCEDURE Procedure (CONST value: SHORTINT); BEGIN value := value; END Procedure;
  8712. END Test.
  8713. negative: constant integer parameter assignment
  8714. MODULE Test;
  8715. PROCEDURE Procedure (CONST value: INTEGER); BEGIN value := value; END Procedure;
  8716. END Test.
  8717. negative: constant long integer parameter assignment
  8718. MODULE Test;
  8719. PROCEDURE Procedure (CONST value: LONGINT); BEGIN value := value; END Procedure;
  8720. END Test.
  8721. negative: constant huge integer parameter assignment
  8722. MODULE Test;
  8723. PROCEDURE Procedure (CONST value: HUGEINT); BEGIN value := value; END Procedure;
  8724. END Test.
  8725. negative: constant real parameter assignment
  8726. MODULE Test;
  8727. PROCEDURE Procedure (CONST value: REAL); BEGIN value := value; END Procedure;
  8728. END Test.
  8729. negative: constant long real parameter assignment
  8730. MODULE Test;
  8731. PROCEDURE Procedure (CONST value: LONGREAL); BEGIN value := value; END Procedure;
  8732. END Test.
  8733. negative: constant set parameter assignment
  8734. MODULE Test;
  8735. PROCEDURE Procedure (CONST value: SET); BEGIN value := value; END Procedure;
  8736. END Test.
  8737. negative: constant array parameter assignment
  8738. MODULE Test;
  8739. PROCEDURE Procedure (CONST value: ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8740. END Test.
  8741. negative: constant array parameter element assignment
  8742. MODULE Test;
  8743. PROCEDURE Procedure (CONST value: ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8744. END Test.
  8745. negative: constant open array parameter assignment
  8746. MODULE Test;
  8747. PROCEDURE Procedure (CONST value: ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8748. END Test.
  8749. negative: constant open array parameter element assignment
  8750. MODULE Test;
  8751. PROCEDURE Procedure (CONST value: ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8752. END Test.
  8753. negative: constant record parameter assignment
  8754. MODULE Test;
  8755. PROCEDURE Procedure (CONST value: RECORD END); BEGIN value := value; END Procedure;
  8756. END Test.
  8757. negative: constant record parameter member assignment
  8758. MODULE Test;
  8759. PROCEDURE Procedure (CONST value: RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8760. END Test.
  8761. negative: constant object parameter assignment
  8762. MODULE Test;
  8763. PROCEDURE Procedure (CONST value: OBJECT END); BEGIN value := value; END Procedure;
  8764. END Test.
  8765. positive: constant object parameter member assignment
  8766. MODULE Test;
  8767. PROCEDURE Procedure (CONST value: OBJECT VAR member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8768. END Test.
  8769. negative: constant base object parameter assignment
  8770. MODULE Test;
  8771. PROCEDURE Procedure (CONST value: OBJECT); BEGIN value := value; END Procedure;
  8772. END Test.
  8773. negative: constant pointer to array parameter assignment
  8774. MODULE Test;
  8775. PROCEDURE Procedure (CONST value: POINTER TO ARRAY 10 OF CHAR); BEGIN value := value; END Procedure;
  8776. END Test.
  8777. positive: constant pointer to array parameter element assignment
  8778. MODULE Test;
  8779. PROCEDURE Procedure (CONST value: POINTER TO ARRAY 10 OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8780. END Test.
  8781. negative: constant pointer to open array parameter assignment
  8782. MODULE Test;
  8783. PROCEDURE Procedure (CONST value: POINTER TO ARRAY OF CHAR); BEGIN value := value; END Procedure;
  8784. END Test.
  8785. positive: constant pointer to open array parameter element assignment
  8786. MODULE Test;
  8787. PROCEDURE Procedure (CONST value: POINTER TO ARRAY OF CHAR); BEGIN value[0] := value[0]; END Procedure;
  8788. END Test.
  8789. negative: constant pointer to record parameter assignment
  8790. MODULE Test;
  8791. PROCEDURE Procedure (CONST value: POINTER TO RECORD END); BEGIN value := value; END Procedure;
  8792. END Test.
  8793. positive: constant pointer to record parameter member assignment
  8794. MODULE Test;
  8795. PROCEDURE Procedure (CONST value: POINTER TO RECORD member: INTEGER END); BEGIN value.member := value.member; END Procedure;
  8796. END Test.
  8797. negative: constant procedure parameter assignment
  8798. MODULE Test;
  8799. PROCEDURE Procedure (CONST value: PROCEDURE); BEGIN value := value; END Procedure;
  8800. END Test.
  8801. positive: calling procedure with boolean parameter with boolean argument
  8802. MODULE Test;
  8803. VAR argument: BOOLEAN;
  8804. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8805. BEGIN Procedure (argument);
  8806. END Test.
  8807. negative: calling procedure with boolean parameter with character argument
  8808. MODULE Test;
  8809. VAR argument: CHAR;
  8810. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8811. BEGIN Procedure (argument);
  8812. END Test.
  8813. negative: calling procedure with boolean parameter with short integer argument
  8814. MODULE Test;
  8815. VAR argument: SHORTINT;
  8816. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8817. BEGIN Procedure (argument);
  8818. END Test.
  8819. negative: calling procedure with boolean parameter with integer argument
  8820. MODULE Test;
  8821. VAR argument: INTEGER;
  8822. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8823. BEGIN Procedure (argument);
  8824. END Test.
  8825. negative: calling procedure with boolean parameter with long integer argument
  8826. MODULE Test;
  8827. VAR argument: LONGINT;
  8828. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8829. BEGIN Procedure (argument);
  8830. END Test.
  8831. negative: calling procedure with boolean parameter with huge integer argument
  8832. MODULE Test;
  8833. VAR argument: HUGEINT;
  8834. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8835. BEGIN Procedure (argument);
  8836. END Test.
  8837. negative: calling procedure with boolean parameter with real argument
  8838. MODULE Test;
  8839. VAR argument: REAL;
  8840. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8841. BEGIN Procedure (argument);
  8842. END Test.
  8843. negative: calling procedure with boolean parameter with long real argument
  8844. MODULE Test;
  8845. VAR argument: LONGREAL;
  8846. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8847. BEGIN Procedure (argument);
  8848. END Test.
  8849. negative: calling procedure with boolean parameter with set argument
  8850. MODULE Test;
  8851. VAR argument: SET;
  8852. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8853. BEGIN Procedure (argument);
  8854. END Test.
  8855. negative: calling procedure with boolean parameter with array argument
  8856. MODULE Test;
  8857. VAR argument: ARRAY 10 OF CHAR;
  8858. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8859. BEGIN Procedure (argument);
  8860. END Test.
  8861. negative: calling procedure with boolean parameter with record argument
  8862. MODULE Test;
  8863. VAR argument: RECORD END;
  8864. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8865. BEGIN Procedure (argument);
  8866. END Test.
  8867. negative: calling procedure with boolean parameter with object argument
  8868. MODULE Test;
  8869. VAR argument: OBJECT END;
  8870. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8871. BEGIN Procedure (argument);
  8872. END Test.
  8873. negative: calling procedure with boolean parameter with base object argument
  8874. MODULE Test;
  8875. VAR argument: OBJECT;
  8876. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8877. BEGIN Procedure (argument);
  8878. END Test.
  8879. negative: calling procedure with boolean parameter with pointer to array argument
  8880. MODULE Test;
  8881. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  8882. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8883. BEGIN Procedure (argument);
  8884. END Test.
  8885. negative: calling procedure with boolean parameter with pointer to record argument
  8886. MODULE Test;
  8887. VAR argument: POINTER TO RECORD END;
  8888. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8889. BEGIN Procedure (argument);
  8890. END Test.
  8891. negative: calling procedure with boolean parameter with procedure argument
  8892. MODULE Test;
  8893. VAR argument: PROCEDURE;
  8894. PROCEDURE Procedure (value: BOOLEAN); END Procedure;
  8895. BEGIN Procedure (argument);
  8896. END Test.
  8897. negative: calling procedure with character parameter with boolean argument
  8898. MODULE Test;
  8899. VAR argument: BOOLEAN;
  8900. PROCEDURE Procedure (value: CHAR); END Procedure;
  8901. BEGIN Procedure (argument);
  8902. END Test.
  8903. positive: calling procedure with character parameter with character argument
  8904. MODULE Test;
  8905. VAR argument: CHAR;
  8906. PROCEDURE Procedure (value: CHAR); END Procedure;
  8907. BEGIN Procedure (argument);
  8908. END Test.
  8909. negative: calling procedure with character parameter with short integer argument
  8910. MODULE Test;
  8911. VAR argument: SHORTINT;
  8912. PROCEDURE Procedure (value: CHAR); END Procedure;
  8913. BEGIN Procedure (argument);
  8914. END Test.
  8915. negative: calling procedure with character parameter with integer argument
  8916. MODULE Test;
  8917. VAR argument: INTEGER;
  8918. PROCEDURE Procedure (value: CHAR); END Procedure;
  8919. BEGIN Procedure (argument);
  8920. END Test.
  8921. negative: calling procedure with character parameter with long integer argument
  8922. MODULE Test;
  8923. VAR argument: LONGINT;
  8924. PROCEDURE Procedure (value: CHAR); END Procedure;
  8925. BEGIN Procedure (argument);
  8926. END Test.
  8927. negative: calling procedure with character parameter with huge integer argument
  8928. MODULE Test;
  8929. VAR argument: HUGEINT;
  8930. PROCEDURE Procedure (value: CHAR); END Procedure;
  8931. BEGIN Procedure (argument);
  8932. END Test.
  8933. negative: calling procedure with character parameter with real argument
  8934. MODULE Test;
  8935. VAR argument: REAL;
  8936. PROCEDURE Procedure (value: CHAR); END Procedure;
  8937. BEGIN Procedure (argument);
  8938. END Test.
  8939. negative: calling procedure with character parameter with long real argument
  8940. MODULE Test;
  8941. VAR argument: LONGREAL;
  8942. PROCEDURE Procedure (value: CHAR); END Procedure;
  8943. BEGIN Procedure (argument);
  8944. END Test.
  8945. negative: calling procedure with character parameter with set argument
  8946. MODULE Test;
  8947. VAR argument: SET;
  8948. PROCEDURE Procedure (value: CHAR); END Procedure;
  8949. BEGIN Procedure (argument);
  8950. END Test.
  8951. negative: calling procedure with character parameter with array argument
  8952. MODULE Test;
  8953. VAR argument: ARRAY 10 OF CHAR;
  8954. PROCEDURE Procedure (value: CHAR); END Procedure;
  8955. BEGIN Procedure (argument);
  8956. END Test.
  8957. negative: calling procedure with character parameter with record argument
  8958. MODULE Test;
  8959. VAR argument: RECORD END;
  8960. PROCEDURE Procedure (value: CHAR); END Procedure;
  8961. BEGIN Procedure (argument);
  8962. END Test.
  8963. negative: calling procedure with character parameter with object argument
  8964. MODULE Test;
  8965. VAR argument: OBJECT END;
  8966. PROCEDURE Procedure (value: CHAR); END Procedure;
  8967. BEGIN Procedure (argument);
  8968. END Test.
  8969. negative: calling procedure with character parameter with base object argument
  8970. MODULE Test;
  8971. VAR argument: OBJECT;
  8972. PROCEDURE Procedure (value: CHAR); END Procedure;
  8973. BEGIN Procedure (argument);
  8974. END Test.
  8975. negative: calling procedure with character parameter with pointer to array argument
  8976. MODULE Test;
  8977. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  8978. PROCEDURE Procedure (value: CHAR); END Procedure;
  8979. BEGIN Procedure (argument);
  8980. END Test.
  8981. negative: calling procedure with character parameter with pointer to record argument
  8982. MODULE Test;
  8983. VAR argument: POINTER TO RECORD END;
  8984. PROCEDURE Procedure (value: CHAR); END Procedure;
  8985. BEGIN Procedure (argument);
  8986. END Test.
  8987. negative: calling procedure with character parameter with procedure argument
  8988. MODULE Test;
  8989. VAR argument: PROCEDURE;
  8990. PROCEDURE Procedure (value: CHAR); END Procedure;
  8991. BEGIN Procedure (argument);
  8992. END Test.
  8993. negative: calling procedure with short integer parameter with boolean argument
  8994. MODULE Test;
  8995. VAR argument: BOOLEAN;
  8996. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  8997. BEGIN Procedure (argument);
  8998. END Test.
  8999. negative: calling procedure with short integer parameter with character argument
  9000. MODULE Test;
  9001. VAR argument: CHAR;
  9002. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9003. BEGIN Procedure (argument);
  9004. END Test.
  9005. positive: calling procedure with short integer parameter with short integer argument
  9006. MODULE Test;
  9007. VAR argument: SHORTINT;
  9008. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9009. BEGIN Procedure (argument);
  9010. END Test.
  9011. negative: calling procedure with short integer parameter with integer argument
  9012. MODULE Test;
  9013. VAR argument: INTEGER;
  9014. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9015. BEGIN Procedure (argument);
  9016. END Test.
  9017. negative: calling procedure with short integer parameter with long integer argument
  9018. MODULE Test;
  9019. VAR argument: LONGINT;
  9020. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9021. BEGIN Procedure (argument);
  9022. END Test.
  9023. negative: calling procedure with short integer parameter with huge integer argument
  9024. MODULE Test;
  9025. VAR argument: HUGEINT;
  9026. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9027. BEGIN Procedure (argument);
  9028. END Test.
  9029. negative: calling procedure with short integer parameter with real argument
  9030. MODULE Test;
  9031. VAR argument: REAL;
  9032. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9033. BEGIN Procedure (argument);
  9034. END Test.
  9035. negative: calling procedure with short integer parameter with long real argument
  9036. MODULE Test;
  9037. VAR argument: LONGREAL;
  9038. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9039. BEGIN Procedure (argument);
  9040. END Test.
  9041. negative: calling procedure with short integer parameter with set argument
  9042. MODULE Test;
  9043. VAR argument: SET;
  9044. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9045. BEGIN Procedure (argument);
  9046. END Test.
  9047. negative: calling procedure with short integer parameter with array argument
  9048. MODULE Test;
  9049. VAR argument: ARRAY 10 OF CHAR;
  9050. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9051. BEGIN Procedure (argument);
  9052. END Test.
  9053. negative: calling procedure with short integer parameter with record argument
  9054. MODULE Test;
  9055. VAR argument: RECORD END;
  9056. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9057. BEGIN Procedure (argument);
  9058. END Test.
  9059. negative: calling procedure with short integer parameter with object argument
  9060. MODULE Test;
  9061. VAR argument: OBJECT END;
  9062. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9063. BEGIN Procedure (argument);
  9064. END Test.
  9065. negative: calling procedure with short integer parameter with base object argument
  9066. MODULE Test;
  9067. VAR argument: OBJECT;
  9068. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9069. BEGIN Procedure (argument);
  9070. END Test.
  9071. negative: calling procedure with short integer parameter with pointer to array argument
  9072. MODULE Test;
  9073. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9074. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9075. BEGIN Procedure (argument);
  9076. END Test.
  9077. negative: calling procedure with short integer parameter with pointer to record argument
  9078. MODULE Test;
  9079. VAR argument: POINTER TO RECORD END;
  9080. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9081. BEGIN Procedure (argument);
  9082. END Test.
  9083. negative: calling procedure with short integer parameter with procedure argument
  9084. MODULE Test;
  9085. VAR argument: PROCEDURE;
  9086. PROCEDURE Procedure (value: SHORTINT); END Procedure;
  9087. BEGIN Procedure (argument);
  9088. END Test.
  9089. negative: calling procedure with integer parameter with boolean argument
  9090. MODULE Test;
  9091. VAR argument: BOOLEAN;
  9092. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9093. BEGIN Procedure (argument);
  9094. END Test.
  9095. negative: calling procedure with integer parameter with character argument
  9096. MODULE Test;
  9097. VAR argument: CHAR;
  9098. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9099. BEGIN Procedure (argument);
  9100. END Test.
  9101. positive: calling procedure with integer parameter with short integer argument
  9102. MODULE Test;
  9103. VAR argument: SHORTINT;
  9104. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9105. BEGIN Procedure (argument);
  9106. END Test.
  9107. positive: calling procedure with integer parameter with integer argument
  9108. MODULE Test;
  9109. VAR argument: INTEGER;
  9110. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9111. BEGIN Procedure (argument);
  9112. END Test.
  9113. negative: calling procedure with integer parameter with long integer argument
  9114. MODULE Test;
  9115. VAR argument: LONGINT;
  9116. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9117. BEGIN Procedure (argument);
  9118. END Test.
  9119. negative: calling procedure with integer parameter with huge integer argument
  9120. MODULE Test;
  9121. VAR argument: HUGEINT;
  9122. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9123. BEGIN Procedure (argument);
  9124. END Test.
  9125. negative: calling procedure with integer parameter with real argument
  9126. MODULE Test;
  9127. VAR argument: REAL;
  9128. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9129. BEGIN Procedure (argument);
  9130. END Test.
  9131. negative: calling procedure with integer parameter with long real argument
  9132. MODULE Test;
  9133. VAR argument: LONGREAL;
  9134. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9135. BEGIN Procedure (argument);
  9136. END Test.
  9137. negative: calling procedure with integer parameter with set argument
  9138. MODULE Test;
  9139. VAR argument: SET;
  9140. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9141. BEGIN Procedure (argument);
  9142. END Test.
  9143. negative: calling procedure with integer parameter with array argument
  9144. MODULE Test;
  9145. VAR argument: ARRAY 10 OF CHAR;
  9146. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9147. BEGIN Procedure (argument);
  9148. END Test.
  9149. negative: calling procedure with integer parameter with record argument
  9150. MODULE Test;
  9151. VAR argument: RECORD END;
  9152. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9153. BEGIN Procedure (argument);
  9154. END Test.
  9155. negative: calling procedure with integer parameter with object argument
  9156. MODULE Test;
  9157. VAR argument: OBJECT END;
  9158. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9159. BEGIN Procedure (argument);
  9160. END Test.
  9161. negative: calling procedure with integer parameter with base object argument
  9162. MODULE Test;
  9163. VAR argument: OBJECT;
  9164. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9165. BEGIN Procedure (argument);
  9166. END Test.
  9167. negative: calling procedure with integer parameter with pointer to array argument
  9168. MODULE Test;
  9169. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9170. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9171. BEGIN Procedure (argument);
  9172. END Test.
  9173. negative: calling procedure with integer parameter with pointer to record argument
  9174. MODULE Test;
  9175. VAR argument: POINTER TO RECORD END;
  9176. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9177. BEGIN Procedure (argument);
  9178. END Test.
  9179. negative: calling procedure with integer parameter with procedure argument
  9180. MODULE Test;
  9181. VAR argument: PROCEDURE;
  9182. PROCEDURE Procedure (value: INTEGER); END Procedure;
  9183. BEGIN Procedure (argument);
  9184. END Test.
  9185. negative: calling procedure with long integer parameter with boolean argument
  9186. MODULE Test;
  9187. VAR argument: BOOLEAN;
  9188. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9189. BEGIN Procedure (argument);
  9190. END Test.
  9191. negative: calling procedure with long integer parameter with character argument
  9192. MODULE Test;
  9193. VAR argument: CHAR;
  9194. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9195. BEGIN Procedure (argument);
  9196. END Test.
  9197. positive: calling procedure with long integer parameter with short integer argument
  9198. MODULE Test;
  9199. VAR argument: SHORTINT;
  9200. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9201. BEGIN Procedure (argument);
  9202. END Test.
  9203. positive: calling procedure with long integer parameter with integer argument
  9204. MODULE Test;
  9205. VAR argument: INTEGER;
  9206. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9207. BEGIN Procedure (argument);
  9208. END Test.
  9209. positive: calling procedure with long integer parameter with long integer argument
  9210. MODULE Test;
  9211. VAR argument: LONGINT;
  9212. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9213. BEGIN Procedure (argument);
  9214. END Test.
  9215. negative: calling procedure with long integer parameter with huge integer argument
  9216. MODULE Test;
  9217. VAR argument: HUGEINT;
  9218. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9219. BEGIN Procedure (argument);
  9220. END Test.
  9221. negative: calling procedure with long integer parameter with real argument
  9222. MODULE Test;
  9223. VAR argument: REAL;
  9224. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9225. BEGIN Procedure (argument);
  9226. END Test.
  9227. negative: calling procedure with long integer parameter with long real argument
  9228. MODULE Test;
  9229. VAR argument: LONGREAL;
  9230. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9231. BEGIN Procedure (argument);
  9232. END Test.
  9233. negative: calling procedure with long integer parameter with set argument
  9234. MODULE Test;
  9235. VAR argument: SET;
  9236. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9237. BEGIN Procedure (argument);
  9238. END Test.
  9239. negative: calling procedure with long integer parameter with array argument
  9240. MODULE Test;
  9241. VAR argument: ARRAY 10 OF CHAR;
  9242. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9243. BEGIN Procedure (argument);
  9244. END Test.
  9245. negative: calling procedure with long integer parameter with record argument
  9246. MODULE Test;
  9247. VAR argument: RECORD END;
  9248. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9249. BEGIN Procedure (argument);
  9250. END Test.
  9251. negative: calling procedure with long integer parameter with object argument
  9252. MODULE Test;
  9253. VAR argument: OBJECT END;
  9254. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9255. BEGIN Procedure (argument);
  9256. END Test.
  9257. negative: calling procedure with long integer parameter with base object argument
  9258. MODULE Test;
  9259. VAR argument: OBJECT;
  9260. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9261. BEGIN Procedure (argument);
  9262. END Test.
  9263. negative: calling procedure with long integer parameter with pointer to array argument
  9264. MODULE Test;
  9265. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9266. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9267. BEGIN Procedure (argument);
  9268. END Test.
  9269. negative: calling procedure with long integer parameter with pointer to record argument
  9270. MODULE Test;
  9271. VAR argument: POINTER TO RECORD END;
  9272. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9273. BEGIN Procedure (argument);
  9274. END Test.
  9275. negative: calling procedure with long integer parameter with procedure argument
  9276. MODULE Test;
  9277. VAR argument: PROCEDURE;
  9278. PROCEDURE Procedure (value: LONGINT); END Procedure;
  9279. BEGIN Procedure (argument);
  9280. END Test.
  9281. negative: calling procedure with huge integer parameter with boolean argument
  9282. MODULE Test;
  9283. VAR argument: BOOLEAN;
  9284. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9285. BEGIN Procedure (argument);
  9286. END Test.
  9287. negative: calling procedure with huge integer parameter with character argument
  9288. MODULE Test;
  9289. VAR argument: CHAR;
  9290. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9291. BEGIN Procedure (argument);
  9292. END Test.
  9293. positive: calling procedure with huge integer parameter with short integer argument
  9294. MODULE Test;
  9295. VAR argument: SHORTINT;
  9296. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9297. BEGIN Procedure (argument);
  9298. END Test.
  9299. positive: calling procedure with huge integer parameter with integer argument
  9300. MODULE Test;
  9301. VAR argument: INTEGER;
  9302. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9303. BEGIN Procedure (argument);
  9304. END Test.
  9305. positive: calling procedure with huge integer parameter with long integer argument
  9306. MODULE Test;
  9307. VAR argument: LONGINT;
  9308. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9309. BEGIN Procedure (argument);
  9310. END Test.
  9311. positive: calling procedure with huge integer parameter with huge integer argument
  9312. MODULE Test;
  9313. VAR argument: HUGEINT;
  9314. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9315. BEGIN Procedure (argument);
  9316. END Test.
  9317. negative: calling procedure with huge integer parameter with real argument
  9318. MODULE Test;
  9319. VAR argument: REAL;
  9320. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9321. BEGIN Procedure (argument);
  9322. END Test.
  9323. negative: calling procedure with huge integer parameter with long real argument
  9324. MODULE Test;
  9325. VAR argument: LONGREAL;
  9326. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9327. BEGIN Procedure (argument);
  9328. END Test.
  9329. negative: calling procedure with huge integer parameter with set argument
  9330. MODULE Test;
  9331. VAR argument: SET;
  9332. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9333. BEGIN Procedure (argument);
  9334. END Test.
  9335. negative: calling procedure with huge integer parameter with array argument
  9336. MODULE Test;
  9337. VAR argument: ARRAY 10 OF CHAR;
  9338. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9339. BEGIN Procedure (argument);
  9340. END Test.
  9341. negative: calling procedure with huge integer parameter with record argument
  9342. MODULE Test;
  9343. VAR argument: RECORD END;
  9344. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9345. BEGIN Procedure (argument);
  9346. END Test.
  9347. negative: calling procedure with huge integer parameter with object argument
  9348. MODULE Test;
  9349. VAR argument: OBJECT END;
  9350. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9351. BEGIN Procedure (argument);
  9352. END Test.
  9353. negative: calling procedure with huge integer parameter with base object argument
  9354. MODULE Test;
  9355. VAR argument: OBJECT;
  9356. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9357. BEGIN Procedure (argument);
  9358. END Test.
  9359. negative: calling procedure with huge integer parameter with pointer to array argument
  9360. MODULE Test;
  9361. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9362. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9363. BEGIN Procedure (argument);
  9364. END Test.
  9365. negative: calling procedure with huge integer parameter with pointer to record argument
  9366. MODULE Test;
  9367. VAR argument: POINTER TO RECORD END;
  9368. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9369. BEGIN Procedure (argument);
  9370. END Test.
  9371. negative: calling procedure with huge integer parameter with procedure argument
  9372. MODULE Test;
  9373. VAR argument: PROCEDURE;
  9374. PROCEDURE Procedure (value: HUGEINT); END Procedure;
  9375. BEGIN Procedure (argument);
  9376. END Test.
  9377. negative: calling procedure with real parameter with boolean argument
  9378. MODULE Test;
  9379. VAR argument: BOOLEAN;
  9380. PROCEDURE Procedure (value: REAL); END Procedure;
  9381. BEGIN Procedure (argument);
  9382. END Test.
  9383. negative: calling procedure with real parameter with character argument
  9384. MODULE Test;
  9385. VAR argument: CHAR;
  9386. PROCEDURE Procedure (value: REAL); END Procedure;
  9387. BEGIN Procedure (argument);
  9388. END Test.
  9389. positive: calling procedure with real parameter with short integer argument
  9390. MODULE Test;
  9391. VAR argument: SHORTINT;
  9392. PROCEDURE Procedure (value: REAL); END Procedure;
  9393. BEGIN Procedure (argument);
  9394. END Test.
  9395. positive: calling procedure with real parameter with integer argument
  9396. MODULE Test;
  9397. VAR argument: INTEGER;
  9398. PROCEDURE Procedure (value: REAL); END Procedure;
  9399. BEGIN Procedure (argument);
  9400. END Test.
  9401. positive: calling procedure with real parameter with long integer argument
  9402. MODULE Test;
  9403. VAR argument: LONGINT;
  9404. PROCEDURE Procedure (value: REAL); END Procedure;
  9405. BEGIN Procedure (argument);
  9406. END Test.
  9407. positive: calling procedure with real parameter with huge integer argument
  9408. MODULE Test;
  9409. VAR argument: HUGEINT;
  9410. PROCEDURE Procedure (value: REAL); END Procedure;
  9411. BEGIN Procedure (argument);
  9412. END Test.
  9413. positive: calling procedure with real parameter with real argument
  9414. MODULE Test;
  9415. VAR argument: REAL;
  9416. PROCEDURE Procedure (value: REAL); END Procedure;
  9417. BEGIN Procedure (argument);
  9418. END Test.
  9419. negative: calling procedure with real parameter with long real argument
  9420. MODULE Test;
  9421. VAR argument: LONGREAL;
  9422. PROCEDURE Procedure (value: REAL); END Procedure;
  9423. BEGIN Procedure (argument);
  9424. END Test.
  9425. negative: calling procedure with real parameter with set argument
  9426. MODULE Test;
  9427. VAR argument: SET;
  9428. PROCEDURE Procedure (value: REAL); END Procedure;
  9429. BEGIN Procedure (argument);
  9430. END Test.
  9431. negative: calling procedure with real parameter with array argument
  9432. MODULE Test;
  9433. VAR argument: ARRAY 10 OF CHAR;
  9434. PROCEDURE Procedure (value: REAL); END Procedure;
  9435. BEGIN Procedure (argument);
  9436. END Test.
  9437. negative: calling procedure with real parameter with record argument
  9438. MODULE Test;
  9439. VAR argument: RECORD END;
  9440. PROCEDURE Procedure (value: REAL); END Procedure;
  9441. BEGIN Procedure (argument);
  9442. END Test.
  9443. negative: calling procedure with real parameter with object argument
  9444. MODULE Test;
  9445. VAR argument: OBJECT END;
  9446. PROCEDURE Procedure (value: REAL); END Procedure;
  9447. BEGIN Procedure (argument);
  9448. END Test.
  9449. negative: calling procedure with real parameter with base object argument
  9450. MODULE Test;
  9451. VAR argument: OBJECT;
  9452. PROCEDURE Procedure (value: REAL); END Procedure;
  9453. BEGIN Procedure (argument);
  9454. END Test.
  9455. negative: calling procedure with real parameter with pointer to array argument
  9456. MODULE Test;
  9457. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9458. PROCEDURE Procedure (value: REAL); END Procedure;
  9459. BEGIN Procedure (argument);
  9460. END Test.
  9461. negative: calling procedure with real parameter with pointer to record argument
  9462. MODULE Test;
  9463. VAR argument: POINTER TO RECORD END;
  9464. PROCEDURE Procedure (value: REAL); END Procedure;
  9465. BEGIN Procedure (argument);
  9466. END Test.
  9467. negative: calling procedure with real parameter with procedure argument
  9468. MODULE Test;
  9469. VAR argument: PROCEDURE;
  9470. PROCEDURE Procedure (value: REAL); END Procedure;
  9471. BEGIN Procedure (argument);
  9472. END Test.
  9473. negative: calling procedure with long real parameter with boolean argument
  9474. MODULE Test;
  9475. VAR argument: BOOLEAN;
  9476. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9477. BEGIN Procedure (argument);
  9478. END Test.
  9479. negative: calling procedure with long real parameter with character argument
  9480. MODULE Test;
  9481. VAR argument: CHAR;
  9482. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9483. BEGIN Procedure (argument);
  9484. END Test.
  9485. positive: calling procedure with long real parameter with short integer argument
  9486. MODULE Test;
  9487. VAR argument: SHORTINT;
  9488. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9489. BEGIN Procedure (argument);
  9490. END Test.
  9491. positive: calling procedure with long real parameter with integer argument
  9492. MODULE Test;
  9493. VAR argument: INTEGER;
  9494. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9495. BEGIN Procedure (argument);
  9496. END Test.
  9497. positive: calling procedure with long real parameter with long integer argument
  9498. MODULE Test;
  9499. VAR argument: LONGINT;
  9500. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9501. BEGIN Procedure (argument);
  9502. END Test.
  9503. positive: calling procedure with long real parameter with huge integer argument
  9504. MODULE Test;
  9505. VAR argument: HUGEINT;
  9506. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9507. BEGIN Procedure (argument);
  9508. END Test.
  9509. positive: calling procedure with long real parameter with real argument
  9510. MODULE Test;
  9511. VAR argument: REAL;
  9512. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9513. BEGIN Procedure (argument);
  9514. END Test.
  9515. positive: calling procedure with long real parameter with long real argument
  9516. MODULE Test;
  9517. VAR argument: LONGREAL;
  9518. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9519. BEGIN Procedure (argument);
  9520. END Test.
  9521. negative: calling procedure with long real parameter with set argument
  9522. MODULE Test;
  9523. VAR argument: SET;
  9524. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9525. BEGIN Procedure (argument);
  9526. END Test.
  9527. negative: calling procedure with long real parameter with array argument
  9528. MODULE Test;
  9529. VAR argument: ARRAY 10 OF CHAR;
  9530. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9531. BEGIN Procedure (argument);
  9532. END Test.
  9533. negative: calling procedure with long real parameter with record argument
  9534. MODULE Test;
  9535. VAR argument: RECORD END;
  9536. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9537. BEGIN Procedure (argument);
  9538. END Test.
  9539. negative: calling procedure with long real parameter with object argument
  9540. MODULE Test;
  9541. VAR argument: OBJECT END;
  9542. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9543. BEGIN Procedure (argument);
  9544. END Test.
  9545. negative: calling procedure with long real parameter with base object argument
  9546. MODULE Test;
  9547. VAR argument: OBJECT;
  9548. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9549. BEGIN Procedure (argument);
  9550. END Test.
  9551. negative: calling procedure with long real parameter with pointer to array argument
  9552. MODULE Test;
  9553. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9554. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9555. BEGIN Procedure (argument);
  9556. END Test.
  9557. negative: calling procedure with long real parameter with pointer to record argument
  9558. MODULE Test;
  9559. VAR argument: POINTER TO RECORD END;
  9560. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9561. BEGIN Procedure (argument);
  9562. END Test.
  9563. negative: calling procedure with long real parameter with procedure argument
  9564. MODULE Test;
  9565. VAR argument: PROCEDURE;
  9566. PROCEDURE Procedure (value: LONGREAL); END Procedure;
  9567. BEGIN Procedure (argument);
  9568. END Test.
  9569. negative: calling procedure with set parameter with boolean argument
  9570. MODULE Test;
  9571. VAR argument: BOOLEAN;
  9572. PROCEDURE Procedure (value: SET); END Procedure;
  9573. BEGIN Procedure (argument);
  9574. END Test.
  9575. negative: calling procedure with set parameter with character argument
  9576. MODULE Test;
  9577. VAR argument: CHAR;
  9578. PROCEDURE Procedure (value: SET); END Procedure;
  9579. BEGIN Procedure (argument);
  9580. END Test.
  9581. negative: calling procedure with set parameter with short integer argument
  9582. MODULE Test;
  9583. VAR argument: SHORTINT;
  9584. PROCEDURE Procedure (value: SET); END Procedure;
  9585. BEGIN Procedure (argument);
  9586. END Test.
  9587. negative: calling procedure with set parameter with integer argument
  9588. MODULE Test;
  9589. VAR argument: INTEGER;
  9590. PROCEDURE Procedure (value: SET); END Procedure;
  9591. BEGIN Procedure (argument);
  9592. END Test.
  9593. negative: calling procedure with set parameter with long integer argument
  9594. MODULE Test;
  9595. VAR argument: LONGINT;
  9596. PROCEDURE Procedure (value: SET); END Procedure;
  9597. BEGIN Procedure (argument);
  9598. END Test.
  9599. negative: calling procedure with set parameter with huge integer argument
  9600. MODULE Test;
  9601. VAR argument: HUGEINT;
  9602. PROCEDURE Procedure (value: SET); END Procedure;
  9603. BEGIN Procedure (argument);
  9604. END Test.
  9605. negative: calling procedure with set parameter with real argument
  9606. MODULE Test;
  9607. VAR argument: REAL;
  9608. PROCEDURE Procedure (value: SET); END Procedure;
  9609. BEGIN Procedure (argument);
  9610. END Test.
  9611. negative: calling procedure with set parameter with long real argument
  9612. MODULE Test;
  9613. VAR argument: LONGREAL;
  9614. PROCEDURE Procedure (value: SET); END Procedure;
  9615. BEGIN Procedure (argument);
  9616. END Test.
  9617. positive: calling procedure with set parameter with set argument
  9618. MODULE Test;
  9619. VAR argument: SET;
  9620. PROCEDURE Procedure (value: SET); END Procedure;
  9621. BEGIN Procedure (argument);
  9622. END Test.
  9623. negative: calling procedure with set parameter with array argument
  9624. MODULE Test;
  9625. VAR argument: ARRAY 10 OF CHAR;
  9626. PROCEDURE Procedure (value: SET); END Procedure;
  9627. BEGIN Procedure (argument);
  9628. END Test.
  9629. negative: calling procedure with set parameter with record argument
  9630. MODULE Test;
  9631. VAR argument: RECORD END;
  9632. PROCEDURE Procedure (value: SET); END Procedure;
  9633. BEGIN Procedure (argument);
  9634. END Test.
  9635. negative: calling procedure with set parameter with object argument
  9636. MODULE Test;
  9637. VAR argument: OBJECT END;
  9638. PROCEDURE Procedure (value: SET); END Procedure;
  9639. BEGIN Procedure (argument);
  9640. END Test.
  9641. negative: calling procedure with set parameter with base object argument
  9642. MODULE Test;
  9643. VAR argument: OBJECT;
  9644. PROCEDURE Procedure (value: SET); END Procedure;
  9645. BEGIN Procedure (argument);
  9646. END Test.
  9647. negative: calling procedure with set parameter with pointer to array argument
  9648. MODULE Test;
  9649. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9650. PROCEDURE Procedure (value: SET); END Procedure;
  9651. BEGIN Procedure (argument);
  9652. END Test.
  9653. negative: calling procedure with set parameter with pointer to record argument
  9654. MODULE Test;
  9655. VAR argument: POINTER TO RECORD END;
  9656. PROCEDURE Procedure (value: SET); END Procedure;
  9657. BEGIN Procedure (argument);
  9658. END Test.
  9659. negative: calling procedure with set parameter with procedure argument
  9660. MODULE Test;
  9661. VAR argument: PROCEDURE;
  9662. PROCEDURE Procedure (value: SET); END Procedure;
  9663. BEGIN Procedure (argument);
  9664. END Test.
  9665. negative: calling procedure with array parameter with boolean argument
  9666. MODULE Test;
  9667. VAR argument: BOOLEAN;
  9668. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9669. BEGIN Procedure (argument);
  9670. END Test.
  9671. negative: calling procedure with array parameter with character argument
  9672. MODULE Test;
  9673. VAR argument: CHAR;
  9674. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9675. BEGIN Procedure (argument);
  9676. END Test.
  9677. negative: calling procedure with array parameter with short integer argument
  9678. MODULE Test;
  9679. VAR argument: SHORTINT;
  9680. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9681. BEGIN Procedure (argument);
  9682. END Test.
  9683. negative: calling procedure with array parameter with integer argument
  9684. MODULE Test;
  9685. VAR argument: INTEGER;
  9686. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9687. BEGIN Procedure (argument);
  9688. END Test.
  9689. negative: calling procedure with array parameter with long integer argument
  9690. MODULE Test;
  9691. VAR argument: LONGINT;
  9692. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9693. BEGIN Procedure (argument);
  9694. END Test.
  9695. negative: calling procedure with array parameter with huge integer argument
  9696. MODULE Test;
  9697. VAR argument: HUGEINT;
  9698. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9699. BEGIN Procedure (argument);
  9700. END Test.
  9701. negative: calling procedure with array parameter with real argument
  9702. MODULE Test;
  9703. VAR argument: REAL;
  9704. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9705. BEGIN Procedure (argument);
  9706. END Test.
  9707. negative: calling procedure with array parameter with long real argument
  9708. MODULE Test;
  9709. VAR argument: LONGREAL;
  9710. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9711. BEGIN Procedure (argument);
  9712. END Test.
  9713. negative: calling procedure with array parameter with set argument
  9714. MODULE Test;
  9715. VAR argument: SET;
  9716. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9717. BEGIN Procedure (argument);
  9718. END Test.
  9719. positive: calling procedure with array parameter with array argument
  9720. MODULE Test;
  9721. VAR argument: ARRAY 10 OF CHAR;
  9722. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9723. BEGIN Procedure (argument);
  9724. END Test.
  9725. negative: calling procedure with array parameter with longer array argument
  9726. MODULE Test;
  9727. VAR argument: ARRAY 20 OF CHAR;
  9728. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9729. BEGIN Procedure (argument);
  9730. END Test.
  9731. negative: calling procedure with array parameter with shorter array argument
  9732. MODULE Test;
  9733. VAR argument: ARRAY 10 OF CHAR;
  9734. PROCEDURE Procedure (value: ARRAY 20 OF CHAR); END Procedure;
  9735. BEGIN Procedure (argument);
  9736. END Test.
  9737. negative: calling procedure with array parameter with open array argument
  9738. MODULE Test;
  9739. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9740. PROCEDURE Test (argument: ARRAY OF CHAR); BEGIN Procedure (argument); END Test;
  9741. END Test.
  9742. negative: calling procedure with array parameter with record argument
  9743. MODULE Test;
  9744. VAR argument: RECORD END;
  9745. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9746. BEGIN Procedure (argument);
  9747. END Test.
  9748. negative: calling procedure with array parameter with object argument
  9749. MODULE Test;
  9750. VAR argument: OBJECT END;
  9751. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9752. BEGIN Procedure (argument);
  9753. END Test.
  9754. negative: calling procedure with array parameter with base object argument
  9755. MODULE Test;
  9756. VAR argument: OBJECT;
  9757. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9758. BEGIN Procedure (argument);
  9759. END Test.
  9760. negative: calling procedure with array parameter with pointer to array argument
  9761. MODULE Test;
  9762. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9763. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9764. BEGIN Procedure (argument);
  9765. END Test.
  9766. negative: calling procedure with array parameter with pointer to record argument
  9767. MODULE Test;
  9768. VAR argument: POINTER TO RECORD END;
  9769. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9770. BEGIN Procedure (argument);
  9771. END Test.
  9772. negative: calling procedure with array parameter with procedure argument
  9773. MODULE Test;
  9774. VAR argument: PROCEDURE;
  9775. PROCEDURE Procedure (value: ARRAY 10 OF CHAR); END Procedure;
  9776. BEGIN Procedure (argument);
  9777. END Test.
  9778. negative: calling procedure with open array parameter with boolean argument
  9779. MODULE Test;
  9780. VAR argument: BOOLEAN;
  9781. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9782. BEGIN Procedure (argument);
  9783. END Test.
  9784. negative: calling procedure with open array parameter with character argument
  9785. MODULE Test;
  9786. VAR argument: CHAR;
  9787. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9788. BEGIN Procedure (argument);
  9789. END Test.
  9790. negative: calling procedure with open array parameter with short integer argument
  9791. MODULE Test;
  9792. VAR argument: SHORTINT;
  9793. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9794. BEGIN Procedure (argument);
  9795. END Test.
  9796. negative: calling procedure with open array parameter with integer argument
  9797. MODULE Test;
  9798. VAR argument: INTEGER;
  9799. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9800. BEGIN Procedure (argument);
  9801. END Test.
  9802. negative: calling procedure with open array parameter with long integer argument
  9803. MODULE Test;
  9804. VAR argument: LONGINT;
  9805. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9806. BEGIN Procedure (argument);
  9807. END Test.
  9808. negative: calling procedure with open array parameter with huge integer argument
  9809. MODULE Test;
  9810. VAR argument: HUGEINT;
  9811. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9812. BEGIN Procedure (argument);
  9813. END Test.
  9814. negative: calling procedure with open array parameter with real argument
  9815. MODULE Test;
  9816. VAR argument: REAL;
  9817. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9818. BEGIN Procedure (argument);
  9819. END Test.
  9820. negative: calling procedure with open array parameter with long real argument
  9821. MODULE Test;
  9822. VAR argument: LONGREAL;
  9823. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9824. BEGIN Procedure (argument);
  9825. END Test.
  9826. negative: calling procedure with open array parameter with set argument
  9827. MODULE Test;
  9828. VAR argument: SET;
  9829. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9830. BEGIN Procedure (argument);
  9831. END Test.
  9832. positive: calling procedure with open array parameter with array argument
  9833. MODULE Test;
  9834. VAR argument: ARRAY 10 OF CHAR;
  9835. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9836. BEGIN Procedure (argument);
  9837. END Test.
  9838. positive: calling procedure with open array parameter with open array argument
  9839. MODULE Test;
  9840. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9841. PROCEDURE Test (argument: ARRAY OF CHAR); BEGIN Procedure (argument); END Test;
  9842. END Test.
  9843. negative: calling procedure with open array parameter with record argument
  9844. MODULE Test;
  9845. VAR argument: RECORD END;
  9846. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9847. BEGIN Procedure (argument);
  9848. END Test.
  9849. negative: calling procedure with open array parameter with object argument
  9850. MODULE Test;
  9851. VAR argument: OBJECT END;
  9852. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9853. BEGIN Procedure (argument);
  9854. END Test.
  9855. negative: calling procedure with open array parameter with base object argument
  9856. MODULE Test;
  9857. VAR argument: OBJECT;
  9858. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9859. BEGIN Procedure (argument);
  9860. END Test.
  9861. negative: calling procedure with open array parameter with pointer to array argument
  9862. MODULE Test;
  9863. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9864. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9865. BEGIN Procedure (argument);
  9866. END Test.
  9867. negative: calling procedure with open array parameter with pointer to record argument
  9868. MODULE Test;
  9869. VAR argument: POINTER TO RECORD END;
  9870. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9871. BEGIN Procedure (argument);
  9872. END Test.
  9873. negative: calling procedure with open array parameter with procedure argument
  9874. MODULE Test;
  9875. VAR argument: PROCEDURE;
  9876. PROCEDURE Procedure (value: ARRAY OF CHAR); END Procedure;
  9877. BEGIN Procedure (argument);
  9878. END Test.
  9879. negative: calling procedure with record parameter with boolean argument
  9880. MODULE Test;
  9881. VAR argument: BOOLEAN;
  9882. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9883. BEGIN Procedure (argument);
  9884. END Test.
  9885. negative: calling procedure with record parameter with character argument
  9886. MODULE Test;
  9887. VAR argument: CHAR;
  9888. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9889. BEGIN Procedure (argument);
  9890. END Test.
  9891. negative: calling procedure with record parameter with short integer argument
  9892. MODULE Test;
  9893. VAR argument: SHORTINT;
  9894. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9895. BEGIN Procedure (argument);
  9896. END Test.
  9897. negative: calling procedure with record parameter with integer argument
  9898. MODULE Test;
  9899. VAR argument: INTEGER;
  9900. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9901. BEGIN Procedure (argument);
  9902. END Test.
  9903. negative: calling procedure with record parameter with long integer argument
  9904. MODULE Test;
  9905. VAR argument: LONGINT;
  9906. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9907. BEGIN Procedure (argument);
  9908. END Test.
  9909. negative: calling procedure with record parameter with huge integer argument
  9910. MODULE Test;
  9911. VAR argument: HUGEINT;
  9912. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9913. BEGIN Procedure (argument);
  9914. END Test.
  9915. negative: calling procedure with record parameter with real argument
  9916. MODULE Test;
  9917. VAR argument: REAL;
  9918. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9919. BEGIN Procedure (argument);
  9920. END Test.
  9921. negative: calling procedure with record parameter with long real argument
  9922. MODULE Test;
  9923. VAR argument: LONGREAL;
  9924. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9925. BEGIN Procedure (argument);
  9926. END Test.
  9927. negative: calling procedure with record parameter with set argument
  9928. MODULE Test;
  9929. VAR argument: SET;
  9930. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9931. BEGIN Procedure (argument);
  9932. END Test.
  9933. negative: calling procedure with record parameter with array argument
  9934. MODULE Test;
  9935. VAR argument: ARRAY 10 OF CHAR;
  9936. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9937. BEGIN Procedure (argument);
  9938. END Test.
  9939. positive: calling procedure with record parameter with record argument
  9940. MODULE Test;
  9941. TYPE Record = RECORD END;
  9942. VAR argument: Record;
  9943. PROCEDURE Procedure (value: Record); END Procedure;
  9944. BEGIN Procedure (argument);
  9945. END Test.
  9946. positive: calling procedure with record parameter with compatible record argument
  9947. MODULE Test;
  9948. TYPE Record = RECORD END;
  9949. VAR argument: RECORD (Record) END;
  9950. PROCEDURE Procedure (value: Record); END Procedure;
  9951. BEGIN Procedure (argument);
  9952. END Test.
  9953. negative: calling procedure with record parameter with incompatible record argument
  9954. MODULE Test;
  9955. TYPE Record = RECORD END;
  9956. VAR argument: Record;
  9957. PROCEDURE Procedure (value: RECORD (Record) END); END Procedure;
  9958. BEGIN Procedure (argument);
  9959. END Test.
  9960. negative: calling procedure with record parameter with object argument
  9961. MODULE Test;
  9962. VAR argument: OBJECT END;
  9963. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9964. BEGIN Procedure (argument);
  9965. END Test.
  9966. negative: calling procedure with record parameter with base object argument
  9967. MODULE Test;
  9968. VAR argument: OBJECT;
  9969. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9970. BEGIN Procedure (argument);
  9971. END Test.
  9972. negative: calling procedure with record parameter with pointer to array argument
  9973. MODULE Test;
  9974. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  9975. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9976. BEGIN Procedure (argument);
  9977. END Test.
  9978. negative: calling procedure with record parameter with pointer to record argument
  9979. MODULE Test;
  9980. VAR argument: POINTER TO RECORD END;
  9981. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9982. BEGIN Procedure (argument);
  9983. END Test.
  9984. negative: calling procedure with record parameter with procedure argument
  9985. MODULE Test;
  9986. VAR argument: PROCEDURE;
  9987. PROCEDURE Procedure (value: RECORD END); END Procedure;
  9988. BEGIN Procedure (argument);
  9989. END Test.
  9990. negative: calling procedure with object parameter with boolean argument
  9991. MODULE Test;
  9992. VAR argument: BOOLEAN;
  9993. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  9994. BEGIN Procedure (argument);
  9995. END Test.
  9996. negative: calling procedure with object parameter with character argument
  9997. MODULE Test;
  9998. VAR argument: CHAR;
  9999. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10000. BEGIN Procedure (argument);
  10001. END Test.
  10002. negative: calling procedure with object parameter with short integer argument
  10003. MODULE Test;
  10004. VAR argument: SHORTINT;
  10005. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10006. BEGIN Procedure (argument);
  10007. END Test.
  10008. negative: calling procedure with object parameter with integer argument
  10009. MODULE Test;
  10010. VAR argument: INTEGER;
  10011. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10012. BEGIN Procedure (argument);
  10013. END Test.
  10014. negative: calling procedure with object parameter with long integer argument
  10015. MODULE Test;
  10016. VAR argument: LONGINT;
  10017. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10018. BEGIN Procedure (argument);
  10019. END Test.
  10020. negative: calling procedure with object parameter with huge integer argument
  10021. MODULE Test;
  10022. VAR argument: HUGEINT;
  10023. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10024. BEGIN Procedure (argument);
  10025. END Test.
  10026. negative: calling procedure with object parameter with real argument
  10027. MODULE Test;
  10028. VAR argument: REAL;
  10029. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10030. BEGIN Procedure (argument);
  10031. END Test.
  10032. negative: calling procedure with object parameter with long real argument
  10033. MODULE Test;
  10034. VAR argument: LONGREAL;
  10035. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10036. BEGIN Procedure (argument);
  10037. END Test.
  10038. negative: calling procedure with object parameter with set argument
  10039. MODULE Test;
  10040. VAR argument: SET;
  10041. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10042. BEGIN Procedure (argument);
  10043. END Test.
  10044. negative: calling procedure with object parameter with array argument
  10045. MODULE Test;
  10046. VAR argument: ARRAY 10 OF CHAR;
  10047. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10048. BEGIN Procedure (argument);
  10049. END Test.
  10050. negative: calling procedure with object parameter with record argument
  10051. MODULE Test;
  10052. VAR argument: RECORD END;
  10053. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10054. BEGIN Procedure (argument);
  10055. END Test.
  10056. positive: calling procedure with object parameter with object argument
  10057. MODULE Test;
  10058. TYPE Object = OBJECT END Object;
  10059. VAR argument: Object;
  10060. PROCEDURE Procedure (value: Object); END Procedure;
  10061. BEGIN Procedure (argument);
  10062. END Test.
  10063. positive: calling procedure with object parameter with compatible object argument
  10064. MODULE Test;
  10065. TYPE Object = OBJECT END Object;
  10066. VAR argument: OBJECT (Object) END;
  10067. PROCEDURE Procedure (value: Object); END Procedure;
  10068. BEGIN Procedure (argument);
  10069. END Test.
  10070. negative: calling procedure with object parameter with incompatible object argument
  10071. MODULE Test;
  10072. TYPE Object = OBJECT END Object;
  10073. VAR argument: Object;
  10074. PROCEDURE Procedure (value: OBJECT (Object) END); END Procedure;
  10075. BEGIN Procedure (argument);
  10076. END Test.
  10077. negative: calling procedure with object parameter with base object argument
  10078. MODULE Test;
  10079. VAR argument: OBJECT;
  10080. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10081. BEGIN Procedure (argument);
  10082. END Test.
  10083. negative: calling procedure with object parameter with pointer to array argument
  10084. MODULE Test;
  10085. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10086. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10087. BEGIN Procedure (argument);
  10088. END Test.
  10089. negative: calling procedure with object parameter with pointer to record argument
  10090. MODULE Test;
  10091. VAR argument: POINTER TO RECORD END;
  10092. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10093. BEGIN Procedure (argument);
  10094. END Test.
  10095. negative: calling procedure with object parameter with procedure argument
  10096. MODULE Test;
  10097. VAR argument: PROCEDURE;
  10098. PROCEDURE Procedure (value: OBJECT END); END Procedure;
  10099. BEGIN Procedure (argument);
  10100. END Test.
  10101. negative: calling procedure with base object parameter with boolean argument
  10102. MODULE Test;
  10103. VAR argument: BOOLEAN;
  10104. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10105. BEGIN Procedure (argument);
  10106. END Test.
  10107. negative: calling procedure with base object parameter with character argument
  10108. MODULE Test;
  10109. VAR argument: CHAR;
  10110. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10111. BEGIN Procedure (argument);
  10112. END Test.
  10113. negative: calling procedure with base object parameter with short integer argument
  10114. MODULE Test;
  10115. VAR argument: SHORTINT;
  10116. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10117. BEGIN Procedure (argument);
  10118. END Test.
  10119. negative: calling procedure with base object parameter with integer argument
  10120. MODULE Test;
  10121. VAR argument: INTEGER;
  10122. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10123. BEGIN Procedure (argument);
  10124. END Test.
  10125. negative: calling procedure with base object parameter with long integer argument
  10126. MODULE Test;
  10127. VAR argument: LONGINT;
  10128. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10129. BEGIN Procedure (argument);
  10130. END Test.
  10131. negative: calling procedure with base object parameter with huge integer argument
  10132. MODULE Test;
  10133. VAR argument: HUGEINT;
  10134. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10135. BEGIN Procedure (argument);
  10136. END Test.
  10137. negative: calling procedure with base object parameter with real argument
  10138. MODULE Test;
  10139. VAR argument: REAL;
  10140. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10141. BEGIN Procedure (argument);
  10142. END Test.
  10143. negative: calling procedure with base object parameter with long real argument
  10144. MODULE Test;
  10145. VAR argument: LONGREAL;
  10146. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10147. BEGIN Procedure (argument);
  10148. END Test.
  10149. negative: calling procedure with base object parameter with set argument
  10150. MODULE Test;
  10151. VAR argument: SET;
  10152. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10153. BEGIN Procedure (argument);
  10154. END Test.
  10155. negative: calling procedure with base object parameter with array argument
  10156. MODULE Test;
  10157. VAR argument: ARRAY 10 OF CHAR;
  10158. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10159. BEGIN Procedure (argument);
  10160. END Test.
  10161. negative: calling procedure with base object parameter with record argument
  10162. MODULE Test;
  10163. VAR argument: RECORD END;
  10164. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10165. BEGIN Procedure (argument);
  10166. END Test.
  10167. positive: calling procedure with base object parameter with object argument
  10168. MODULE Test;
  10169. VAR argument: OBJECT END;
  10170. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10171. BEGIN Procedure (argument);
  10172. END Test.
  10173. positive: calling procedure with base object parameter with base object argument
  10174. MODULE Test;
  10175. VAR argument: OBJECT;
  10176. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10177. BEGIN Procedure (argument);
  10178. END Test.
  10179. positive: calling procedure with base object parameter with pointer to record argument
  10180. MODULE Test;
  10181. VAR argument: POINTER TO RECORD END;
  10182. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10183. BEGIN Procedure (argument);
  10184. END Test.
  10185. negative: calling procedure with base object parameter with pointer to array argument
  10186. MODULE Test;
  10187. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10188. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10189. BEGIN Procedure (argument);
  10190. END Test.
  10191. negative: calling procedure with base object parameter with procedure argument
  10192. MODULE Test;
  10193. VAR argument: PROCEDURE;
  10194. PROCEDURE Procedure (value: OBJECT); END Procedure;
  10195. BEGIN Procedure (argument);
  10196. END Test.
  10197. negative: calling procedure with pointer to array parameter with boolean argument
  10198. MODULE Test;
  10199. VAR argument: BOOLEAN;
  10200. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10201. BEGIN Procedure (argument);
  10202. END Test.
  10203. negative: calling procedure with pointer to array parameter with character argument
  10204. MODULE Test;
  10205. VAR argument: CHAR;
  10206. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10207. BEGIN Procedure (argument);
  10208. END Test.
  10209. negative: calling procedure with pointer to array parameter with short integer argument
  10210. MODULE Test;
  10211. VAR argument: SHORTINT;
  10212. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10213. BEGIN Procedure (argument);
  10214. END Test.
  10215. negative: calling procedure with pointer to array parameter with integer argument
  10216. MODULE Test;
  10217. VAR argument: INTEGER;
  10218. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10219. BEGIN Procedure (argument);
  10220. END Test.
  10221. negative: calling procedure with pointer to array parameter with long integer argument
  10222. MODULE Test;
  10223. VAR argument: LONGINT;
  10224. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10225. BEGIN Procedure (argument);
  10226. END Test.
  10227. negative: calling procedure with pointer to array parameter with huge integer argument
  10228. MODULE Test;
  10229. VAR argument: HUGEINT;
  10230. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10231. BEGIN Procedure (argument);
  10232. END Test.
  10233. negative: calling procedure with pointer to array parameter with real argument
  10234. MODULE Test;
  10235. VAR argument: REAL;
  10236. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10237. BEGIN Procedure (argument);
  10238. END Test.
  10239. negative: calling procedure with pointer to array parameter with long real argument
  10240. MODULE Test;
  10241. VAR argument: LONGREAL;
  10242. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10243. BEGIN Procedure (argument);
  10244. END Test.
  10245. negative: calling procedure with pointer to array parameter with set argument
  10246. MODULE Test;
  10247. VAR argument: SET;
  10248. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10249. BEGIN Procedure (argument);
  10250. END Test.
  10251. negative: calling procedure with pointer to array parameter with array argument
  10252. MODULE Test;
  10253. VAR argument: ARRAY 10 OF CHAR;
  10254. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10255. BEGIN Procedure (argument);
  10256. END Test.
  10257. negative: calling procedure with pointer to array parameter with record argument
  10258. MODULE Test;
  10259. VAR argument: RECORD END;
  10260. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10261. BEGIN Procedure (argument);
  10262. END Test.
  10263. negative: calling procedure with pointer to array parameter with object argument
  10264. MODULE Test;
  10265. VAR argument: OBJECT END;
  10266. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10267. BEGIN Procedure (argument);
  10268. END Test.
  10269. negative: calling procedure with pointer to array parameter with base object argument
  10270. MODULE Test;
  10271. VAR argument: OBJECT;
  10272. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10273. BEGIN Procedure (argument);
  10274. END Test.
  10275. positive: calling procedure with pointer to array parameter with pointer to array argument
  10276. MODULE Test;
  10277. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10278. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10279. BEGIN Procedure (argument);
  10280. END Test.
  10281. negative: calling procedure with pointer to array parameter with pointer to record argument
  10282. MODULE Test;
  10283. VAR argument: POINTER TO RECORD END;
  10284. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10285. BEGIN Procedure (argument);
  10286. END Test.
  10287. negative: calling procedure with pointer to array parameter with procedure argument
  10288. MODULE Test;
  10289. VAR argument: PROCEDURE;
  10290. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  10291. BEGIN Procedure (argument);
  10292. END Test.
  10293. negative: calling procedure with pointer to record parameter with boolean argument
  10294. MODULE Test;
  10295. VAR argument: BOOLEAN;
  10296. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10297. BEGIN Procedure (argument);
  10298. END Test.
  10299. negative: calling procedure with pointer to record parameter with character argument
  10300. MODULE Test;
  10301. VAR argument: CHAR;
  10302. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10303. BEGIN Procedure (argument);
  10304. END Test.
  10305. negative: calling procedure with pointer to record parameter with short integer argument
  10306. MODULE Test;
  10307. VAR argument: SHORTINT;
  10308. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10309. BEGIN Procedure (argument);
  10310. END Test.
  10311. negative: calling procedure with pointer to record parameter with integer argument
  10312. MODULE Test;
  10313. VAR argument: INTEGER;
  10314. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10315. BEGIN Procedure (argument);
  10316. END Test.
  10317. negative: calling procedure with pointer to record parameter with long integer argument
  10318. MODULE Test;
  10319. VAR argument: LONGINT;
  10320. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10321. BEGIN Procedure (argument);
  10322. END Test.
  10323. negative: calling procedure with pointer to record parameter with huge integer argument
  10324. MODULE Test;
  10325. VAR argument: HUGEINT;
  10326. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10327. BEGIN Procedure (argument);
  10328. END Test.
  10329. negative: calling procedure with pointer to record parameter with real argument
  10330. MODULE Test;
  10331. VAR argument: REAL;
  10332. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10333. BEGIN Procedure (argument);
  10334. END Test.
  10335. negative: calling procedure with pointer to record parameter with long real argument
  10336. MODULE Test;
  10337. VAR argument: LONGREAL;
  10338. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10339. BEGIN Procedure (argument);
  10340. END Test.
  10341. negative: calling procedure with pointer to record parameter with set argument
  10342. MODULE Test;
  10343. VAR argument: SET;
  10344. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10345. BEGIN Procedure (argument);
  10346. END Test.
  10347. negative: calling procedure with pointer to record parameter with array argument
  10348. MODULE Test;
  10349. VAR argument: ARRAY 10 OF CHAR;
  10350. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10351. BEGIN Procedure (argument);
  10352. END Test.
  10353. negative: calling procedure with pointer to record parameter with record argument
  10354. MODULE Test;
  10355. VAR argument: RECORD END;
  10356. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10357. BEGIN Procedure (argument);
  10358. END Test.
  10359. negative: calling procedure with pointer to record parameter with object argument
  10360. MODULE Test;
  10361. VAR argument: OBJECT END;
  10362. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10363. BEGIN Procedure (argument);
  10364. END Test.
  10365. negative: calling procedure with pointer to record parameter with base object argument
  10366. MODULE Test;
  10367. VAR argument: OBJECT;
  10368. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10369. BEGIN Procedure (argument);
  10370. END Test.
  10371. negative: calling procedure with pointer to record parameter with pointer to array argument
  10372. MODULE Test;
  10373. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10374. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10375. BEGIN Procedure (argument);
  10376. END Test.
  10377. positive: calling procedure with pointer to record parameter with pointer to record argument
  10378. MODULE Test;
  10379. TYPE Record = RECORD END;
  10380. VAR argument: POINTER TO Record;
  10381. PROCEDURE Procedure (value: POINTER TO Record); END Procedure;
  10382. BEGIN Procedure (argument);
  10383. END Test.
  10384. positive: calling procedure with pointer to record parameter with compatible pointer to record argument
  10385. MODULE Test;
  10386. TYPE Record = RECORD END;
  10387. VAR argument: POINTER TO RECORD (Record) END;
  10388. PROCEDURE Procedure (value: POINTER TO Record); END Procedure;
  10389. BEGIN Procedure (argument);
  10390. END Test.
  10391. negative: calling procedure with pointer to record parameter with incompatible pointer to record argument
  10392. MODULE Test;
  10393. TYPE Record = RECORD END;
  10394. VAR argument: POINTER TO Record;
  10395. PROCEDURE Procedure (value: POINTER TO RECORD (Record) END); END Procedure;
  10396. BEGIN Procedure (argument);
  10397. END Test.
  10398. negative: calling procedure with pointer to record parameter with procedure argument
  10399. MODULE Test;
  10400. VAR argument: PROCEDURE;
  10401. PROCEDURE Procedure (value: POINTER TO RECORD END); END Procedure;
  10402. BEGIN Procedure (argument);
  10403. END Test.
  10404. negative: calling procedure with procedure parameter with boolean argument
  10405. MODULE Test;
  10406. VAR argument: BOOLEAN;
  10407. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10408. BEGIN Procedure (argument);
  10409. END Test.
  10410. negative: calling procedure with procedure parameter with character argument
  10411. MODULE Test;
  10412. VAR argument: CHAR;
  10413. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10414. BEGIN Procedure (argument);
  10415. END Test.
  10416. negative: calling procedure with procedure parameter with short integer argument
  10417. MODULE Test;
  10418. VAR argument: SHORTINT;
  10419. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10420. BEGIN Procedure (argument);
  10421. END Test.
  10422. negative: calling procedure with procedure parameter with integer argument
  10423. MODULE Test;
  10424. VAR argument: INTEGER;
  10425. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10426. BEGIN Procedure (argument);
  10427. END Test.
  10428. negative: calling procedure with procedure parameter with long integer argument
  10429. MODULE Test;
  10430. VAR argument: LONGINT;
  10431. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10432. BEGIN Procedure (argument);
  10433. END Test.
  10434. negative: calling procedure with procedure parameter with huge integer argument
  10435. MODULE Test;
  10436. VAR argument: HUGEINT;
  10437. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10438. BEGIN Procedure (argument);
  10439. END Test.
  10440. negative: calling procedure with procedure parameter with real argument
  10441. MODULE Test;
  10442. VAR argument: REAL;
  10443. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10444. BEGIN Procedure (argument);
  10445. END Test.
  10446. negative: calling procedure with procedure parameter with long real argument
  10447. MODULE Test;
  10448. VAR argument: LONGREAL;
  10449. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10450. BEGIN Procedure (argument);
  10451. END Test.
  10452. negative: calling procedure with procedure parameter with set argument
  10453. MODULE Test;
  10454. VAR argument: SET;
  10455. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10456. BEGIN Procedure (argument);
  10457. END Test.
  10458. negative: calling procedure with procedure parameter with array argument
  10459. MODULE Test;
  10460. VAR argument: ARRAY 10 OF CHAR;
  10461. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10462. BEGIN Procedure (argument);
  10463. END Test.
  10464. negative: calling procedure with procedure parameter with record argument
  10465. MODULE Test;
  10466. VAR argument: RECORD END;
  10467. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10468. BEGIN Procedure (argument);
  10469. END Test.
  10470. negative: calling procedure with procedure parameter with object argument
  10471. MODULE Test;
  10472. VAR argument: OBJECT END;
  10473. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10474. BEGIN Procedure (argument);
  10475. END Test.
  10476. negative: calling procedure with procedure parameter with base object argument
  10477. MODULE Test;
  10478. VAR argument: OBJECT;
  10479. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10480. BEGIN Procedure (argument);
  10481. END Test.
  10482. negative: calling procedure with procedure parameter with pointer to array argument
  10483. MODULE Test;
  10484. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10485. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10486. BEGIN Procedure (argument);
  10487. END Test.
  10488. negative: calling procedure with procedure parameter with pointer to record argument
  10489. MODULE Test;
  10490. VAR argument: POINTER TO RECORD END;
  10491. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10492. BEGIN Procedure (argument);
  10493. END Test.
  10494. positive: calling procedure with procedure parameter with procedure argument
  10495. MODULE Test;
  10496. VAR argument: PROCEDURE;
  10497. PROCEDURE Procedure (value: PROCEDURE); END Procedure;
  10498. BEGIN Procedure (argument);
  10499. END Test.
  10500. positive: calling procedure with boolean variable parameter with boolean argument
  10501. MODULE Test;
  10502. VAR argument: BOOLEAN;
  10503. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10504. BEGIN Procedure (argument);
  10505. END Test.
  10506. negative: calling procedure with boolean variable parameter with character argument
  10507. MODULE Test;
  10508. VAR argument: CHAR;
  10509. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10510. BEGIN Procedure (argument);
  10511. END Test.
  10512. negative: calling procedure with boolean variable parameter with short integer argument
  10513. MODULE Test;
  10514. VAR argument: SHORTINT;
  10515. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10516. BEGIN Procedure (argument);
  10517. END Test.
  10518. negative: calling procedure with boolean variable parameter with integer argument
  10519. MODULE Test;
  10520. VAR argument: INTEGER;
  10521. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10522. BEGIN Procedure (argument);
  10523. END Test.
  10524. negative: calling procedure with boolean variable parameter with long integer argument
  10525. MODULE Test;
  10526. VAR argument: LONGINT;
  10527. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10528. BEGIN Procedure (argument);
  10529. END Test.
  10530. negative: calling procedure with boolean variable parameter with huge integer argument
  10531. MODULE Test;
  10532. VAR argument: HUGEINT;
  10533. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10534. BEGIN Procedure (argument);
  10535. END Test.
  10536. negative: calling procedure with boolean variable parameter with real argument
  10537. MODULE Test;
  10538. VAR argument: REAL;
  10539. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10540. BEGIN Procedure (argument);
  10541. END Test.
  10542. negative: calling procedure with boolean variable parameter with long real argument
  10543. MODULE Test;
  10544. VAR argument: LONGREAL;
  10545. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10546. BEGIN Procedure (argument);
  10547. END Test.
  10548. negative: calling procedure with boolean variable parameter with set argument
  10549. MODULE Test;
  10550. VAR argument: SET;
  10551. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10552. BEGIN Procedure (argument);
  10553. END Test.
  10554. negative: calling procedure with boolean variable parameter with array argument
  10555. MODULE Test;
  10556. VAR argument: ARRAY 10 OF CHAR;
  10557. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10558. BEGIN Procedure (argument);
  10559. END Test.
  10560. negative: calling procedure with boolean variable parameter with record argument
  10561. MODULE Test;
  10562. VAR argument: RECORD END;
  10563. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10564. BEGIN Procedure (argument);
  10565. END Test.
  10566. negative: calling procedure with boolean variable parameter with object argument
  10567. MODULE Test;
  10568. VAR argument: OBJECT END;
  10569. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10570. BEGIN Procedure (argument);
  10571. END Test.
  10572. negative: calling procedure with boolean variable parameter with base object argument
  10573. MODULE Test;
  10574. VAR argument: OBJECT;
  10575. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10576. BEGIN Procedure (argument);
  10577. END Test.
  10578. negative: calling procedure with boolean variable parameter with pointer to array argument
  10579. MODULE Test;
  10580. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10581. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10582. BEGIN Procedure (argument);
  10583. END Test.
  10584. negative: calling procedure with boolean variable parameter with pointer to record argument
  10585. MODULE Test;
  10586. VAR argument: POINTER TO RECORD END;
  10587. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10588. BEGIN Procedure (argument);
  10589. END Test.
  10590. negative: calling procedure with boolean variable parameter with procedure argument
  10591. MODULE Test;
  10592. VAR argument: PROCEDURE;
  10593. PROCEDURE Procedure (VAR value: BOOLEAN); END Procedure;
  10594. BEGIN Procedure (argument);
  10595. END Test.
  10596. negative: calling procedure with character variable parameter with boolean argument
  10597. MODULE Test;
  10598. VAR argument: BOOLEAN;
  10599. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10600. BEGIN Procedure (argument);
  10601. END Test.
  10602. positive: calling procedure with character variable parameter with character argument
  10603. MODULE Test;
  10604. VAR argument: CHAR;
  10605. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10606. BEGIN Procedure (argument);
  10607. END Test.
  10608. negative: calling procedure with character variable parameter with short integer argument
  10609. MODULE Test;
  10610. VAR argument: SHORTINT;
  10611. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10612. BEGIN Procedure (argument);
  10613. END Test.
  10614. negative: calling procedure with character variable parameter with integer argument
  10615. MODULE Test;
  10616. VAR argument: INTEGER;
  10617. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10618. BEGIN Procedure (argument);
  10619. END Test.
  10620. negative: calling procedure with character variable parameter with long integer argument
  10621. MODULE Test;
  10622. VAR argument: LONGINT;
  10623. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10624. BEGIN Procedure (argument);
  10625. END Test.
  10626. negative: calling procedure with character variable parameter with huge integer argument
  10627. MODULE Test;
  10628. VAR argument: HUGEINT;
  10629. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10630. BEGIN Procedure (argument);
  10631. END Test.
  10632. negative: calling procedure with character variable parameter with real argument
  10633. MODULE Test;
  10634. VAR argument: REAL;
  10635. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10636. BEGIN Procedure (argument);
  10637. END Test.
  10638. negative: calling procedure with character variable parameter with long real argument
  10639. MODULE Test;
  10640. VAR argument: LONGREAL;
  10641. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10642. BEGIN Procedure (argument);
  10643. END Test.
  10644. negative: calling procedure with character variable parameter with set argument
  10645. MODULE Test;
  10646. VAR argument: SET;
  10647. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10648. BEGIN Procedure (argument);
  10649. END Test.
  10650. negative: calling procedure with character variable parameter with array argument
  10651. MODULE Test;
  10652. VAR argument: ARRAY 10 OF CHAR;
  10653. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10654. BEGIN Procedure (argument);
  10655. END Test.
  10656. negative: calling procedure with character variable parameter with record argument
  10657. MODULE Test;
  10658. VAR argument: RECORD END;
  10659. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10660. BEGIN Procedure (argument);
  10661. END Test.
  10662. negative: calling procedure with character variable parameter with object argument
  10663. MODULE Test;
  10664. VAR argument: OBJECT END;
  10665. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10666. BEGIN Procedure (argument);
  10667. END Test.
  10668. negative: calling procedure with character variable parameter with base object argument
  10669. MODULE Test;
  10670. VAR argument: OBJECT;
  10671. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10672. BEGIN Procedure (argument);
  10673. END Test.
  10674. negative: calling procedure with character variable parameter with pointer to array argument
  10675. MODULE Test;
  10676. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10677. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10678. BEGIN Procedure (argument);
  10679. END Test.
  10680. negative: calling procedure with character variable parameter with pointer to record argument
  10681. MODULE Test;
  10682. VAR argument: POINTER TO RECORD END;
  10683. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10684. BEGIN Procedure (argument);
  10685. END Test.
  10686. negative: calling procedure with character variable parameter with procedure argument
  10687. MODULE Test;
  10688. VAR argument: PROCEDURE;
  10689. PROCEDURE Procedure (VAR value: CHAR); END Procedure;
  10690. BEGIN Procedure (argument);
  10691. END Test.
  10692. negative: calling procedure with short integer variable parameter with boolean argument
  10693. MODULE Test;
  10694. VAR argument: BOOLEAN;
  10695. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10696. BEGIN Procedure (argument);
  10697. END Test.
  10698. negative: calling procedure with short integer variable parameter with character argument
  10699. MODULE Test;
  10700. VAR argument: CHAR;
  10701. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10702. BEGIN Procedure (argument);
  10703. END Test.
  10704. positive: calling procedure with short integer variable parameter with short integer argument
  10705. MODULE Test;
  10706. VAR argument: SHORTINT;
  10707. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10708. BEGIN Procedure (argument);
  10709. END Test.
  10710. negative: calling procedure with short integer variable parameter with integer argument
  10711. MODULE Test;
  10712. VAR argument: INTEGER;
  10713. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10714. BEGIN Procedure (argument);
  10715. END Test.
  10716. negative: calling procedure with short integer variable parameter with long integer argument
  10717. MODULE Test;
  10718. VAR argument: LONGINT;
  10719. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10720. BEGIN Procedure (argument);
  10721. END Test.
  10722. negative: calling procedure with short integer variable parameter with huge integer argument
  10723. MODULE Test;
  10724. VAR argument: HUGEINT;
  10725. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10726. BEGIN Procedure (argument);
  10727. END Test.
  10728. negative: calling procedure with short integer variable parameter with real argument
  10729. MODULE Test;
  10730. VAR argument: REAL;
  10731. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10732. BEGIN Procedure (argument);
  10733. END Test.
  10734. negative: calling procedure with short integer variable parameter with long real argument
  10735. MODULE Test;
  10736. VAR argument: LONGREAL;
  10737. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10738. BEGIN Procedure (argument);
  10739. END Test.
  10740. negative: calling procedure with short integer variable parameter with set argument
  10741. MODULE Test;
  10742. VAR argument: SET;
  10743. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10744. BEGIN Procedure (argument);
  10745. END Test.
  10746. negative: calling procedure with short integer variable parameter with array argument
  10747. MODULE Test;
  10748. VAR argument: ARRAY 10 OF CHAR;
  10749. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10750. BEGIN Procedure (argument);
  10751. END Test.
  10752. negative: calling procedure with short integer variable parameter with record argument
  10753. MODULE Test;
  10754. VAR argument: RECORD END;
  10755. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10756. BEGIN Procedure (argument);
  10757. END Test.
  10758. negative: calling procedure with short integer variable parameter with object argument
  10759. MODULE Test;
  10760. VAR argument: OBJECT END;
  10761. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10762. BEGIN Procedure (argument);
  10763. END Test.
  10764. negative: calling procedure with short integer variable parameter with base object argument
  10765. MODULE Test;
  10766. VAR argument: OBJECT;
  10767. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10768. BEGIN Procedure (argument);
  10769. END Test.
  10770. negative: calling procedure with short integer variable parameter with pointer to array argument
  10771. MODULE Test;
  10772. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10773. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10774. BEGIN Procedure (argument);
  10775. END Test.
  10776. negative: calling procedure with short integer variable parameter with pointer to record argument
  10777. MODULE Test;
  10778. VAR argument: POINTER TO RECORD END;
  10779. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10780. BEGIN Procedure (argument);
  10781. END Test.
  10782. negative: calling procedure with short integer variable parameter with procedure argument
  10783. MODULE Test;
  10784. VAR argument: PROCEDURE;
  10785. PROCEDURE Procedure (VAR value: SHORTINT); END Procedure;
  10786. BEGIN Procedure (argument);
  10787. END Test.
  10788. negative: calling procedure with integer variable parameter with boolean argument
  10789. MODULE Test;
  10790. VAR argument: BOOLEAN;
  10791. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10792. BEGIN Procedure (argument);
  10793. END Test.
  10794. negative: calling procedure with integer variable parameter with character argument
  10795. MODULE Test;
  10796. VAR argument: CHAR;
  10797. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10798. BEGIN Procedure (argument);
  10799. END Test.
  10800. negative: calling procedure with integer variable parameter with short integer argument
  10801. MODULE Test;
  10802. VAR argument: SHORTINT;
  10803. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10804. BEGIN Procedure (argument);
  10805. END Test.
  10806. positive: calling procedure with integer variable parameter with integer argument
  10807. MODULE Test;
  10808. VAR argument: INTEGER;
  10809. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10810. BEGIN Procedure (argument);
  10811. END Test.
  10812. negative: calling procedure with integer variable parameter with long integer argument
  10813. MODULE Test;
  10814. VAR argument: LONGINT;
  10815. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10816. BEGIN Procedure (argument);
  10817. END Test.
  10818. negative: calling procedure with integer variable parameter with huge integer argument
  10819. MODULE Test;
  10820. VAR argument: HUGEINT;
  10821. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10822. BEGIN Procedure (argument);
  10823. END Test.
  10824. negative: calling procedure with integer variable parameter with real argument
  10825. MODULE Test;
  10826. VAR argument: REAL;
  10827. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10828. BEGIN Procedure (argument);
  10829. END Test.
  10830. negative: calling procedure with integer variable parameter with long real argument
  10831. MODULE Test;
  10832. VAR argument: LONGREAL;
  10833. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10834. BEGIN Procedure (argument);
  10835. END Test.
  10836. negative: calling procedure with integer variable parameter with set argument
  10837. MODULE Test;
  10838. VAR argument: SET;
  10839. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10840. BEGIN Procedure (argument);
  10841. END Test.
  10842. negative: calling procedure with integer variable parameter with array argument
  10843. MODULE Test;
  10844. VAR argument: ARRAY 10 OF CHAR;
  10845. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10846. BEGIN Procedure (argument);
  10847. END Test.
  10848. negative: calling procedure with integer variable parameter with record argument
  10849. MODULE Test;
  10850. VAR argument: RECORD END;
  10851. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10852. BEGIN Procedure (argument);
  10853. END Test.
  10854. negative: calling procedure with integer variable parameter with object argument
  10855. MODULE Test;
  10856. VAR argument: OBJECT END;
  10857. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10858. BEGIN Procedure (argument);
  10859. END Test.
  10860. negative: calling procedure with integer variable parameter with base object argument
  10861. MODULE Test;
  10862. VAR argument: OBJECT;
  10863. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10864. BEGIN Procedure (argument);
  10865. END Test.
  10866. negative: calling procedure with integer variable parameter with pointer to array argument
  10867. MODULE Test;
  10868. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10869. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10870. BEGIN Procedure (argument);
  10871. END Test.
  10872. negative: calling procedure with integer variable parameter with pointer to record argument
  10873. MODULE Test;
  10874. VAR argument: POINTER TO RECORD END;
  10875. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10876. BEGIN Procedure (argument);
  10877. END Test.
  10878. negative: calling procedure with integer variable parameter with procedure argument
  10879. MODULE Test;
  10880. VAR argument: PROCEDURE;
  10881. PROCEDURE Procedure (VAR value: INTEGER); END Procedure;
  10882. BEGIN Procedure (argument);
  10883. END Test.
  10884. negative: calling procedure with long integer variable parameter with boolean argument
  10885. MODULE Test;
  10886. VAR argument: BOOLEAN;
  10887. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10888. BEGIN Procedure (argument);
  10889. END Test.
  10890. negative: calling procedure with long integer variable parameter with character argument
  10891. MODULE Test;
  10892. VAR argument: CHAR;
  10893. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10894. BEGIN Procedure (argument);
  10895. END Test.
  10896. negative: calling procedure with long integer variable parameter with short integer argument
  10897. MODULE Test;
  10898. VAR argument: SHORTINT;
  10899. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10900. BEGIN Procedure (argument);
  10901. END Test.
  10902. negative: calling procedure with long integer variable parameter with integer argument
  10903. MODULE Test;
  10904. VAR argument: INTEGER;
  10905. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10906. BEGIN Procedure (argument);
  10907. END Test.
  10908. positive: calling procedure with long integer variable parameter with long integer argument
  10909. MODULE Test;
  10910. VAR argument: LONGINT;
  10911. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10912. BEGIN Procedure (argument);
  10913. END Test.
  10914. negative: calling procedure with long integer variable parameter with huge integer argument
  10915. MODULE Test;
  10916. VAR argument: HUGEINT;
  10917. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10918. BEGIN Procedure (argument);
  10919. END Test.
  10920. negative: calling procedure with long integer variable parameter with real argument
  10921. MODULE Test;
  10922. VAR argument: REAL;
  10923. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10924. BEGIN Procedure (argument);
  10925. END Test.
  10926. negative: calling procedure with long integer variable parameter with long real argument
  10927. MODULE Test;
  10928. VAR argument: LONGREAL;
  10929. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10930. BEGIN Procedure (argument);
  10931. END Test.
  10932. negative: calling procedure with long integer variable parameter with set argument
  10933. MODULE Test;
  10934. VAR argument: SET;
  10935. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10936. BEGIN Procedure (argument);
  10937. END Test.
  10938. negative: calling procedure with long integer variable parameter with array argument
  10939. MODULE Test;
  10940. VAR argument: ARRAY 10 OF CHAR;
  10941. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10942. BEGIN Procedure (argument);
  10943. END Test.
  10944. negative: calling procedure with long integer variable parameter with record argument
  10945. MODULE Test;
  10946. VAR argument: RECORD END;
  10947. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10948. BEGIN Procedure (argument);
  10949. END Test.
  10950. negative: calling procedure with long integer variable parameter with object argument
  10951. MODULE Test;
  10952. VAR argument: OBJECT END;
  10953. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10954. BEGIN Procedure (argument);
  10955. END Test.
  10956. negative: calling procedure with long integer variable parameter with base object argument
  10957. MODULE Test;
  10958. VAR argument: OBJECT;
  10959. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10960. BEGIN Procedure (argument);
  10961. END Test.
  10962. negative: calling procedure with long integer variable parameter with pointer to array argument
  10963. MODULE Test;
  10964. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  10965. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10966. BEGIN Procedure (argument);
  10967. END Test.
  10968. negative: calling procedure with long integer variable parameter with pointer to record argument
  10969. MODULE Test;
  10970. VAR argument: POINTER TO RECORD END;
  10971. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10972. BEGIN Procedure (argument);
  10973. END Test.
  10974. negative: calling procedure with long integer variable parameter with procedure argument
  10975. MODULE Test;
  10976. VAR argument: PROCEDURE;
  10977. PROCEDURE Procedure (VAR value: LONGINT); END Procedure;
  10978. BEGIN Procedure (argument);
  10979. END Test.
  10980. negative: calling procedure with huge integer variable parameter with boolean argument
  10981. MODULE Test;
  10982. VAR argument: BOOLEAN;
  10983. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  10984. BEGIN Procedure (argument);
  10985. END Test.
  10986. negative: calling procedure with huge integer variable parameter with character argument
  10987. MODULE Test;
  10988. VAR argument: CHAR;
  10989. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  10990. BEGIN Procedure (argument);
  10991. END Test.
  10992. negative: calling procedure with huge integer variable parameter with short integer argument
  10993. MODULE Test;
  10994. VAR argument: SHORTINT;
  10995. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  10996. BEGIN Procedure (argument);
  10997. END Test.
  10998. negative: calling procedure with huge integer variable parameter with integer argument
  10999. MODULE Test;
  11000. VAR argument: INTEGER;
  11001. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11002. BEGIN Procedure (argument);
  11003. END Test.
  11004. negative: calling procedure with huge integer variable parameter with long integer argument
  11005. MODULE Test;
  11006. VAR argument: LONGINT;
  11007. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11008. BEGIN Procedure (argument);
  11009. END Test.
  11010. positive: calling procedure with huge integer variable parameter with huge integer argument
  11011. MODULE Test;
  11012. VAR argument: HUGEINT;
  11013. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11014. BEGIN Procedure (argument);
  11015. END Test.
  11016. negative: calling procedure with huge integer variable parameter with real argument
  11017. MODULE Test;
  11018. VAR argument: REAL;
  11019. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11020. BEGIN Procedure (argument);
  11021. END Test.
  11022. negative: calling procedure with huge integer variable parameter with long real argument
  11023. MODULE Test;
  11024. VAR argument: LONGREAL;
  11025. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11026. BEGIN Procedure (argument);
  11027. END Test.
  11028. negative: calling procedure with huge integer variable parameter with set argument
  11029. MODULE Test;
  11030. VAR argument: SET;
  11031. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11032. BEGIN Procedure (argument);
  11033. END Test.
  11034. negative: calling procedure with huge integer variable parameter with array argument
  11035. MODULE Test;
  11036. VAR argument: ARRAY 10 OF CHAR;
  11037. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11038. BEGIN Procedure (argument);
  11039. END Test.
  11040. negative: calling procedure with huge integer variable parameter with record argument
  11041. MODULE Test;
  11042. VAR argument: RECORD END;
  11043. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11044. BEGIN Procedure (argument);
  11045. END Test.
  11046. negative: calling procedure with huge integer variable parameter with object argument
  11047. MODULE Test;
  11048. VAR argument: OBJECT END;
  11049. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11050. BEGIN Procedure (argument);
  11051. END Test.
  11052. negative: calling procedure with huge integer variable parameter with base object argument
  11053. MODULE Test;
  11054. VAR argument: OBJECT;
  11055. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11056. BEGIN Procedure (argument);
  11057. END Test.
  11058. negative: calling procedure with huge integer variable parameter with pointer to array argument
  11059. MODULE Test;
  11060. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11061. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11062. BEGIN Procedure (argument);
  11063. END Test.
  11064. negative: calling procedure with huge integer variable parameter with pointer to record argument
  11065. MODULE Test;
  11066. VAR argument: POINTER TO RECORD END;
  11067. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11068. BEGIN Procedure (argument);
  11069. END Test.
  11070. negative: calling procedure with huge integer variable parameter with procedure argument
  11071. MODULE Test;
  11072. VAR argument: PROCEDURE;
  11073. PROCEDURE Procedure (VAR value: HUGEINT); END Procedure;
  11074. BEGIN Procedure (argument);
  11075. END Test.
  11076. negative: calling procedure with real variable parameter with boolean argument
  11077. MODULE Test;
  11078. VAR argument: BOOLEAN;
  11079. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11080. BEGIN Procedure (argument);
  11081. END Test.
  11082. negative: calling procedure with real variable parameter with character argument
  11083. MODULE Test;
  11084. VAR argument: CHAR;
  11085. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11086. BEGIN Procedure (argument);
  11087. END Test.
  11088. negative: calling procedure with real variable parameter with short integer argument
  11089. MODULE Test;
  11090. VAR argument: SHORTINT;
  11091. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11092. BEGIN Procedure (argument);
  11093. END Test.
  11094. negative: calling procedure with real variable parameter with integer argument
  11095. MODULE Test;
  11096. VAR argument: INTEGER;
  11097. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11098. BEGIN Procedure (argument);
  11099. END Test.
  11100. negative: calling procedure with real variable parameter with long integer argument
  11101. MODULE Test;
  11102. VAR argument: LONGINT;
  11103. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11104. BEGIN Procedure (argument);
  11105. END Test.
  11106. negative: calling procedure with real variable parameter with huge integer argument
  11107. MODULE Test;
  11108. VAR argument: HUGEINT;
  11109. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11110. BEGIN Procedure (argument);
  11111. END Test.
  11112. positive: calling procedure with real variable parameter with real argument
  11113. MODULE Test;
  11114. VAR argument: REAL;
  11115. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11116. BEGIN Procedure (argument);
  11117. END Test.
  11118. negative: calling procedure with real variable parameter with long real argument
  11119. MODULE Test;
  11120. VAR argument: LONGREAL;
  11121. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11122. BEGIN Procedure (argument);
  11123. END Test.
  11124. negative: calling procedure with real variable parameter with set argument
  11125. MODULE Test;
  11126. VAR argument: SET;
  11127. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11128. BEGIN Procedure (argument);
  11129. END Test.
  11130. negative: calling procedure with real variable parameter with array argument
  11131. MODULE Test;
  11132. VAR argument: ARRAY 10 OF CHAR;
  11133. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11134. BEGIN Procedure (argument);
  11135. END Test.
  11136. negative: calling procedure with real variable parameter with record argument
  11137. MODULE Test;
  11138. VAR argument: RECORD END;
  11139. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11140. BEGIN Procedure (argument);
  11141. END Test.
  11142. negative: calling procedure with real variable parameter with object argument
  11143. MODULE Test;
  11144. VAR argument: OBJECT END;
  11145. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11146. BEGIN Procedure (argument);
  11147. END Test.
  11148. negative: calling procedure with real variable parameter with base object argument
  11149. MODULE Test;
  11150. VAR argument: OBJECT;
  11151. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11152. BEGIN Procedure (argument);
  11153. END Test.
  11154. negative: calling procedure with real variable parameter with pointer to array argument
  11155. MODULE Test;
  11156. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11157. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11158. BEGIN Procedure (argument);
  11159. END Test.
  11160. negative: calling procedure with real variable parameter with pointer to record argument
  11161. MODULE Test;
  11162. VAR argument: POINTER TO RECORD END;
  11163. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11164. BEGIN Procedure (argument);
  11165. END Test.
  11166. negative: calling procedure with real variable parameter with procedure argument
  11167. MODULE Test;
  11168. VAR argument: PROCEDURE;
  11169. PROCEDURE Procedure (VAR value: REAL); END Procedure;
  11170. BEGIN Procedure (argument);
  11171. END Test.
  11172. negative: calling procedure with long real variable parameter with boolean argument
  11173. MODULE Test;
  11174. VAR argument: BOOLEAN;
  11175. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11176. BEGIN Procedure (argument);
  11177. END Test.
  11178. negative: calling procedure with long real variable parameter with character argument
  11179. MODULE Test;
  11180. VAR argument: CHAR;
  11181. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11182. BEGIN Procedure (argument);
  11183. END Test.
  11184. negative: calling procedure with long real variable parameter with short integer argument
  11185. MODULE Test;
  11186. VAR argument: SHORTINT;
  11187. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11188. BEGIN Procedure (argument);
  11189. END Test.
  11190. negative: calling procedure with long real variable parameter with integer argument
  11191. MODULE Test;
  11192. VAR argument: INTEGER;
  11193. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11194. BEGIN Procedure (argument);
  11195. END Test.
  11196. negative: calling procedure with long real variable parameter with long integer argument
  11197. MODULE Test;
  11198. VAR argument: LONGINT;
  11199. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11200. BEGIN Procedure (argument);
  11201. END Test.
  11202. negative: calling procedure with long real variable parameter with huge integer argument
  11203. MODULE Test;
  11204. VAR argument: HUGEINT;
  11205. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11206. BEGIN Procedure (argument);
  11207. END Test.
  11208. negative: calling procedure with long real variable parameter with real argument
  11209. MODULE Test;
  11210. VAR argument: REAL;
  11211. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11212. BEGIN Procedure (argument);
  11213. END Test.
  11214. positive: calling procedure with long real variable parameter with long real argument
  11215. MODULE Test;
  11216. VAR argument: LONGREAL;
  11217. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11218. BEGIN Procedure (argument);
  11219. END Test.
  11220. negative: calling procedure with long real variable parameter with set argument
  11221. MODULE Test;
  11222. VAR argument: SET;
  11223. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11224. BEGIN Procedure (argument);
  11225. END Test.
  11226. negative: calling procedure with long real variable parameter with array argument
  11227. MODULE Test;
  11228. VAR argument: ARRAY 10 OF CHAR;
  11229. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11230. BEGIN Procedure (argument);
  11231. END Test.
  11232. negative: calling procedure with long real variable parameter with record argument
  11233. MODULE Test;
  11234. VAR argument: RECORD END;
  11235. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11236. BEGIN Procedure (argument);
  11237. END Test.
  11238. negative: calling procedure with long real variable parameter with object argument
  11239. MODULE Test;
  11240. VAR argument: OBJECT END;
  11241. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11242. BEGIN Procedure (argument);
  11243. END Test.
  11244. negative: calling procedure with long real variable parameter with base object argument
  11245. MODULE Test;
  11246. VAR argument: OBJECT;
  11247. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11248. BEGIN Procedure (argument);
  11249. END Test.
  11250. negative: calling procedure with long real variable parameter with pointer to array argument
  11251. MODULE Test;
  11252. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11253. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11254. BEGIN Procedure (argument);
  11255. END Test.
  11256. negative: calling procedure with long real variable parameter with pointer to record argument
  11257. MODULE Test;
  11258. VAR argument: POINTER TO RECORD END;
  11259. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11260. BEGIN Procedure (argument);
  11261. END Test.
  11262. negative: calling procedure with long real variable parameter with procedure argument
  11263. MODULE Test;
  11264. VAR argument: PROCEDURE;
  11265. PROCEDURE Procedure (VAR value: LONGREAL); END Procedure;
  11266. BEGIN Procedure (argument);
  11267. END Test.
  11268. negative: calling procedure with set variable parameter with boolean argument
  11269. MODULE Test;
  11270. VAR argument: BOOLEAN;
  11271. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11272. BEGIN Procedure (argument);
  11273. END Test.
  11274. negative: calling procedure with set variable parameter with character argument
  11275. MODULE Test;
  11276. VAR argument: CHAR;
  11277. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11278. BEGIN Procedure (argument);
  11279. END Test.
  11280. negative: calling procedure with set variable parameter with short integer argument
  11281. MODULE Test;
  11282. VAR argument: SHORTINT;
  11283. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11284. BEGIN Procedure (argument);
  11285. END Test.
  11286. negative: calling procedure with set variable parameter with integer argument
  11287. MODULE Test;
  11288. VAR argument: INTEGER;
  11289. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11290. BEGIN Procedure (argument);
  11291. END Test.
  11292. negative: calling procedure with set variable parameter with long integer argument
  11293. MODULE Test;
  11294. VAR argument: LONGINT;
  11295. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11296. BEGIN Procedure (argument);
  11297. END Test.
  11298. negative: calling procedure with set variable parameter with huge integer argument
  11299. MODULE Test;
  11300. VAR argument: HUGEINT;
  11301. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11302. BEGIN Procedure (argument);
  11303. END Test.
  11304. negative: calling procedure with set variable parameter with real argument
  11305. MODULE Test;
  11306. VAR argument: REAL;
  11307. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11308. BEGIN Procedure (argument);
  11309. END Test.
  11310. negative: calling procedure with set variable parameter with long real argument
  11311. MODULE Test;
  11312. VAR argument: LONGREAL;
  11313. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11314. BEGIN Procedure (argument);
  11315. END Test.
  11316. positive: calling procedure with set variable parameter with set argument
  11317. MODULE Test;
  11318. VAR argument: SET;
  11319. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11320. BEGIN Procedure (argument);
  11321. END Test.
  11322. negative: calling procedure with set variable parameter with array argument
  11323. MODULE Test;
  11324. VAR argument: ARRAY 10 OF CHAR;
  11325. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11326. BEGIN Procedure (argument);
  11327. END Test.
  11328. negative: calling procedure with set variable parameter with record argument
  11329. MODULE Test;
  11330. VAR argument: RECORD END;
  11331. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11332. BEGIN Procedure (argument);
  11333. END Test.
  11334. negative: calling procedure with set variable parameter with object argument
  11335. MODULE Test;
  11336. VAR argument: OBJECT END;
  11337. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11338. BEGIN Procedure (argument);
  11339. END Test.
  11340. negative: calling procedure with set variable parameter with base object argument
  11341. MODULE Test;
  11342. VAR argument: OBJECT;
  11343. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11344. BEGIN Procedure (argument);
  11345. END Test.
  11346. negative: calling procedure with set variable parameter with pointer to array argument
  11347. MODULE Test;
  11348. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11349. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11350. BEGIN Procedure (argument);
  11351. END Test.
  11352. negative: calling procedure with set variable parameter with pointer to record argument
  11353. MODULE Test;
  11354. VAR argument: POINTER TO RECORD END;
  11355. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11356. BEGIN Procedure (argument);
  11357. END Test.
  11358. negative: calling procedure with set variable parameter with procedure argument
  11359. MODULE Test;
  11360. VAR argument: PROCEDURE;
  11361. PROCEDURE Procedure (VAR value: SET); END Procedure;
  11362. BEGIN Procedure (argument);
  11363. END Test.
  11364. negative: calling procedure with array variable parameter with boolean argument
  11365. MODULE Test;
  11366. VAR argument: BOOLEAN;
  11367. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11368. BEGIN Procedure (argument);
  11369. END Test.
  11370. negative: calling procedure with array variable parameter with character argument
  11371. MODULE Test;
  11372. VAR argument: CHAR;
  11373. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11374. BEGIN Procedure (argument);
  11375. END Test.
  11376. negative: calling procedure with array variable parameter with short integer argument
  11377. MODULE Test;
  11378. VAR argument: SHORTINT;
  11379. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11380. BEGIN Procedure (argument);
  11381. END Test.
  11382. negative: calling procedure with array variable parameter with integer argument
  11383. MODULE Test;
  11384. VAR argument: INTEGER;
  11385. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11386. BEGIN Procedure (argument);
  11387. END Test.
  11388. negative: calling procedure with array variable parameter with long integer argument
  11389. MODULE Test;
  11390. VAR argument: LONGINT;
  11391. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11392. BEGIN Procedure (argument);
  11393. END Test.
  11394. negative: calling procedure with array variable parameter with huge integer argument
  11395. MODULE Test;
  11396. VAR argument: HUGEINT;
  11397. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11398. BEGIN Procedure (argument);
  11399. END Test.
  11400. negative: calling procedure with array variable parameter with real argument
  11401. MODULE Test;
  11402. VAR argument: REAL;
  11403. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11404. BEGIN Procedure (argument);
  11405. END Test.
  11406. negative: calling procedure with array variable parameter with long real argument
  11407. MODULE Test;
  11408. VAR argument: LONGREAL;
  11409. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11410. BEGIN Procedure (argument);
  11411. END Test.
  11412. negative: calling procedure with array variable parameter with set argument
  11413. MODULE Test;
  11414. VAR argument: SET;
  11415. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11416. BEGIN Procedure (argument);
  11417. END Test.
  11418. positive: calling procedure with array variable parameter with array argument
  11419. MODULE Test;
  11420. VAR argument: ARRAY 10 OF CHAR;
  11421. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11422. BEGIN Procedure (argument);
  11423. END Test.
  11424. negative: calling procedure with array variable parameter with longer array argument
  11425. MODULE Test;
  11426. VAR argument: ARRAY 20 OF CHAR;
  11427. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11428. BEGIN Procedure (argument);
  11429. END Test.
  11430. negative: calling procedure with array variable parameter with record argument
  11431. MODULE Test;
  11432. VAR argument: RECORD END;
  11433. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11434. BEGIN Procedure (argument);
  11435. END Test.
  11436. negative: calling procedure with array variable parameter with object argument
  11437. MODULE Test;
  11438. VAR argument: OBJECT END;
  11439. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11440. BEGIN Procedure (argument);
  11441. END Test.
  11442. negative: calling procedure with array variable parameter with base object argument
  11443. MODULE Test;
  11444. VAR argument: OBJECT;
  11445. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11446. BEGIN Procedure (argument);
  11447. END Test.
  11448. negative: calling procedure with array variable parameter with pointer to array argument
  11449. MODULE Test;
  11450. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11451. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11452. BEGIN Procedure (argument);
  11453. END Test.
  11454. negative: calling procedure with array variable parameter with pointer to record argument
  11455. MODULE Test;
  11456. VAR argument: POINTER TO RECORD END;
  11457. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11458. BEGIN Procedure (argument);
  11459. END Test.
  11460. negative: calling procedure with array variable parameter with procedure argument
  11461. MODULE Test;
  11462. VAR argument: PROCEDURE;
  11463. PROCEDURE Procedure (VAR value: ARRAY 10 OF CHAR); END Procedure;
  11464. BEGIN Procedure (argument);
  11465. END Test.
  11466. negative: calling procedure with open array variable parameter with boolean argument
  11467. MODULE Test;
  11468. VAR argument: BOOLEAN;
  11469. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11470. BEGIN Procedure (argument);
  11471. END Test.
  11472. negative: calling procedure with open array variable parameter with character argument
  11473. MODULE Test;
  11474. VAR argument: CHAR;
  11475. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11476. BEGIN Procedure (argument);
  11477. END Test.
  11478. negative: calling procedure with open array variable parameter with short integer argument
  11479. MODULE Test;
  11480. VAR argument: SHORTINT;
  11481. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11482. BEGIN Procedure (argument);
  11483. END Test.
  11484. negative: calling procedure with open array variable parameter with integer argument
  11485. MODULE Test;
  11486. VAR argument: INTEGER;
  11487. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11488. BEGIN Procedure (argument);
  11489. END Test.
  11490. negative: calling procedure with open array variable parameter with long integer argument
  11491. MODULE Test;
  11492. VAR argument: LONGINT;
  11493. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11494. BEGIN Procedure (argument);
  11495. END Test.
  11496. negative: calling procedure with open array variable parameter with huge integer argument
  11497. MODULE Test;
  11498. VAR argument: HUGEINT;
  11499. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11500. BEGIN Procedure (argument);
  11501. END Test.
  11502. negative: calling procedure with open array variable parameter with real argument
  11503. MODULE Test;
  11504. VAR argument: REAL;
  11505. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11506. BEGIN Procedure (argument);
  11507. END Test.
  11508. negative: calling procedure with open array variable parameter with long real argument
  11509. MODULE Test;
  11510. VAR argument: LONGREAL;
  11511. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11512. BEGIN Procedure (argument);
  11513. END Test.
  11514. negative: calling procedure with open array variable parameter with set argument
  11515. MODULE Test;
  11516. VAR argument: SET;
  11517. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11518. BEGIN Procedure (argument);
  11519. END Test.
  11520. positive: calling procedure with open array variable parameter with array argument
  11521. MODULE Test;
  11522. VAR argument: ARRAY 10 OF CHAR;
  11523. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11524. BEGIN Procedure (argument);
  11525. END Test.
  11526. negative: calling procedure with open array variable parameter with record argument
  11527. MODULE Test;
  11528. VAR argument: RECORD END;
  11529. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11530. BEGIN Procedure (argument);
  11531. END Test.
  11532. negative: calling procedure with open array variable parameter with object argument
  11533. MODULE Test;
  11534. VAR argument: OBJECT END;
  11535. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11536. BEGIN Procedure (argument);
  11537. END Test.
  11538. negative: calling procedure with open array variable parameter with base object argument
  11539. MODULE Test;
  11540. VAR argument: OBJECT;
  11541. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11542. BEGIN Procedure (argument);
  11543. END Test.
  11544. negative: calling procedure with open array variable parameter with pointer to array argument
  11545. MODULE Test;
  11546. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11547. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11548. BEGIN Procedure (argument);
  11549. END Test.
  11550. negative: calling procedure with open array variable parameter with pointer to record argument
  11551. MODULE Test;
  11552. VAR argument: POINTER TO RECORD END;
  11553. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11554. BEGIN Procedure (argument);
  11555. END Test.
  11556. negative: calling procedure with open array variable parameter with procedure argument
  11557. MODULE Test;
  11558. VAR argument: PROCEDURE;
  11559. PROCEDURE Procedure (VAR value: ARRAY OF CHAR); END Procedure;
  11560. BEGIN Procedure (argument);
  11561. END Test.
  11562. negative: calling procedure with record variable parameter with boolean argument
  11563. MODULE Test;
  11564. VAR argument: BOOLEAN;
  11565. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11566. BEGIN Procedure (argument);
  11567. END Test.
  11568. negative: calling procedure with record variable parameter with character argument
  11569. MODULE Test;
  11570. VAR argument: CHAR;
  11571. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11572. BEGIN Procedure (argument);
  11573. END Test.
  11574. negative: calling procedure with record variable parameter with short integer argument
  11575. MODULE Test;
  11576. VAR argument: SHORTINT;
  11577. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11578. BEGIN Procedure (argument);
  11579. END Test.
  11580. negative: calling procedure with record variable parameter with integer argument
  11581. MODULE Test;
  11582. VAR argument: INTEGER;
  11583. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11584. BEGIN Procedure (argument);
  11585. END Test.
  11586. negative: calling procedure with record variable parameter with long integer argument
  11587. MODULE Test;
  11588. VAR argument: LONGINT;
  11589. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11590. BEGIN Procedure (argument);
  11591. END Test.
  11592. negative: calling procedure with record variable parameter with huge integer argument
  11593. MODULE Test;
  11594. VAR argument: HUGEINT;
  11595. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11596. BEGIN Procedure (argument);
  11597. END Test.
  11598. negative: calling procedure with record variable parameter with real argument
  11599. MODULE Test;
  11600. VAR argument: REAL;
  11601. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11602. BEGIN Procedure (argument);
  11603. END Test.
  11604. negative: calling procedure with record variable parameter with long real argument
  11605. MODULE Test;
  11606. VAR argument: LONGREAL;
  11607. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11608. BEGIN Procedure (argument);
  11609. END Test.
  11610. negative: calling procedure with record variable parameter with set argument
  11611. MODULE Test;
  11612. VAR argument: SET;
  11613. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11614. BEGIN Procedure (argument);
  11615. END Test.
  11616. negative: calling procedure with record variable parameter with array argument
  11617. MODULE Test;
  11618. VAR argument: ARRAY 10 OF CHAR;
  11619. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11620. BEGIN Procedure (argument);
  11621. END Test.
  11622. positive: calling procedure with record variable parameter with record argument
  11623. MODULE Test;
  11624. TYPE Record = RECORD END;
  11625. VAR argument: Record;
  11626. PROCEDURE Procedure (VAR value: Record); END Procedure;
  11627. BEGIN Procedure (argument);
  11628. END Test.
  11629. positive: calling procedure with record variable parameter with compatible record argument
  11630. MODULE Test;
  11631. TYPE Record = RECORD END;
  11632. VAR argument: RECORD (Record) END;
  11633. PROCEDURE Procedure (VAR value: Record); END Procedure;
  11634. BEGIN Procedure (argument);
  11635. END Test.
  11636. negative: calling procedure with record variable parameter with incompatible record argument
  11637. MODULE Test;
  11638. TYPE Record = RECORD END;
  11639. VAR argument: Record;
  11640. PROCEDURE Procedure (VAR value: RECORD (Record) END); END Procedure;
  11641. BEGIN Procedure (argument);
  11642. END Test.
  11643. negative: calling procedure with record variable parameter with object argument
  11644. MODULE Test;
  11645. VAR argument: OBJECT END;
  11646. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11647. BEGIN Procedure (argument);
  11648. END Test.
  11649. negative: calling procedure with record variable parameter with base object argument
  11650. MODULE Test;
  11651. VAR argument: OBJECT;
  11652. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11653. BEGIN Procedure (argument);
  11654. END Test.
  11655. negative: calling procedure with record variable parameter with pointer to array argument
  11656. MODULE Test;
  11657. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11658. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11659. BEGIN Procedure (argument);
  11660. END Test.
  11661. negative: calling procedure with record variable parameter with pointer to record argument
  11662. MODULE Test;
  11663. VAR argument: POINTER TO RECORD END;
  11664. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11665. BEGIN Procedure (argument);
  11666. END Test.
  11667. negative: calling procedure with record variable parameter with procedure argument
  11668. MODULE Test;
  11669. VAR argument: PROCEDURE;
  11670. PROCEDURE Procedure (VAR value: RECORD END); END Procedure;
  11671. BEGIN Procedure (argument);
  11672. END Test.
  11673. negative: calling procedure with object variable parameter with boolean argument
  11674. MODULE Test;
  11675. VAR argument: BOOLEAN;
  11676. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11677. BEGIN Procedure (argument);
  11678. END Test.
  11679. negative: calling procedure with object variable parameter with character argument
  11680. MODULE Test;
  11681. VAR argument: CHAR;
  11682. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11683. BEGIN Procedure (argument);
  11684. END Test.
  11685. negative: calling procedure with object variable parameter with short integer argument
  11686. MODULE Test;
  11687. VAR argument: SHORTINT;
  11688. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11689. BEGIN Procedure (argument);
  11690. END Test.
  11691. negative: calling procedure with object variable parameter with integer argument
  11692. MODULE Test;
  11693. VAR argument: INTEGER;
  11694. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11695. BEGIN Procedure (argument);
  11696. END Test.
  11697. negative: calling procedure with object variable parameter with long integer argument
  11698. MODULE Test;
  11699. VAR argument: LONGINT;
  11700. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11701. BEGIN Procedure (argument);
  11702. END Test.
  11703. negative: calling procedure with object variable parameter with huge integer argument
  11704. MODULE Test;
  11705. VAR argument: HUGEINT;
  11706. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11707. BEGIN Procedure (argument);
  11708. END Test.
  11709. negative: calling procedure with object variable parameter with real argument
  11710. MODULE Test;
  11711. VAR argument: REAL;
  11712. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11713. BEGIN Procedure (argument);
  11714. END Test.
  11715. negative: calling procedure with object variable parameter with long real argument
  11716. MODULE Test;
  11717. VAR argument: LONGREAL;
  11718. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11719. BEGIN Procedure (argument);
  11720. END Test.
  11721. negative: calling procedure with object variable parameter with set argument
  11722. MODULE Test;
  11723. VAR argument: SET;
  11724. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11725. BEGIN Procedure (argument);
  11726. END Test.
  11727. negative: calling procedure with object variable parameter with array argument
  11728. MODULE Test;
  11729. VAR argument: ARRAY 10 OF CHAR;
  11730. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11731. BEGIN Procedure (argument);
  11732. END Test.
  11733. negative: calling procedure with object variable parameter with record argument
  11734. MODULE Test;
  11735. VAR argument: RECORD END;
  11736. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11737. BEGIN Procedure (argument);
  11738. END Test.
  11739. positive: calling procedure with object variable parameter with object argument
  11740. MODULE Test;
  11741. TYPE Object = OBJECT END Object;
  11742. VAR argument: Object;
  11743. PROCEDURE Procedure (VAR value: Object); END Procedure;
  11744. BEGIN Procedure (argument);
  11745. END Test.
  11746. negative: calling procedure with object variable parameter with compatible object argument
  11747. MODULE Test;
  11748. TYPE Object = OBJECT END Object;
  11749. VAR argument: OBJECT (Object) END;
  11750. PROCEDURE Procedure (VAR value: Object); END Procedure;
  11751. BEGIN Procedure (argument);
  11752. END Test.
  11753. negative: calling procedure with object variable parameter with incompatible object argument
  11754. MODULE Test;
  11755. TYPE Object = OBJECT END Object;
  11756. VAR argument: Object;
  11757. PROCEDURE Procedure (VAR value: OBJECT (Object) END); END Procedure;
  11758. BEGIN Procedure (argument);
  11759. END Test.
  11760. negative: calling procedure with object variable parameter with base object argument
  11761. MODULE Test;
  11762. VAR argument: OBJECT;
  11763. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11764. BEGIN Procedure (argument);
  11765. END Test.
  11766. negative: calling procedure with object variable parameter with pointer to array argument
  11767. MODULE Test;
  11768. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11769. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11770. BEGIN Procedure (argument);
  11771. END Test.
  11772. negative: calling procedure with object variable parameter with pointer to record argument
  11773. MODULE Test;
  11774. VAR argument: POINTER TO RECORD END;
  11775. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11776. BEGIN Procedure (argument);
  11777. END Test.
  11778. negative: calling procedure with object variable parameter with procedure argument
  11779. MODULE Test;
  11780. VAR argument: PROCEDURE;
  11781. PROCEDURE Procedure (VAR value: OBJECT END); END Procedure;
  11782. BEGIN Procedure (argument);
  11783. END Test.
  11784. negative: calling procedure with base object variable parameter with boolean argument
  11785. MODULE Test;
  11786. VAR argument: BOOLEAN;
  11787. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11788. BEGIN Procedure (argument);
  11789. END Test.
  11790. negative: calling procedure with base object variable parameter with character argument
  11791. MODULE Test;
  11792. VAR argument: CHAR;
  11793. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11794. BEGIN Procedure (argument);
  11795. END Test.
  11796. negative: calling procedure with base object variable parameter with short integer argument
  11797. MODULE Test;
  11798. VAR argument: SHORTINT;
  11799. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11800. BEGIN Procedure (argument);
  11801. END Test.
  11802. negative: calling procedure with base object variable parameter with integer argument
  11803. MODULE Test;
  11804. VAR argument: INTEGER;
  11805. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11806. BEGIN Procedure (argument);
  11807. END Test.
  11808. negative: calling procedure with base object variable parameter with long integer argument
  11809. MODULE Test;
  11810. VAR argument: LONGINT;
  11811. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11812. BEGIN Procedure (argument);
  11813. END Test.
  11814. negative: calling procedure with base object variable parameter with huge integer argument
  11815. MODULE Test;
  11816. VAR argument: HUGEINT;
  11817. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11818. BEGIN Procedure (argument);
  11819. END Test.
  11820. negative: calling procedure with base object variable parameter with real argument
  11821. MODULE Test;
  11822. VAR argument: REAL;
  11823. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11824. BEGIN Procedure (argument);
  11825. END Test.
  11826. negative: calling procedure with base object variable parameter with long real argument
  11827. MODULE Test;
  11828. VAR argument: LONGREAL;
  11829. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11830. BEGIN Procedure (argument);
  11831. END Test.
  11832. negative: calling procedure with base object variable parameter with set argument
  11833. MODULE Test;
  11834. VAR argument: SET;
  11835. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11836. BEGIN Procedure (argument);
  11837. END Test.
  11838. negative: calling procedure with base object variable parameter with array argument
  11839. MODULE Test;
  11840. VAR argument: ARRAY 10 OF CHAR;
  11841. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11842. BEGIN Procedure (argument);
  11843. END Test.
  11844. negative: calling procedure with base object variable parameter with record argument
  11845. MODULE Test;
  11846. VAR argument: RECORD END;
  11847. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11848. BEGIN Procedure (argument);
  11849. END Test.
  11850. negative: calling procedure with base object variable parameter with object argument
  11851. MODULE Test;
  11852. VAR argument: OBJECT END;
  11853. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11854. BEGIN Procedure (argument);
  11855. END Test.
  11856. positive: calling procedure with base object variable parameter with base object argument
  11857. MODULE Test;
  11858. VAR argument: OBJECT;
  11859. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11860. BEGIN Procedure (argument);
  11861. END Test.
  11862. negative: calling procedure with base object variable parameter with pointer to array argument
  11863. MODULE Test;
  11864. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11865. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11866. BEGIN Procedure (argument);
  11867. END Test.
  11868. negative: calling procedure with base object variable parameter with pointer to record argument
  11869. MODULE Test;
  11870. VAR argument: POINTER TO RECORD END;
  11871. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11872. BEGIN Procedure (argument);
  11873. END Test.
  11874. negative: calling procedure with base object variable parameter with procedure argument
  11875. MODULE Test;
  11876. VAR argument: PROCEDURE;
  11877. PROCEDURE Procedure (VAR value: OBJECT); END Procedure;
  11878. BEGIN Procedure (argument);
  11879. END Test.
  11880. negative: calling procedure with pointer to array variable parameter with boolean argument
  11881. MODULE Test;
  11882. VAR argument: BOOLEAN;
  11883. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11884. BEGIN Procedure (argument);
  11885. END Test.
  11886. negative: calling procedure with pointer to array variable parameter with character argument
  11887. MODULE Test;
  11888. VAR argument: CHAR;
  11889. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11890. BEGIN Procedure (argument);
  11891. END Test.
  11892. negative: calling procedure with pointer to array variable parameter with short integer argument
  11893. MODULE Test;
  11894. VAR argument: SHORTINT;
  11895. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11896. BEGIN Procedure (argument);
  11897. END Test.
  11898. negative: calling procedure with pointer to array variable parameter with integer argument
  11899. MODULE Test;
  11900. VAR argument: INTEGER;
  11901. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11902. BEGIN Procedure (argument);
  11903. END Test.
  11904. negative: calling procedure with pointer to array variable parameter with long integer argument
  11905. MODULE Test;
  11906. VAR argument: LONGINT;
  11907. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11908. BEGIN Procedure (argument);
  11909. END Test.
  11910. negative: calling procedure with pointer to array variable parameter with huge integer argument
  11911. MODULE Test;
  11912. VAR argument: HUGEINT;
  11913. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11914. BEGIN Procedure (argument);
  11915. END Test.
  11916. negative: calling procedure with pointer to array variable parameter with real argument
  11917. MODULE Test;
  11918. VAR argument: REAL;
  11919. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11920. BEGIN Procedure (argument);
  11921. END Test.
  11922. negative: calling procedure with pointer to array variable parameter with long real argument
  11923. MODULE Test;
  11924. VAR argument: LONGREAL;
  11925. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11926. BEGIN Procedure (argument);
  11927. END Test.
  11928. negative: calling procedure with pointer to array variable parameter with set argument
  11929. MODULE Test;
  11930. VAR argument: SET;
  11931. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11932. BEGIN Procedure (argument);
  11933. END Test.
  11934. negative: calling procedure with pointer to array variable parameter with array argument
  11935. MODULE Test;
  11936. VAR argument: ARRAY 10 OF CHAR;
  11937. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11938. BEGIN Procedure (argument);
  11939. END Test.
  11940. negative: calling procedure with pointer to array variable parameter with record argument
  11941. MODULE Test;
  11942. VAR argument: RECORD END;
  11943. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11944. BEGIN Procedure (argument);
  11945. END Test.
  11946. negative: calling procedure with pointer to array variable parameter with object argument
  11947. MODULE Test;
  11948. VAR argument: OBJECT END;
  11949. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11950. BEGIN Procedure (argument);
  11951. END Test.
  11952. negative: calling procedure with pointer to array variable parameter with base object argument
  11953. MODULE Test;
  11954. VAR argument: OBJECT;
  11955. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11956. BEGIN Procedure (argument);
  11957. END Test.
  11958. positive: calling procedure with pointer to array variable parameter with pointer to array argument
  11959. MODULE Test;
  11960. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  11961. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11962. BEGIN Procedure (argument);
  11963. END Test.
  11964. negative: calling procedure with pointer to array variable parameter with pointer to record argument
  11965. MODULE Test;
  11966. VAR argument: POINTER TO RECORD END;
  11967. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11968. BEGIN Procedure (argument);
  11969. END Test.
  11970. negative: calling procedure with pointer to array variable parameter with procedure argument
  11971. MODULE Test;
  11972. VAR argument: PROCEDURE;
  11973. PROCEDURE Procedure (VAR value: POINTER TO ARRAY 10 OF CHAR); END Procedure;
  11974. BEGIN Procedure (argument);
  11975. END Test.
  11976. negative: calling procedure with pointer to record variable parameter with boolean argument
  11977. MODULE Test;
  11978. VAR argument: BOOLEAN;
  11979. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  11980. BEGIN Procedure (argument);
  11981. END Test.
  11982. negative: calling procedure with pointer to record variable parameter with character argument
  11983. MODULE Test;
  11984. VAR argument: CHAR;
  11985. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  11986. BEGIN Procedure (argument);
  11987. END Test.
  11988. negative: calling procedure with pointer to record variable parameter with short integer argument
  11989. MODULE Test;
  11990. VAR argument: SHORTINT;
  11991. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  11992. BEGIN Procedure (argument);
  11993. END Test.
  11994. negative: calling procedure with pointer to record variable parameter with integer argument
  11995. MODULE Test;
  11996. VAR argument: INTEGER;
  11997. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  11998. BEGIN Procedure (argument);
  11999. END Test.
  12000. negative: calling procedure with pointer to record variable parameter with long integer argument
  12001. MODULE Test;
  12002. VAR argument: LONGINT;
  12003. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12004. BEGIN Procedure (argument);
  12005. END Test.
  12006. negative: calling procedure with pointer to record variable parameter with huge integer argument
  12007. MODULE Test;
  12008. VAR argument: HUGEINT;
  12009. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12010. BEGIN Procedure (argument);
  12011. END Test.
  12012. negative: calling procedure with pointer to record variable parameter with real argument
  12013. MODULE Test;
  12014. VAR argument: REAL;
  12015. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12016. BEGIN Procedure (argument);
  12017. END Test.
  12018. negative: calling procedure with pointer to record variable parameter with long real argument
  12019. MODULE Test;
  12020. VAR argument: LONGREAL;
  12021. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12022. BEGIN Procedure (argument);
  12023. END Test.
  12024. negative: calling procedure with pointer to record variable parameter with set argument
  12025. MODULE Test;
  12026. VAR argument: SET;
  12027. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12028. BEGIN Procedure (argument);
  12029. END Test.
  12030. negative: calling procedure with pointer to record variable parameter with array argument
  12031. MODULE Test;
  12032. VAR argument: ARRAY 10 OF CHAR;
  12033. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12034. BEGIN Procedure (argument);
  12035. END Test.
  12036. negative: calling procedure with pointer to record variable parameter with record argument
  12037. MODULE Test;
  12038. VAR argument: RECORD END;
  12039. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12040. BEGIN Procedure (argument);
  12041. END Test.
  12042. negative: calling procedure with pointer to record variable parameter with object argument
  12043. MODULE Test;
  12044. VAR argument: OBJECT END;
  12045. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12046. BEGIN Procedure (argument);
  12047. END Test.
  12048. negative: calling procedure with pointer to record variable parameter with base object argument
  12049. MODULE Test;
  12050. VAR argument: OBJECT;
  12051. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12052. BEGIN Procedure (argument);
  12053. END Test.
  12054. negative: calling procedure with pointer to record variable parameter with pointer to array argument
  12055. MODULE Test;
  12056. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  12057. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12058. BEGIN Procedure (argument);
  12059. END Test.
  12060. positive: calling procedure with pointer to record variable parameter with pointer to record argument
  12061. MODULE Test;
  12062. TYPE Record = RECORD END;
  12063. VAR argument: POINTER TO Record;
  12064. PROCEDURE Procedure (VAR value: POINTER TO Record); END Procedure;
  12065. BEGIN Procedure (argument);
  12066. END Test.
  12067. negative: calling procedure with pointer to record variable parameter with compatible pointer to record argument
  12068. MODULE Test;
  12069. TYPE Record = RECORD END;
  12070. VAR argument: POINTER TO RECORD (Record) END;
  12071. PROCEDURE Procedure (VAR value: POINTER TO Record); END Procedure;
  12072. BEGIN Procedure (argument);
  12073. END Test.
  12074. negative: calling procedure with pointer to record variable parameter with incompatible pointer to record argument
  12075. MODULE Test;
  12076. TYPE Record = RECORD END;
  12077. VAR argument: POINTER TO Record;
  12078. PROCEDURE Procedure (VAR value: POINTER TO RECORD (Record) END); END Procedure;
  12079. BEGIN Procedure (argument);
  12080. END Test.
  12081. negative: calling procedure with pointer to record variable parameter with procedure argument
  12082. MODULE Test;
  12083. VAR argument: PROCEDURE;
  12084. PROCEDURE Procedure (VAR value: POINTER TO RECORD END); END Procedure;
  12085. BEGIN Procedure (argument);
  12086. END Test.
  12087. negative: calling procedure with procedure variable parameter with boolean argument
  12088. MODULE Test;
  12089. VAR argument: BOOLEAN;
  12090. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12091. BEGIN Procedure (argument);
  12092. END Test.
  12093. negative: calling procedure with procedure variable parameter with character argument
  12094. MODULE Test;
  12095. VAR argument: CHAR;
  12096. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12097. BEGIN Procedure (argument);
  12098. END Test.
  12099. negative: calling procedure with procedure variable parameter with short integer argument
  12100. MODULE Test;
  12101. VAR argument: SHORTINT;
  12102. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12103. BEGIN Procedure (argument);
  12104. END Test.
  12105. negative: calling procedure with procedure variable parameter with integer argument
  12106. MODULE Test;
  12107. VAR argument: INTEGER;
  12108. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12109. BEGIN Procedure (argument);
  12110. END Test.
  12111. negative: calling procedure with procedure variable parameter with long integer argument
  12112. MODULE Test;
  12113. VAR argument: LONGINT;
  12114. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12115. BEGIN Procedure (argument);
  12116. END Test.
  12117. negative: calling procedure with procedure variable parameter with huge integer argument
  12118. MODULE Test;
  12119. VAR argument: HUGEINT;
  12120. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12121. BEGIN Procedure (argument);
  12122. END Test.
  12123. negative: calling procedure with procedure variable parameter with real argument
  12124. MODULE Test;
  12125. VAR argument: REAL;
  12126. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12127. BEGIN Procedure (argument);
  12128. END Test.
  12129. negative: calling procedure with procedure variable parameter with long real argument
  12130. MODULE Test;
  12131. VAR argument: LONGREAL;
  12132. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12133. BEGIN Procedure (argument);
  12134. END Test.
  12135. negative: calling procedure with procedure variable parameter with set argument
  12136. MODULE Test;
  12137. VAR argument: SET;
  12138. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12139. BEGIN Procedure (argument);
  12140. END Test.
  12141. negative: calling procedure with procedure variable parameter with array argument
  12142. MODULE Test;
  12143. VAR argument: ARRAY 10 OF CHAR;
  12144. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12145. BEGIN Procedure (argument);
  12146. END Test.
  12147. negative: calling procedure with procedure variable parameter with record argument
  12148. MODULE Test;
  12149. VAR argument: RECORD END;
  12150. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12151. BEGIN Procedure (argument);
  12152. END Test.
  12153. negative: calling procedure with procedure variable parameter with object argument
  12154. MODULE Test;
  12155. VAR argument: OBJECT END;
  12156. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12157. BEGIN Procedure (argument);
  12158. END Test.
  12159. negative: calling procedure with procedure variable parameter with base object argument
  12160. MODULE Test;
  12161. VAR argument: OBJECT;
  12162. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12163. BEGIN Procedure (argument);
  12164. END Test.
  12165. negative: calling procedure with procedure variable parameter with pointer to array argument
  12166. MODULE Test;
  12167. VAR argument: POINTER TO ARRAY 10 OF CHAR;
  12168. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12169. BEGIN Procedure (argument);
  12170. END Test.
  12171. negative: calling procedure with procedure variable parameter with pointer to record argument
  12172. MODULE Test;
  12173. VAR argument: POINTER TO RECORD END;
  12174. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12175. BEGIN Procedure (argument);
  12176. END Test.
  12177. positive: calling procedure with procedure variable parameter with procedure argument
  12178. MODULE Test;
  12179. VAR argument: PROCEDURE;
  12180. PROCEDURE Procedure (VAR value: PROCEDURE); END Procedure;
  12181. BEGIN Procedure (argument);
  12182. END Test.
  12183. negative: calling procedure returning boolean
  12184. MODULE Test;
  12185. PROCEDURE Procedure (): BOOLEAN; END Procedure;
  12186. BEGIN Procedure
  12187. END Test.
  12188. negative: calling procedure returning character
  12189. MODULE Test;
  12190. PROCEDURE Procedure (): CHAR; END Procedure;
  12191. BEGIN Procedure
  12192. END Test.
  12193. negative: calling procedure returning integer
  12194. MODULE Test;
  12195. PROCEDURE Procedure (): INTEGER; END Procedure;
  12196. BEGIN Procedure
  12197. END Test.
  12198. negative: calling procedure returning real
  12199. MODULE Test;
  12200. PROCEDURE Procedure (): REAL; END Procedure;
  12201. BEGIN Procedure
  12202. END Test.
  12203. negative: calling procedure returning set
  12204. MODULE Test;
  12205. PROCEDURE Procedure (): SET; END Procedure;
  12206. BEGIN Procedure
  12207. END Test.
  12208. negative: calling procedure returning array
  12209. MODULE Test;
  12210. PROCEDURE Procedure (): ARRAY 10 OF CHAR; END Procedure;
  12211. BEGIN Procedure
  12212. END Test.
  12213. negative: calling procedure returning record
  12214. MODULE Test;
  12215. PROCEDURE Procedure (): RECORD END; END Procedure;
  12216. BEGIN Procedure
  12217. END Test.
  12218. negative: calling procedure returning object
  12219. MODULE Test;
  12220. PROCEDURE Procedure (): OBJECT END; END Procedure;
  12221. BEGIN Procedure
  12222. END Test.
  12223. negative: calling procedure returning base object
  12224. MODULE Test;
  12225. PROCEDURE Procedure (): OBJECT; END Procedure;
  12226. BEGIN Procedure
  12227. END Test.
  12228. negative: calling procedure returning pointer to array
  12229. MODULE Test;
  12230. PROCEDURE Procedure (): POINTER TO ARRAY 10 OF CHAR; END Procedure;
  12231. BEGIN Procedure
  12232. END Test.
  12233. negative: calling procedure returning pointer to record
  12234. MODULE Test;
  12235. PROCEDURE Procedure (): POINTER TO ARRAY 10 OF RECORD END; END Procedure;
  12236. BEGIN Procedure
  12237. END Test.
  12238. negative: calling procedure returning procedure
  12239. MODULE Test;
  12240. PROCEDURE Procedure (): PROCEDURE; END Procedure;
  12241. BEGIN Procedure
  12242. END Test.
  12243. # initializers
  12244. negative: initializer within module
  12245. MODULE Test;
  12246. PROCEDURE &Initializer; END Initializer;
  12247. END Test.
  12248. negative: initializer within procedure
  12249. MODULE Test;
  12250. PROCEDURE Procedure;
  12251. PROCEDURE &Initializer; END Initializer;
  12252. END Procedure;
  12253. END Test.
  12254. negative: initializer within nested procedure
  12255. MODULE Test;
  12256. PROCEDURE Procedure;
  12257. PROCEDURE Procedure;
  12258. PROCEDURE &Initializer; END Initializer;
  12259. END Procedure;
  12260. END Procedure;
  12261. END Test.
  12262. positive: initializer within object
  12263. MODULE Test;
  12264. TYPE Object = OBJECT
  12265. PROCEDURE &Initializer; END Initializer;
  12266. END Object;
  12267. END Test.
  12268. positive: initializer within object in procedure
  12269. MODULE Test;
  12270. PROCEDURE Procedure;
  12271. TYPE Object = OBJECT
  12272. PROCEDURE &Initializer; END Initializer;
  12273. END Object;
  12274. END Procedure;
  12275. END Test.
  12276. negative: initializer within procedure in object
  12277. MODULE Test;
  12278. TYPE Object = OBJECT
  12279. PROCEDURE Procedure;
  12280. PROCEDURE &Initializer; END Initializer;
  12281. END Procedure;
  12282. END Object;
  12283. END Test.
  12284. negative: initializer within nested procedure in object
  12285. MODULE Test;
  12286. TYPE Object = OBJECT
  12287. PROCEDURE Procedure;
  12288. PROCEDURE Procedure;
  12289. PROCEDURE &Initializer; END Initializer;
  12290. END Procedure;
  12291. END Procedure;
  12292. END Object;
  12293. END Test.
  12294. negative: two initializers in object
  12295. MODULE Test;
  12296. TYPE Object = OBJECT
  12297. PROCEDURE &Initializer1; END Initializer1;
  12298. PROCEDURE &Initializer2; END Initializer2;
  12299. END Object;
  12300. END Test.
  12301. negative: two initializers in object with same name
  12302. MODULE Test;
  12303. TYPE Object = OBJECT
  12304. PROCEDURE &Initializer; END Initializer;
  12305. PROCEDURE &Initializer; END Initializer;
  12306. END Object;
  12307. END Test.
  12308. positive: initializer without return type
  12309. MODULE Test;
  12310. TYPE Object = OBJECT
  12311. PROCEDURE &Initializer; END Initializer;
  12312. END Object;
  12313. END Test.
  12314. negative: initializer with return type
  12315. MODULE Test;
  12316. TYPE Object = OBJECT
  12317. PROCEDURE &Initializer (): Object; END Initializer;
  12318. END Object;
  12319. END Test.
  12320. positive: initializer with parameter
  12321. MODULE Test;
  12322. TYPE Object = OBJECT
  12323. PROCEDURE &Initializer (object: Object); END Initializer;
  12324. END Object;
  12325. END Test.
  12326. positive: initializer with parameters
  12327. MODULE Test;
  12328. TYPE Object = OBJECT
  12329. PROCEDURE &Initializer (a, b: Object); END Initializer;
  12330. END Object;
  12331. END Test.
  12332. # statement blocks
  12333. negative: invalid block modifier notag
  12334. MODULE Test;
  12335. BEGIN {NOTAG};
  12336. END Test.
  12337. negative: invalid block modifier delegate
  12338. MODULE Test;
  12339. BEGIN {DELEGATE};
  12340. END Test.
  12341. negative: repeated exclusive block modifier
  12342. MODULE Test;
  12343. BEGIN {EXCLUSIVE, EXCLUSIVE};
  12344. END Test.
  12345. negative: repeated active block modifier
  12346. MODULE Test;
  12347. TYPE Object = OBJECT
  12348. BEGIN {ACTIVE,ACTIVE}
  12349. END Object;
  12350. END Test.
  12351. positive: exclusive module body
  12352. MODULE Test;
  12353. BEGIN {EXCLUSIVE}
  12354. END Test.
  12355. positive: nested exclusive module body
  12356. MODULE Test;
  12357. BEGIN BEGIN {EXCLUSIVE} END
  12358. END Test.
  12359. negative: exclusive block in exclusive module body
  12360. MODULE Test;
  12361. BEGIN {EXCLUSIVE} BEGIN {EXCLUSIVE} END
  12362. END Test.
  12363. negative: exclusive block in active module body
  12364. MODULE Test;
  12365. BEGIN {ACTIVE} BEGIN {EXCLUSIVE} END
  12366. END Test.
  12367. positive: exclusive object body
  12368. MODULE Test;
  12369. TYPE Object = OBJECT
  12370. BEGIN {EXCLUSIVE}
  12371. END Object;
  12372. END Test.
  12373. positive: nested exclusive object body
  12374. MODULE Test;
  12375. TYPE Object = OBJECT
  12376. BEGIN BEGIN {EXCLUSIVE} END
  12377. END Object;
  12378. END Test.
  12379. negative: exclusive block in exclusive object body
  12380. MODULE Test;
  12381. TYPE Object = OBJECT
  12382. BEGIN {EXCLUSIVE} BEGIN {EXCLUSIVE} END
  12383. END Object;
  12384. END Test.
  12385. positive: exclusive block in active object body
  12386. MODULE Test;
  12387. TYPE Object = OBJECT
  12388. BEGIN {ACTIVE} BEGIN {EXCLUSIVE} END
  12389. END Object;
  12390. END Test.
  12391. positive: exclusive procedure body within module
  12392. MODULE Test;
  12393. PROCEDURE Procedure;
  12394. BEGIN {EXCLUSIVE}
  12395. END Procedure;
  12396. END Test.
  12397. positive: nested exclusive procedure body within module
  12398. MODULE Test;
  12399. PROCEDURE Procedure;
  12400. BEGIN BEGIN {EXCLUSIVE} END
  12401. END Procedure;
  12402. END Test.
  12403. negative: exclusive block in exclusive procedure body within module
  12404. MODULE Test;
  12405. PROCEDURE Procedure;
  12406. BEGIN {EXCLUSIVE} BEGIN {EXCLUSIVE} END
  12407. END Procedure;
  12408. END Test.
  12409. negative: exclusive block in active procedure body within module
  12410. MODULE Test;
  12411. PROCEDURE Procedure;
  12412. BEGIN {ACTIVE} BEGIN {EXCLUSIVE} END
  12413. END Procedure;
  12414. END Test.
  12415. positive: exclusive procedure body within object
  12416. MODULE Test;
  12417. TYPE Object = OBJECT
  12418. PROCEDURE Procedure;
  12419. BEGIN {EXCLUSIVE}
  12420. END Procedure;
  12421. END Object;
  12422. END Test.
  12423. positive: exclusive nested procedure body within object
  12424. MODULE Test;
  12425. TYPE Object = OBJECT
  12426. PROCEDURE Procedure;
  12427. BEGIN BEGIN {EXCLUSIVE} END
  12428. END Procedure;
  12429. END Object;
  12430. END Test.
  12431. negative: exclusive block in exclusive procedure body within object
  12432. MODULE Test;
  12433. TYPE Object = OBJECT
  12434. PROCEDURE Procedure;
  12435. BEGIN {EXCLUSIVE} BEGIN {EXCLUSIVE} END
  12436. END Procedure;
  12437. END Object;
  12438. END Test.
  12439. negative: exclusive block in active procedure body within object
  12440. MODULE Test;
  12441. TYPE Object = OBJECT
  12442. PROCEDURE Procedure;
  12443. BEGIN {ACTIVE} BEGIN {EXCLUSIVE} END
  12444. END Procedure;
  12445. END Object;
  12446. END Test.
  12447. negative: active module body
  12448. MODULE Test;
  12449. BEGIN {ACTIVE}
  12450. END Test.
  12451. negative: nested active module body
  12452. MODULE Test;
  12453. BEGIN BEGIN {ACTIVE} END
  12454. END Test.
  12455. negative: active block in active module body
  12456. MODULE Test;
  12457. BEGIN {ACTIVE} BEGIN {ACTIVE} END
  12458. END Test.
  12459. negative: active block in exclusive module body
  12460. MODULE Test;
  12461. BEGIN {EXCLUSIVE} BEGIN {ACTIVE} END
  12462. END Test.
  12463. positive: active object body
  12464. MODULE Test;
  12465. TYPE Object = OBJECT
  12466. BEGIN {ACTIVE}
  12467. END Object;
  12468. END Test.
  12469. negative: nested active object body
  12470. MODULE Test;
  12471. TYPE Object = OBJECT
  12472. BEGIN BEGIN {ACTIVE} END
  12473. END Object;
  12474. END Test.
  12475. negative: active block in active object body
  12476. MODULE Test;
  12477. TYPE Object = OBJECT
  12478. BEGIN {ACTIVE} BEGIN {ACTIVE} END
  12479. END Object;
  12480. END Test.
  12481. negative: active block in exclusive object body
  12482. MODULE Test;
  12483. TYPE Object = OBJECT
  12484. BEGIN {EXCLUSIVE} BEGIN {ACTIVE} END
  12485. END Object;
  12486. END Test.
  12487. negative: active procedure body within module
  12488. MODULE Test;
  12489. PROCEDURE Procedure;
  12490. BEGIN {ACTIVE}
  12491. END Procedure;
  12492. END Test.
  12493. negative: nested active procedure body within module
  12494. MODULE Test;
  12495. PROCEDURE Procedure;
  12496. BEGIN BEGIN {ACTIVE} END
  12497. END Procedure;
  12498. END Test.
  12499. negative: active block in active procedure body within module
  12500. MODULE Test;
  12501. PROCEDURE Procedure;
  12502. BEGIN {ACTIVE} BEGIN {ACTIVE} END
  12503. END Procedure;
  12504. END Test.
  12505. negative: active block in exclusive procedure body within module
  12506. MODULE Test;
  12507. PROCEDURE Procedure;
  12508. BEGIN {EXCLUSIVE} BEGIN {ACTIVE} END
  12509. END Procedure;
  12510. END Test.
  12511. negative: active procedure body within object
  12512. MODULE Test;
  12513. TYPE Object = OBJECT
  12514. PROCEDURE Procedure;
  12515. BEGIN {ACTIVE}
  12516. END Procedure;
  12517. END Object;
  12518. END Test.
  12519. negative: active nested procedure body within object
  12520. MODULE Test;
  12521. TYPE Object = OBJECT
  12522. PROCEDURE Procedure;
  12523. BEGIN BEGIN {ACTIVE} END
  12524. END Procedure;
  12525. END Object;
  12526. END Test.
  12527. negative: active block in active procedure body within object
  12528. MODULE Test;
  12529. TYPE Object = OBJECT
  12530. PROCEDURE Procedure;
  12531. BEGIN {ACTIVE} BEGIN {ACTIVE} END
  12532. END Procedure;
  12533. END Object;
  12534. END Test.
  12535. negative: active block in exclusive procedure body within object
  12536. MODULE Test;
  12537. TYPE Object = OBJECT
  12538. PROCEDURE Procedure;
  12539. BEGIN {EXCLUSIVE} BEGIN {ACTIVE} END
  12540. END Procedure;
  12541. END Object;
  12542. END Test.
  12543. negative: exclusive and active module body
  12544. MODULE Test;
  12545. BEGIN {EXCLUSIVE, ACTIVE}
  12546. END Test.
  12547. negative: nested exclusive and active module body
  12548. MODULE Test;
  12549. BEGIN BEGIN {EXCLUSIVE, ACTIVE} END
  12550. END Test.
  12551. negative: exclusive and active block in exclusive and active module body
  12552. MODULE Test;
  12553. BEGIN {EXCLUSIVE, ACTIVE} BEGIN {EXCLUSIVE, ACTIVE} END
  12554. END Test.
  12555. positive: exclusive and active object body
  12556. MODULE Test;
  12557. TYPE Object = OBJECT
  12558. BEGIN {EXCLUSIVE, ACTIVE}
  12559. END Object;
  12560. END Test.
  12561. negative: nested exclusive and active object body
  12562. MODULE Test;
  12563. TYPE Object = OBJECT
  12564. BEGIN BEGIN {EXCLUSIVE, ACTIVE} END
  12565. END Object;
  12566. END Test.
  12567. negative: exclusive and active block in exclusive and active object body
  12568. MODULE Test;
  12569. TYPE Object = OBJECT
  12570. BEGIN {EXCLUSIVE, ACTIVE} BEGIN {EXCLUSIVE, ACTIVE} END
  12571. END Object;
  12572. END Test.
  12573. negative: exclusive and active procedure body within module
  12574. MODULE Test;
  12575. PROCEDURE Procedure;
  12576. BEGIN {EXCLUSIVE, ACTIVE}
  12577. END Procedure;
  12578. END Test.
  12579. negative: nested exclusive and active procedure body within module
  12580. MODULE Test;
  12581. PROCEDURE Procedure;
  12582. BEGIN BEGIN {EXCLUSIVE, ACTIVE} END
  12583. END Procedure;
  12584. END Test.
  12585. negative: exclusive and active block in exclusive and active procedure body within module
  12586. MODULE Test;
  12587. PROCEDURE Procedure;
  12588. BEGIN {EXCLUSIVE, ACTIVE} BEGIN {EXCLUSIVE, ACTIVE} END
  12589. END Procedure;
  12590. END Test.
  12591. negative: exclusive and active procedure body within object
  12592. MODULE Test;
  12593. TYPE Object = OBJECT
  12594. PROCEDURE Procedure;
  12595. BEGIN {EXCLUSIVE, ACTIVE}
  12596. END Procedure;
  12597. END Object;
  12598. END Test.
  12599. negative: exclusive and active nested procedure body within object
  12600. MODULE Test;
  12601. TYPE Object = OBJECT
  12602. PROCEDURE Procedure;
  12603. BEGIN BEGIN {EXCLUSIVE, ACTIVE} END
  12604. END Procedure;
  12605. END Object;
  12606. END Test.
  12607. negative: exclusive and active block in exclusive and active procedure body within object
  12608. MODULE Test;
  12609. TYPE Object = OBJECT
  12610. PROCEDURE Procedure;
  12611. BEGIN {EXCLUSIVE, ACTIVE} BEGIN {EXCLUSIVE, ACTIVE} END
  12612. END Procedure;
  12613. END Object;
  12614. END Test.
  12615. # while statement
  12616. positive: while statement with constant true condition
  12617. MODULE Test;
  12618. BEGIN WHILE TRUE DO END;
  12619. END Test.
  12620. positive: while statement with constant false condition
  12621. MODULE Test;
  12622. BEGIN WHILE FALSE DO END;
  12623. END Test.
  12624. negative: while statement with constant condition of type character
  12625. MODULE Test;
  12626. BEGIN WHILE 'a' DO END;
  12627. END Test.
  12628. negative: while statement with constant condition of type integer
  12629. MODULE Test;
  12630. BEGIN WHILE 5 DO END;
  12631. END Test.
  12632. negative: while statement with constant condition of type real
  12633. MODULE Test;
  12634. BEGIN WHILE 4.5 DO END;
  12635. END Test.
  12636. negative: while statement with constant condition of type set
  12637. MODULE Test;
  12638. BEGIN WHILE {5} DO END;
  12639. END Test.
  12640. negative: while statement with constant condition of type string
  12641. MODULE Test;
  12642. BEGIN WHILE "condition" DO END;
  12643. END Test.
  12644. negative: while statement with constant condition of type nil pointer
  12645. MODULE Test;
  12646. BEGIN WHILE NIL DO END;
  12647. END Test.
  12648. positive: while statement with condition of type boolean
  12649. MODULE Test;
  12650. VAR condition: BOOLEAN;
  12651. BEGIN WHILE condition DO END;
  12652. END Test.
  12653. negative: while statement with condition of type character
  12654. MODULE Test;
  12655. VAR condition: CHAR;
  12656. BEGIN WHILE condition DO END;
  12657. END Test.
  12658. negative: while statement with condition of type short integer
  12659. MODULE Test;
  12660. VAR condition: SHORTINT;
  12661. BEGIN WHILE condition DO END;
  12662. END Test.
  12663. negative: while statement with condition of type integer
  12664. MODULE Test;
  12665. VAR condition: INTEGER;
  12666. BEGIN WHILE condition DO END;
  12667. END Test.
  12668. negative: while statement with condition of type long integer
  12669. MODULE Test;
  12670. VAR condition: LONGINT;
  12671. BEGIN WHILE condition DO END;
  12672. END Test.
  12673. negative: while statement with condition of type huge integer
  12674. MODULE Test;
  12675. VAR condition: HUGEINT;
  12676. BEGIN WHILE condition DO END;
  12677. END Test.
  12678. negative: while statement with condition of type real
  12679. MODULE Test;
  12680. VAR condition: REAL;
  12681. BEGIN WHILE condition DO END;
  12682. END Test.
  12683. negative: while statement with condition of type long real
  12684. MODULE Test;
  12685. VAR condition: LONGREAL;
  12686. BEGIN WHILE condition DO END;
  12687. END Test.
  12688. negative: while statement with condition of type set
  12689. MODULE Test;
  12690. VAR condition: SET;
  12691. BEGIN WHILE condition DO END;
  12692. END Test.
  12693. negative: while statement with condition of type array
  12694. MODULE Test;
  12695. VAR condition: ARRAY 10 OF CHAR;
  12696. BEGIN WHILE condition DO END;
  12697. END Test.
  12698. negative: while statement with condition of type record
  12699. MODULE Test;
  12700. VAR condition: RECORD END;
  12701. BEGIN WHILE condition DO END;
  12702. END Test.
  12703. negative: while statement with condition of type object
  12704. MODULE Test;
  12705. VAR condition: OBJECT;
  12706. BEGIN WHILE condition DO END;
  12707. END Test.
  12708. negative: while statement with condition of type pointer
  12709. MODULE Test;
  12710. VAR condition: POINTER TO RECORD END;
  12711. BEGIN WHILE condition DO END;
  12712. END Test.
  12713. negative: while statement with condition of type procedure
  12714. MODULE Test;
  12715. VAR condition: PROCEDURE;
  12716. BEGIN WHILE condition DO END;
  12717. END Test.
  12718. negative: while statement with import as condition
  12719. MODULE Test;
  12720. IMPORT condition := Dummy;
  12721. BEGIN WHILE condition DO END;
  12722. END Test.
  12723. negative: while statement with type as condition
  12724. MODULE Test;
  12725. TYPE condition = BOOLEAN;
  12726. BEGIN WHILE condition DO END;
  12727. END Test.
  12728. # repeat statement
  12729. positive: repeat statement with constant true condition
  12730. MODULE Test;
  12731. BEGIN REPEAT UNTIL TRUE;
  12732. END Test.
  12733. positive: repeat statement with constant false condition
  12734. MODULE Test;
  12735. BEGIN REPEAT UNTIL FALSE;
  12736. END Test.
  12737. negative: repeat statement with constant condition of type character
  12738. MODULE Test;
  12739. BEGIN REPEAT UNTIL 'a';
  12740. END Test.
  12741. negative: repeat statement with constant condition of type integer
  12742. MODULE Test;
  12743. BEGIN REPEAT UNTIL 5;
  12744. END Test.
  12745. negative: repeat statement with constant condition of type real
  12746. MODULE Test;
  12747. BEGIN REPEAT UNTIL 4.5;
  12748. END Test.
  12749. negative: repeat statement with constant condition of type set
  12750. MODULE Test;
  12751. BEGIN REPEAT UNTIL {5};
  12752. END Test.
  12753. negative: repeat statement with constant condition of type string
  12754. MODULE Test;
  12755. BEGIN REPEAT UNTIL "condition";
  12756. END Test.
  12757. negative: repeat statement with constant condition of type nil pointer
  12758. MODULE Test;
  12759. BEGIN REPEAT UNTIL NIL;
  12760. END Test.
  12761. positive: repeat statement with condition of type boolean
  12762. MODULE Test;
  12763. VAR condition: BOOLEAN;
  12764. BEGIN REPEAT UNTIL condition;
  12765. END Test.
  12766. negative: repeat statement with condition of type character
  12767. MODULE Test;
  12768. VAR condition: CHAR;
  12769. BEGIN REPEAT UNTIL condition;
  12770. END Test.
  12771. negative: repeat statement with condition of type short integer
  12772. MODULE Test;
  12773. VAR condition: SHORTINT;
  12774. BEGIN REPEAT UNTIL condition;
  12775. END Test.
  12776. negative: repeat statement with condition of type integer
  12777. MODULE Test;
  12778. VAR condition: INTEGER;
  12779. BEGIN REPEAT UNTIL condition;
  12780. END Test.
  12781. negative: repeat statement with condition of type long integer
  12782. MODULE Test;
  12783. VAR condition: LONGINT;
  12784. BEGIN REPEAT UNTIL condition;
  12785. END Test.
  12786. negative: repeat statement with condition of type huge integer
  12787. MODULE Test;
  12788. VAR condition: HUGEINT;
  12789. BEGIN REPEAT UNTIL condition;
  12790. END Test.
  12791. negative: repeat statement with condition of type real
  12792. MODULE Test;
  12793. VAR condition: REAL;
  12794. BEGIN REPEAT UNTIL condition;
  12795. END Test.
  12796. negative: repeat statement with condition of type long real
  12797. MODULE Test;
  12798. VAR condition: LONGREAL;
  12799. BEGIN REPEAT UNTIL condition;
  12800. END Test.
  12801. negative: repeat statement with condition of type set
  12802. MODULE Test;
  12803. VAR condition: SET;
  12804. BEGIN REPEAT UNTIL condition;
  12805. END Test.
  12806. negative: repeat statement with condition of type array
  12807. MODULE Test;
  12808. VAR condition: ARRAY 10 OF CHAR;
  12809. BEGIN REPEAT UNTIL condition;
  12810. END Test.
  12811. negative: repeat statement with condition of type record
  12812. MODULE Test;
  12813. VAR condition: RECORD END;
  12814. BEGIN REPEAT UNTIL condition;
  12815. END Test.
  12816. negative: repeat statement with condition of type object
  12817. MODULE Test;
  12818. VAR condition: OBJECT;
  12819. BEGIN REPEAT UNTIL condition;
  12820. END Test.
  12821. negative: repeat statement with condition of type pointer
  12822. MODULE Test;
  12823. VAR condition: POINTER TO RECORD END;
  12824. BEGIN REPEAT UNTIL condition;
  12825. END Test.
  12826. negative: repeat statement with condition of type procedure
  12827. MODULE Test;
  12828. VAR condition: PROCEDURE;
  12829. BEGIN REPEAT UNTIL condition;
  12830. END Test.
  12831. negative: repeat statement with import as condition
  12832. MODULE Test;
  12833. IMPORT condition := Dummy;
  12834. BEGIN REPEAT UNTIL condition;
  12835. END Test.
  12836. negative: repeat statement with type as condition
  12837. MODULE Test;
  12838. TYPE condition = BOOLEAN;
  12839. BEGIN REPEAT UNTIL condition;
  12840. END Test.
  12841. # await statement
  12842. positive: await statement in non-exclusive block
  12843. MODULE Test;
  12844. VAR condition: BOOLEAN;
  12845. BEGIN AWAIT (condition);
  12846. END Test.
  12847. positive: await statement in nested non-exclusive block
  12848. MODULE Test;
  12849. VAR condition: BOOLEAN;
  12850. BEGIN BEGIN AWAIT (condition) END;
  12851. END Test.
  12852. positive: await statement in exclusive block
  12853. MODULE Test;
  12854. VAR condition: BOOLEAN;
  12855. BEGIN {EXCLUSIVE} AWAIT (condition);
  12856. END Test.
  12857. positive: await statement in nested exclusive block
  12858. MODULE Test;
  12859. VAR condition: BOOLEAN;
  12860. BEGIN BEGIN {EXCLUSIVE} AWAIT (condition) END;
  12861. END Test.
  12862. positive: await statement within nested exclusive block
  12863. MODULE Test;
  12864. VAR condition: BOOLEAN;
  12865. BEGIN {EXCLUSIVE} BEGIN AWAIT (condition) END;
  12866. END Test.
  12867. negative: await statement with constant true condition
  12868. MODULE Test;
  12869. BEGIN {EXCLUSIVE} AWAIT (TRUE);
  12870. END Test.
  12871. negative: await statement with constant false condition
  12872. MODULE Test;
  12873. BEGIN {EXCLUSIVE} AWAIT (FALSE);
  12874. END Test.
  12875. negative: await statement with constant condition of type character
  12876. MODULE Test;
  12877. BEGIN {EXCLUSIVE} AWAIT ('a');
  12878. END Test.
  12879. negative: await statement with constant condition of type integer
  12880. MODULE Test;
  12881. BEGIN {EXCLUSIVE} AWAIT (5);
  12882. END Test.
  12883. negative: await statement with constant condition of type real
  12884. MODULE Test;
  12885. BEGIN {EXCLUSIVE} AWAIT (4.5);
  12886. END Test.
  12887. negative: await statement with constant condition of type set
  12888. MODULE Test;
  12889. BEGIN {EXCLUSIVE} AWAIT ({5});
  12890. END Test.
  12891. negative: await statement with constant condition of type string
  12892. MODULE Test;
  12893. BEGIN {EXCLUSIVE} AWAIT ("condition");
  12894. END Test.
  12895. negative: await statement with constant condition of type nil pointer
  12896. MODULE Test;
  12897. BEGIN {EXCLUSIVE} AWAIT (NIL);
  12898. END Test.
  12899. positive: await statement with condition of type boolean
  12900. MODULE Test;
  12901. VAR condition: BOOLEAN;
  12902. BEGIN {EXCLUSIVE} AWAIT (condition);
  12903. END Test.
  12904. negative: await statement with condition of type character
  12905. MODULE Test;
  12906. VAR condition: CHAR;
  12907. BEGIN {EXCLUSIVE} AWAIT (condition);
  12908. END Test.
  12909. negative: await statement with condition of type short integer
  12910. MODULE Test;
  12911. VAR condition: SHORTINT;
  12912. BEGIN {EXCLUSIVE} AWAIT (condition);
  12913. END Test.
  12914. negative: await statement with condition of type integer
  12915. MODULE Test;
  12916. VAR condition: INTEGER;
  12917. BEGIN {EXCLUSIVE} AWAIT (condition);
  12918. END Test.
  12919. negative: await statement with condition of type long integer
  12920. MODULE Test;
  12921. VAR condition: LONGINT;
  12922. BEGIN {EXCLUSIVE} AWAIT (condition);
  12923. END Test.
  12924. negative: await statement with condition of type huge integer
  12925. MODULE Test;
  12926. VAR condition: HUGEINT;
  12927. BEGIN {EXCLUSIVE} AWAIT (condition);
  12928. END Test.
  12929. negative: await statement with condition of type real
  12930. MODULE Test;
  12931. VAR condition: REAL;
  12932. BEGIN {EXCLUSIVE} AWAIT (condition);
  12933. END Test.
  12934. negative: await statement with condition of type long real
  12935. MODULE Test;
  12936. VAR condition: LONGREAL;
  12937. BEGIN {EXCLUSIVE} AWAIT (condition);
  12938. END Test.
  12939. negative: await statement with condition of type set
  12940. MODULE Test;
  12941. VAR condition: SET;
  12942. BEGIN {EXCLUSIVE} AWAIT (condition);
  12943. END Test.
  12944. negative: await statement with condition of type array
  12945. MODULE Test;
  12946. VAR condition: ARRAY 10 OF CHAR;
  12947. BEGIN {EXCLUSIVE} AWAIT (condition);
  12948. END Test.
  12949. negative: await statement with condition of type record
  12950. MODULE Test;
  12951. VAR condition: RECORD END;
  12952. BEGIN {EXCLUSIVE} AWAIT (condition);
  12953. END Test.
  12954. negative: await statement with condition of type object
  12955. MODULE Test;
  12956. VAR condition: OBJECT;
  12957. BEGIN {EXCLUSIVE} AWAIT (condition);
  12958. END Test.
  12959. negative: await statement with condition of type pointer
  12960. MODULE Test;
  12961. VAR condition: POINTER TO RECORD END;
  12962. BEGIN {EXCLUSIVE} AWAIT (condition);
  12963. END Test.
  12964. negative: await statement with condition of type procedure
  12965. MODULE Test;
  12966. VAR condition: PROCEDURE;
  12967. BEGIN {EXCLUSIVE} AWAIT (condition);
  12968. END Test.
  12969. negative: await statement with import as condition
  12970. MODULE Test;
  12971. IMPORT condition := Dummy;
  12972. BEGIN {EXCLUSIVE} AWAIT (condition);
  12973. END Test.
  12974. negative: await statement with type as condition
  12975. MODULE Test;
  12976. TYPE condition = BOOLEAN;
  12977. BEGIN {EXCLUSIVE} AWAIT (condition);
  12978. END Test.
  12979. # assignment statement
  12980. positive: constant boolean to variable boolean assignment
  12981. MODULE Test;
  12982. VAR result: BOOLEAN;
  12983. BEGIN result := TRUE;
  12984. END Test.
  12985. negative: constant boolean to temporary boolean assignment
  12986. MODULE Test;
  12987. VAR result: PROCEDURE (): BOOLEAN;
  12988. BEGIN result () := TRUE;
  12989. END Test.
  12990. negative: constant character to variable boolean assignment
  12991. MODULE Test;
  12992. VAR result: BOOLEAN;
  12993. BEGIN result := 'f';
  12994. END Test.
  12995. negative: constant short integer to variable boolean assignment
  12996. MODULE Test;
  12997. VAR result: BOOLEAN;
  12998. BEGIN result := 10H;
  12999. END Test.
  13000. negative: constant integer to variable boolean assignment
  13001. MODULE Test;
  13002. VAR result: BOOLEAN;
  13003. BEGIN result := 1000H;
  13004. END Test.
  13005. negative: constant long integer to variable boolean assignment
  13006. MODULE Test;
  13007. VAR result: BOOLEAN;
  13008. BEGIN result := 100000H;
  13009. END Test.
  13010. negative: constant huge integer to variable boolean assignment
  13011. MODULE Test;
  13012. VAR result: BOOLEAN;
  13013. BEGIN result := 10000000000H;
  13014. END Test.
  13015. negative: constant real to variable boolean assignment
  13016. MODULE Test;
  13017. VAR result: BOOLEAN;
  13018. BEGIN result := 5.4;
  13019. END Test.
  13020. negative: constant long real to variable boolean assignment
  13021. MODULE Test;
  13022. VAR result: BOOLEAN;
  13023. BEGIN result := 5.4D100;
  13024. END Test.
  13025. negative: constant set to variable boolean assignment
  13026. MODULE Test;
  13027. VAR result: BOOLEAN;
  13028. BEGIN result := {5};
  13029. END Test.
  13030. negative: string to variable boolean assignment
  13031. MODULE Test;
  13032. VAR result: BOOLEAN;
  13033. BEGIN result := "string";
  13034. END Test.
  13035. negative: nil pointer to variable boolean assignment
  13036. MODULE Test;
  13037. VAR result: BOOLEAN;
  13038. BEGIN result := NIL;
  13039. END Test.
  13040. negative: procedure to variable boolean assignment
  13041. MODULE Test;
  13042. VAR result: BOOLEAN;
  13043. PROCEDURE Procedure; END Procedure;
  13044. BEGIN result := Procedure;
  13045. END Test.
  13046. negative: constant boolean to variable character assignment
  13047. MODULE Test;
  13048. VAR result: CHAR;
  13049. BEGIN result := TRUE;
  13050. END Test.
  13051. positive: constant character to variable character assignment
  13052. MODULE Test;
  13053. VAR result: CHAR;
  13054. BEGIN result := 'f';
  13055. END Test.
  13056. negative: constant character to temporary character assignment
  13057. MODULE Test;
  13058. VAR result: PROCEDURE (): CHAR;
  13059. BEGIN result () := 'u';
  13060. END Test.
  13061. negative: constant short integer to variable character assignment
  13062. MODULE Test;
  13063. VAR result: CHAR;
  13064. BEGIN result := 10H;
  13065. END Test.
  13066. negative: constant integer to variable character assignment
  13067. MODULE Test;
  13068. VAR result: CHAR;
  13069. BEGIN result := 1000H;
  13070. END Test.
  13071. negative: constant long integer to variable character assignment
  13072. MODULE Test;
  13073. VAR result: CHAR;
  13074. BEGIN result := 100000H;
  13075. END Test.
  13076. negative: constant huge integer to variable character assignment
  13077. MODULE Test;
  13078. VAR result: CHAR;
  13079. BEGIN result := 10000000000H;
  13080. END Test.
  13081. negative: constant real to variable character assignment
  13082. MODULE Test;
  13083. VAR result: CHAR;
  13084. BEGIN result := 5.4;
  13085. END Test.
  13086. negative: constant long real to variable character assignment
  13087. MODULE Test;
  13088. VAR result: CHAR;
  13089. BEGIN result := 5.4D100;
  13090. END Test.
  13091. negative: constant set to variable character assignment
  13092. MODULE Test;
  13093. VAR result: CHAR;
  13094. BEGIN result := {5};
  13095. END Test.
  13096. negative: string to variable character assignment
  13097. MODULE Test;
  13098. VAR result: CHAR;
  13099. BEGIN result := "string";
  13100. END Test.
  13101. negative: nil pointer to variable character assignment
  13102. MODULE Test;
  13103. VAR result: CHAR;
  13104. BEGIN result := NIL;
  13105. END Test.
  13106. negative: procedure to variable character assignment
  13107. MODULE Test;
  13108. VAR result: CHAR;
  13109. PROCEDURE Procedure; END Procedure;
  13110. BEGIN result := Procedure;
  13111. END Test.
  13112. negative: constant boolean to variable short integer assignment
  13113. MODULE Test;
  13114. VAR result: SHORTINT;
  13115. BEGIN result := TRUE;
  13116. END Test.
  13117. negative: constant character to variable short integer assignment
  13118. MODULE Test;
  13119. VAR result: SHORTINT;
  13120. BEGIN result := 'f';
  13121. END Test.
  13122. positive: constant short integer to variable short integer assignment
  13123. MODULE Test;
  13124. VAR result: SHORTINT;
  13125. BEGIN result := 10H;
  13126. END Test.
  13127. negative: constant short integer to temporary short integer assignment
  13128. MODULE Test;
  13129. VAR result: PROCEDURE (): SHORTINT;
  13130. BEGIN result () := 10H;
  13131. END Test.
  13132. negative: constant integer to variable short integer assignment
  13133. MODULE Test;
  13134. VAR result: SHORTINT;
  13135. BEGIN result := 1000H;
  13136. END Test.
  13137. negative: constant long integer to variable short integer assignment
  13138. MODULE Test;
  13139. VAR result: SHORTINT;
  13140. BEGIN result := 100000H;
  13141. END Test.
  13142. negative: constant huge integer to variable short integer assignment
  13143. MODULE Test;
  13144. VAR result: SHORTINT;
  13145. BEGIN result := 10000000000H;
  13146. END Test.
  13147. negative: constant real to variable short integer assignment
  13148. MODULE Test;
  13149. VAR result: SHORTINT;
  13150. BEGIN result := 5.4;
  13151. END Test.
  13152. negative: constant long real to variable short integer assignment
  13153. MODULE Test;
  13154. VAR result: SHORTINT;
  13155. BEGIN result := 5.4D100;
  13156. END Test.
  13157. negative: constant set to variable short integer assignment
  13158. MODULE Test;
  13159. VAR result: SHORTINT;
  13160. BEGIN result := {5};
  13161. END Test.
  13162. negative: string to variable short integer assignment
  13163. MODULE Test;
  13164. VAR result: SHORTINT;
  13165. BEGIN result := "string";
  13166. END Test.
  13167. negative: nil pointer to variable short integer assignment
  13168. MODULE Test;
  13169. VAR result: SHORTINT;
  13170. BEGIN result := NIL;
  13171. END Test.
  13172. negative: procedure to variable short integer assignment
  13173. MODULE Test;
  13174. VAR result: SHORTINT;
  13175. PROCEDURE Procedure; END Procedure;
  13176. BEGIN result := Procedure;
  13177. END Test.
  13178. negative: constant boolean to variable integer assignment
  13179. MODULE Test;
  13180. VAR result: INTEGER;
  13181. BEGIN result := TRUE;
  13182. END Test.
  13183. negative: constant character to variable integer assignment
  13184. MODULE Test;
  13185. VAR result: INTEGER;
  13186. BEGIN result := 'f';
  13187. END Test.
  13188. positive: constant short integer to variable integer assignment
  13189. MODULE Test;
  13190. VAR result: INTEGER;
  13191. BEGIN result := 10H;
  13192. END Test.
  13193. negative: constant short integer to temporary integer assignment
  13194. MODULE Test;
  13195. VAR result: PROCEDURE (): INTEGER;
  13196. BEGIN result () := 10H;
  13197. END Test.
  13198. positive: constant integer to variable integer assignment
  13199. MODULE Test;
  13200. VAR result: INTEGER;
  13201. BEGIN result := 1000H;
  13202. END Test.
  13203. negative: constant integer to temporary integer assignment
  13204. MODULE Test;
  13205. VAR result: PROCEDURE (): INTEGER;
  13206. BEGIN result () := 1000H;
  13207. END Test.
  13208. negative: constant long integer to variable integer assignment
  13209. MODULE Test;
  13210. VAR result: INTEGER;
  13211. BEGIN result := 100000H;
  13212. END Test.
  13213. negative: constant huge integer to variable integer assignment
  13214. MODULE Test;
  13215. VAR result: INTEGER;
  13216. BEGIN result := 10000000000H;
  13217. END Test.
  13218. negative: constant real to variable integer assignment
  13219. MODULE Test;
  13220. VAR result: INTEGER;
  13221. BEGIN result := 5.4;
  13222. END Test.
  13223. negative: constant long real to variable integer assignment
  13224. MODULE Test;
  13225. VAR result: INTEGER;
  13226. BEGIN result := 5.4D100;
  13227. END Test.
  13228. negative: constant set to variable integer assignment
  13229. MODULE Test;
  13230. VAR result: INTEGER;
  13231. BEGIN result := {5};
  13232. END Test.
  13233. negative: string to variable integer assignment
  13234. MODULE Test;
  13235. VAR result: INTEGER;
  13236. BEGIN result := "string";
  13237. END Test.
  13238. negative: nil pointer to variable integer assignment
  13239. MODULE Test;
  13240. VAR result: INTEGER;
  13241. BEGIN result := NIL;
  13242. END Test.
  13243. negative: procedure to variable integer assignment
  13244. MODULE Test;
  13245. VAR result: INTEGER;
  13246. PROCEDURE Procedure; END Procedure;
  13247. BEGIN result := Procedure;
  13248. END Test.
  13249. negative: constant boolean to variable long integer assignment
  13250. MODULE Test;
  13251. VAR result: LONGINT;
  13252. BEGIN result := TRUE;
  13253. END Test.
  13254. negative: constant character to variable long integer assignment
  13255. MODULE Test;
  13256. VAR result: LONGINT;
  13257. BEGIN result := 'f';
  13258. END Test.
  13259. positive: constant short integer to variable long integer assignment
  13260. MODULE Test;
  13261. VAR result: LONGINT;
  13262. BEGIN result := 10H;
  13263. END Test.
  13264. negative: constant short integer to temporary long integer assignment
  13265. MODULE Test;
  13266. VAR result: PROCEDURE (): LONGINT;
  13267. BEGIN result () := 10H;
  13268. END Test.
  13269. positive: constant integer to variable long integer assignment
  13270. MODULE Test;
  13271. VAR result: LONGINT;
  13272. BEGIN result := 1000H;
  13273. END Test.
  13274. negative: constant integer to temporary long integer assignment
  13275. MODULE Test;
  13276. VAR result: PROCEDURE (): LONGINT;
  13277. BEGIN result () := 1000H;
  13278. END Test.
  13279. positive: constant long integer to variable long integer assignment
  13280. MODULE Test;
  13281. VAR result: LONGINT;
  13282. BEGIN result := 100000H;
  13283. END Test.
  13284. negative: constant long integer to temporary long integer assignment
  13285. MODULE Test;
  13286. VAR result: PROCEDURE (): LONGINT;
  13287. BEGIN result () := 100000H;
  13288. END Test.
  13289. negative: constant huge integer to variable long integer assignment
  13290. MODULE Test;
  13291. VAR result: LONGINT;
  13292. BEGIN result := 10000000000H;
  13293. END Test.
  13294. negative: constant real to variable long integer assignment
  13295. MODULE Test;
  13296. VAR result: LONGINT;
  13297. BEGIN result := 5.4;
  13298. END Test.
  13299. negative: constant long real to variable long integer assignment
  13300. MODULE Test;
  13301. VAR result: LONGINT;
  13302. BEGIN result := 5.4D100;
  13303. END Test.
  13304. negative: constant set to variable long integer assignment
  13305. MODULE Test;
  13306. VAR result: LONGINT;
  13307. BEGIN result := {5};
  13308. END Test.
  13309. negative: string to variable long integer assignment
  13310. MODULE Test;
  13311. VAR result: LONGINT;
  13312. BEGIN result := "string";
  13313. END Test.
  13314. negative: nil pointer to variable long integer assignment
  13315. MODULE Test;
  13316. VAR result: LONGINT;
  13317. BEGIN result := NIL;
  13318. END Test.
  13319. negative: procedure to variable long integer assignment
  13320. MODULE Test;
  13321. VAR result: LONGINT;
  13322. PROCEDURE Procedure; END Procedure;
  13323. BEGIN result := Procedure;
  13324. END Test.
  13325. negative: constant boolean to variable huge integer assignment
  13326. MODULE Test;
  13327. VAR result: HUGEINT;
  13328. BEGIN result := TRUE;
  13329. END Test.
  13330. negative: constant character to variable huge integer assignment
  13331. MODULE Test;
  13332. VAR result: HUGEINT;
  13333. BEGIN result := 'f';
  13334. END Test.
  13335. positive: constant short integer to variable huge integer assignment
  13336. MODULE Test;
  13337. VAR result: HUGEINT;
  13338. BEGIN result := 10H;
  13339. END Test.
  13340. negative: constant short integer to temporary huge integer assignment
  13341. MODULE Test;
  13342. VAR result: PROCEDURE (): HUGEINT;
  13343. BEGIN result () := 10H;
  13344. END Test.
  13345. positive: constant integer to variable huge integer assignment
  13346. MODULE Test;
  13347. VAR result: HUGEINT;
  13348. BEGIN result := 1000H;
  13349. END Test.
  13350. negative: constant integer to temporary huge integer assignment
  13351. MODULE Test;
  13352. VAR result: PROCEDURE (): HUGEINT;
  13353. BEGIN result () := 1000H;
  13354. END Test.
  13355. positive: constant long integer to variable huge integer assignment
  13356. MODULE Test;
  13357. VAR result: HUGEINT;
  13358. BEGIN result := 100000H;
  13359. END Test.
  13360. negative: constant long integer to temporary huge integer assignment
  13361. MODULE Test;
  13362. VAR result: PROCEDURE (): HUGEINT;
  13363. BEGIN result () := 100000H;
  13364. END Test.
  13365. positive: constant huge integer to variable huge integer assignment
  13366. MODULE Test;
  13367. VAR result: HUGEINT;
  13368. BEGIN result := 10000000000H;
  13369. END Test.
  13370. negative: constant huge integer to temporary huge integer assignment
  13371. MODULE Test;
  13372. VAR result: PROCEDURE (): HUGEINT;
  13373. BEGIN result () := 10000000000H;
  13374. END Test.
  13375. negative: constant real to variable huge integer assignment
  13376. MODULE Test;
  13377. VAR result: HUGEINT;
  13378. BEGIN result := 5.4;
  13379. END Test.
  13380. negative: constant long real to variable huge integer assignment
  13381. MODULE Test;
  13382. VAR result: HUGEINT;
  13383. BEGIN result := 5.4D100;
  13384. END Test.
  13385. negative: constant set to variable huge integer assignment
  13386. MODULE Test;
  13387. VAR result: HUGEINT;
  13388. BEGIN result := {5};
  13389. END Test.
  13390. negative: string to variable huge integer assignment
  13391. MODULE Test;
  13392. VAR result: HUGEINT;
  13393. BEGIN result := "string";
  13394. END Test.
  13395. negative: nil pointer to variable huge integer assignment
  13396. MODULE Test;
  13397. VAR result: HUGEINT;
  13398. BEGIN result := NIL;
  13399. END Test.
  13400. negative: procedure to variable huge integer assignment
  13401. MODULE Test;
  13402. VAR result: HUGEINT;
  13403. PROCEDURE Procedure; END Procedure;
  13404. BEGIN result := Procedure;
  13405. END Test.
  13406. negative: constant boolean to variable real assignment
  13407. MODULE Test;
  13408. VAR result: REAL;
  13409. BEGIN result := TRUE;
  13410. END Test.
  13411. negative: constant character to variable real assignment
  13412. MODULE Test;
  13413. VAR result: REAL;
  13414. BEGIN result := 'f';
  13415. END Test.
  13416. positive: constant short integer to variable real assignment
  13417. MODULE Test;
  13418. VAR result: REAL;
  13419. BEGIN result := 10H;
  13420. END Test.
  13421. negative: constant short integer to temporary real assignment
  13422. MODULE Test;
  13423. VAR result: PROCEDURE (): REAL;
  13424. BEGIN result () := 10H;
  13425. END Test.
  13426. positive: constant integer to variable real assignment
  13427. MODULE Test;
  13428. VAR result: REAL;
  13429. BEGIN result := 1000H;
  13430. END Test.
  13431. negative: constant integer to temporary real assignment
  13432. MODULE Test;
  13433. VAR result: PROCEDURE (): REAL;
  13434. BEGIN result () := 1000H;
  13435. END Test.
  13436. positive: constant long integer to variable real assignment
  13437. MODULE Test;
  13438. VAR result: REAL;
  13439. BEGIN result := 100000H;
  13440. END Test.
  13441. negative: constant long integer to temporary real assignment
  13442. MODULE Test;
  13443. VAR result: PROCEDURE (): REAL;
  13444. BEGIN result () := 100000H;
  13445. END Test.
  13446. positive: constant huge integer to variable real assignment
  13447. MODULE Test;
  13448. VAR result: REAL;
  13449. BEGIN result := 10000000000H;
  13450. END Test.
  13451. negative: constant huge integer to temporary real assignment
  13452. MODULE Test;
  13453. VAR result: PROCEDURE (): REAL;
  13454. BEGIN result () := 10000000000H;
  13455. END Test.
  13456. positive: constant real to variable real assignment
  13457. MODULE Test;
  13458. VAR result: REAL;
  13459. BEGIN result := 5.4;
  13460. END Test.
  13461. negative: constant real to temporary real assignment
  13462. MODULE Test;
  13463. VAR result: PROCEDURE (): REAL;
  13464. BEGIN result () := 5.4;
  13465. END Test.
  13466. negative: constant long real to variable real assignment
  13467. MODULE Test;
  13468. VAR result: REAL;
  13469. BEGIN result := 5.4D100;
  13470. END Test.
  13471. negative: constant set to variable real assignment
  13472. MODULE Test;
  13473. VAR result: REAL;
  13474. BEGIN result := {5};
  13475. END Test.
  13476. negative: string to variable real assignment
  13477. MODULE Test;
  13478. VAR result: REAL;
  13479. BEGIN result := "string";
  13480. END Test.
  13481. negative: nil pointer to variable real assignment
  13482. MODULE Test;
  13483. VAR result: REAL;
  13484. BEGIN result := NIL;
  13485. END Test.
  13486. negative: procedure to variable real assignment
  13487. MODULE Test;
  13488. VAR result: REAL;
  13489. PROCEDURE Procedure; END Procedure;
  13490. BEGIN result := Procedure;
  13491. END Test.
  13492. negative: constant boolean to variable long real assignment
  13493. MODULE Test;
  13494. VAR result: LONGREAL;
  13495. BEGIN result := TRUE;
  13496. END Test.
  13497. negative: constant character to variable long real assignment
  13498. MODULE Test;
  13499. VAR result: LONGREAL;
  13500. BEGIN result := 'f';
  13501. END Test.
  13502. positive: constant short integer to variable long real assignment
  13503. MODULE Test;
  13504. VAR result: LONGREAL;
  13505. BEGIN result := 10H;
  13506. END Test.
  13507. negative: constant short integer to temporary long real assignment
  13508. MODULE Test;
  13509. VAR result: PROCEDURE (): LONGREAL;
  13510. BEGIN result () := 10H;
  13511. END Test.
  13512. positive: constant integer to variable long real assignment
  13513. MODULE Test;
  13514. VAR result: LONGREAL;
  13515. BEGIN result := 1000H;
  13516. END Test.
  13517. negative: constant integer to temporary long real assignment
  13518. MODULE Test;
  13519. VAR result: PROCEDURE (): LONGREAL;
  13520. BEGIN result () := 1000H;
  13521. END Test.
  13522. positive: constant long integer to variable long real assignment
  13523. MODULE Test;
  13524. VAR result: LONGREAL;
  13525. BEGIN result := 100000H;
  13526. END Test.
  13527. negative: constant long integer to temporary long real assignment
  13528. MODULE Test;
  13529. VAR result: PROCEDURE (): LONGREAL;
  13530. BEGIN result () := 100000H;
  13531. END Test.
  13532. positive: constant huge integer to variable long real assignment
  13533. MODULE Test;
  13534. VAR result: LONGREAL;
  13535. BEGIN result := 10000000000H;
  13536. END Test.
  13537. negative: constant huge integer to temporary long real assignment
  13538. MODULE Test;
  13539. VAR result: PROCEDURE (): LONGREAL;
  13540. BEGIN result () := 10000000000H;
  13541. END Test.
  13542. positive: constant real to variable long real assignment
  13543. MODULE Test;
  13544. VAR result: LONGREAL;
  13545. BEGIN result := 5.4;
  13546. END Test.
  13547. negative: constant real to temporary long real assignment
  13548. MODULE Test;
  13549. VAR result: PROCEDURE (): LONGREAL;
  13550. BEGIN result () := 5.4;
  13551. END Test.
  13552. positive: constant long real to variable long real assignment
  13553. MODULE Test;
  13554. VAR result: LONGREAL;
  13555. BEGIN result := 5.4D100;
  13556. END Test.
  13557. negative: constant long real to temporary long real assignment
  13558. MODULE Test;
  13559. VAR result: PROCEDURE (): LONGREAL;
  13560. BEGIN result () := 5.4D100;
  13561. END Test.
  13562. negative: constant set to variable long real assignment
  13563. MODULE Test;
  13564. VAR result: LONGREAL;
  13565. BEGIN result := {5};
  13566. END Test.
  13567. negative: string to variable long real assignment
  13568. MODULE Test;
  13569. VAR result: LONGREAL;
  13570. BEGIN result := "string";
  13571. END Test.
  13572. negative: nil pointer to variable long real assignment
  13573. MODULE Test;
  13574. VAR result: LONGREAL;
  13575. BEGIN result := NIL;
  13576. END Test.
  13577. negative: procedure to variable long real assignment
  13578. MODULE Test;
  13579. VAR result: LONGREAL;
  13580. PROCEDURE Procedure; END Procedure;
  13581. BEGIN result := Procedure;
  13582. END Test.
  13583. negative: constant boolean to variable set assignment
  13584. MODULE Test;
  13585. VAR result: SET;
  13586. BEGIN result := TRUE;
  13587. END Test.
  13588. negative: constant character to variable set assignment
  13589. MODULE Test;
  13590. VAR result: SET;
  13591. BEGIN result := 'f';
  13592. END Test.
  13593. negative: constant short integer to variable set assignment
  13594. MODULE Test;
  13595. VAR result: SET;
  13596. BEGIN result := 10H;
  13597. END Test.
  13598. negative: constant integer to variable set assignment
  13599. MODULE Test;
  13600. VAR result: SET;
  13601. BEGIN result := 1000H;
  13602. END Test.
  13603. negative: constant long integer to variable set assignment
  13604. MODULE Test;
  13605. VAR result: SET;
  13606. BEGIN result := 100000H;
  13607. END Test.
  13608. negative: constant huge integer to variable set assignment
  13609. MODULE Test;
  13610. VAR result: SET;
  13611. BEGIN result := 10000000000H;
  13612. END Test.
  13613. negative: constant real to variable set assignment
  13614. MODULE Test;
  13615. VAR result: SET;
  13616. BEGIN result := 5.4;
  13617. END Test.
  13618. negative: constant long real to variable set assignment
  13619. MODULE Test;
  13620. VAR result: SET;
  13621. BEGIN result := 5.4D100;
  13622. END Test.
  13623. positive: constant set to variable set assignment
  13624. MODULE Test;
  13625. VAR result: SET;
  13626. BEGIN result := {5};
  13627. END Test.
  13628. negative: constant set to temporary set assignment
  13629. MODULE Test;
  13630. VAR result: PROCEDURE (): SET;
  13631. BEGIN result () := {5};
  13632. END Test.
  13633. negative: string to variable set assignment
  13634. MODULE Test;
  13635. VAR result: SET;
  13636. BEGIN result := "string";
  13637. END Test.
  13638. negative: nil pointer to variable set assignment
  13639. MODULE Test;
  13640. VAR result: SET;
  13641. BEGIN result := NIL;
  13642. END Test.
  13643. negative: procedure to variable set assignment
  13644. MODULE Test;
  13645. VAR result: SET;
  13646. PROCEDURE Procedure; END Procedure;
  13647. BEGIN result := Procedure;
  13648. END Test.
  13649. negative: constant boolean to variable array assignment
  13650. MODULE Test;
  13651. VAR result: ARRAY 10 OF CHAR;
  13652. BEGIN result := TRUE;
  13653. END Test.
  13654. #temporarily removed
  13655. #negative: constant character to variable array assignment
  13656. #
  13657. # MODULE Test;
  13658. # VAR result: ARRAY 10 OF CHAR;
  13659. # BEGIN result := 'f';
  13660. # END Test.
  13661. negative: constant short integer to variable array assignment
  13662. MODULE Test;
  13663. VAR result: ARRAY 10 OF CHAR;
  13664. BEGIN result := 10H;
  13665. END Test.
  13666. negative: constant integer to variable array assignment
  13667. MODULE Test;
  13668. VAR result: ARRAY 10 OF CHAR;
  13669. BEGIN result := 1000H;
  13670. END Test.
  13671. negative: constant long integer to variable array assignment
  13672. MODULE Test;
  13673. VAR result: ARRAY 10 OF CHAR;
  13674. BEGIN result := 100000H;
  13675. END Test.
  13676. negative: constant huge integer to variable array assignment
  13677. MODULE Test;
  13678. VAR result: ARRAY 10 OF CHAR;
  13679. BEGIN result := 10000000000H;
  13680. END Test.
  13681. negative: constant real to variable array assignment
  13682. MODULE Test;
  13683. VAR result: ARRAY 10 OF CHAR;
  13684. BEGIN result := 5.4;
  13685. END Test.
  13686. negative: constant long real to variable array assignment
  13687. MODULE Test;
  13688. VAR result: ARRAY 10 OF CHAR;
  13689. BEGIN result := 5.4D100;
  13690. END Test.
  13691. negative: constant set to variable array assignment
  13692. MODULE Test;
  13693. VAR result: ARRAY 10 OF CHAR;
  13694. BEGIN result := {5};
  13695. END Test.
  13696. negative: string to variable array of boolean assignment
  13697. MODULE Test;
  13698. VAR result: ARRAY 10 OF BOOLEAN;
  13699. BEGIN result := "string";
  13700. END Test.
  13701. positive: string to longer variable array of character assignment
  13702. MODULE Test;
  13703. VAR result: ARRAY 10 OF CHAR;
  13704. BEGIN result := "string";
  13705. END Test.
  13706. negative: string to longer temporary array of character assignment
  13707. MODULE Test;
  13708. VAR result: PROCEDURE (): ARRAY 10 OF CHAR;
  13709. BEGIN result () := "string";
  13710. END Test.
  13711. positive: string to variable array of character of equal size assignment
  13712. MODULE Test;
  13713. VAR result: ARRAY 7 OF CHAR;
  13714. BEGIN result := "string";
  13715. END Test.
  13716. negative: string to temporary array of equal size assignment
  13717. MODULE Test;
  13718. VAR result: PROCEDURE (): ARRAY 7 OF CHAR;
  13719. BEGIN result () := "string";
  13720. END Test.
  13721. negative: string to shorter variable array of character assignment
  13722. MODULE Test;
  13723. VAR result: ARRAY 6 OF CHAR;
  13724. BEGIN result := "string";
  13725. END Test.
  13726. negative: string to variable array of short integer assignment
  13727. MODULE Test;
  13728. VAR result: ARRAY 10 OF SHORTINT;
  13729. BEGIN result := "string";
  13730. END Test.
  13731. negative: string to variable array of integer assignment
  13732. MODULE Test;
  13733. VAR result: ARRAY 10 OF INTEGER;
  13734. BEGIN result := "string";
  13735. END Test.
  13736. negative: string to variable array of long integer assignment
  13737. MODULE Test;
  13738. VAR result: ARRAY 10 OF LONGINT;
  13739. BEGIN result := "string";
  13740. END Test.
  13741. negative: string to variable array of huge integer assignment
  13742. MODULE Test;
  13743. VAR result: ARRAY 10 OF HUGEINT;
  13744. BEGIN result := "string";
  13745. END Test.
  13746. negative: string to variable array of real assignment
  13747. MODULE Test;
  13748. VAR result: ARRAY 10 OF REAL;
  13749. BEGIN result := "string";
  13750. END Test.
  13751. negative: string to variable array of long real assignment
  13752. MODULE Test;
  13753. VAR result: ARRAY 10 OF LONGREAL;
  13754. BEGIN result := "string";
  13755. END Test.
  13756. negative: string to variable array of set assignment
  13757. MODULE Test;
  13758. VAR result: ARRAY 10 OF SET;
  13759. BEGIN result := "string";
  13760. END Test.
  13761. negative: string to variable array of array assignment
  13762. MODULE Test;
  13763. VAR result: ARRAY 10 OF ARRAY 10 OF CHAR;
  13764. BEGIN result := "string";
  13765. END Test.
  13766. negative: string to variable array of record assignment
  13767. MODULE Test;
  13768. VAR result: ARRAY 10 OF RECORD END;
  13769. BEGIN result := "string";
  13770. END Test.
  13771. negative: string to variable array of object assignment
  13772. MODULE Test;
  13773. VAR result: ARRAY 10 OF OBJECT END;
  13774. BEGIN result := "string";
  13775. END Test.
  13776. negative: string to variable array of pointer assignment
  13777. MODULE Test;
  13778. VAR result: ARRAY 10 OF POINTER TO RECORD END;
  13779. BEGIN result := "string";
  13780. END Test.
  13781. negative: string to variable array of procedure assignment
  13782. MODULE Test;
  13783. VAR result: ARRAY 10 OF PROCEDURE;
  13784. BEGIN result := "string";
  13785. END Test.
  13786. negative: nil pointer to variable array assignment
  13787. MODULE Test;
  13788. VAR result: ARRAY 10 OF CHAR;
  13789. BEGIN result := NIL;
  13790. END Test.
  13791. negative: procedure to variable array assignment
  13792. MODULE Test;
  13793. VAR result: ARRAY 10 OF PROCEDURE;
  13794. PROCEDURE Procedure; END Procedure;
  13795. BEGIN result := Procedure;
  13796. END Test.
  13797. negative: constant boolean to record assignment
  13798. MODULE Test;
  13799. VAR result: RECORD END;
  13800. BEGIN result := TRUE;
  13801. END Test.
  13802. negative: constant character to record assignment
  13803. MODULE Test;
  13804. VAR result: RECORD END;
  13805. BEGIN result := 'f';
  13806. END Test.
  13807. negative: constant short integer to record assignment
  13808. MODULE Test;
  13809. VAR result: RECORD END;
  13810. BEGIN result := 10H;
  13811. END Test.
  13812. negative: constant integer to record assignment
  13813. MODULE Test;
  13814. VAR result: RECORD END;
  13815. BEGIN result := 1000H;
  13816. END Test.
  13817. negative: constant long integer to record assignment
  13818. MODULE Test;
  13819. VAR result: RECORD END;
  13820. BEGIN result := 100000H;
  13821. END Test.
  13822. negative: constant huge integer to record assignment
  13823. MODULE Test;
  13824. VAR result: RECORD END;
  13825. BEGIN result := 10000000000H;
  13826. END Test.
  13827. negative: constant real to record assignment
  13828. MODULE Test;
  13829. VAR result: RECORD END;
  13830. BEGIN result := 5.4;
  13831. END Test.
  13832. negative: constant long real to record assignment
  13833. MODULE Test;
  13834. VAR result: RECORD END;
  13835. BEGIN result := 5.4D100;
  13836. END Test.
  13837. negative: constant set to record assignment
  13838. MODULE Test;
  13839. VAR result: RECORD END;
  13840. BEGIN result := {5};
  13841. END Test.
  13842. negative: string to record assignment
  13843. MODULE Test;
  13844. VAR result: RECORD END;
  13845. BEGIN result := "string";
  13846. END Test.
  13847. negative: nil pointer to record assignment
  13848. MODULE Test;
  13849. VAR result: RECORD END;
  13850. BEGIN result := NIL;
  13851. END Test.
  13852. negative: procedure to record assignment
  13853. MODULE Test;
  13854. VAR result: RECORD END;
  13855. PROCEDURE Procedure; END Procedure;
  13856. BEGIN result := Procedure;
  13857. END Test.
  13858. negative: constant boolean to object assignment
  13859. MODULE Test;
  13860. VAR result: OBJECT END;
  13861. BEGIN result := TRUE;
  13862. END Test.
  13863. negative: constant character to object assignment
  13864. MODULE Test;
  13865. VAR result: OBJECT END;
  13866. BEGIN result := 'f';
  13867. END Test.
  13868. negative: constant short integer to object assignment
  13869. MODULE Test;
  13870. VAR result: OBJECT END;
  13871. BEGIN result := 10H;
  13872. END Test.
  13873. negative: constant integer to object assignment
  13874. MODULE Test;
  13875. VAR result: OBJECT END;
  13876. BEGIN result := 1000H;
  13877. END Test.
  13878. negative: constant long integer to object assignment
  13879. MODULE Test;
  13880. VAR result: OBJECT END;
  13881. BEGIN result := 100000H;
  13882. END Test.
  13883. negative: constant huge integer to object assignment
  13884. MODULE Test;
  13885. VAR result: OBJECT END;
  13886. BEGIN result := 10000000000H;
  13887. END Test.
  13888. negative: constant real to object assignment
  13889. MODULE Test;
  13890. VAR result: OBJECT END;
  13891. BEGIN result := 5.4;
  13892. END Test.
  13893. negative: constant long real to object assignment
  13894. MODULE Test;
  13895. VAR result: OBJECT END;
  13896. BEGIN result := 5.4D100;
  13897. END Test.
  13898. negative: constant set to object assignment
  13899. MODULE Test;
  13900. VAR result: OBJECT END;
  13901. BEGIN result := {5};
  13902. END Test.
  13903. negative: string to object assignment
  13904. MODULE Test;
  13905. VAR result: OBJECT END;
  13906. BEGIN result := "string";
  13907. END Test.
  13908. positive: nil pointer to object assignment
  13909. MODULE Test;
  13910. VAR result: OBJECT END;
  13911. BEGIN result := NIL;
  13912. END Test.
  13913. negative: nil pointer to temporary object assignment
  13914. MODULE Test;
  13915. VAR result: PROCEDURE (): OBJECT END;
  13916. BEGIN result () := NIL;
  13917. END Test.
  13918. negative: procedure to object assignment
  13919. MODULE Test;
  13920. VAR result: OBJECT END;
  13921. PROCEDURE Procedure; END Procedure;
  13922. BEGIN result := Procedure;
  13923. END Test.
  13924. negative: constant boolean to pointer assignment
  13925. MODULE Test;
  13926. VAR result: POINTER TO RECORD END;
  13927. BEGIN result := TRUE;
  13928. END Test.
  13929. negative: constant character to pointer assignment
  13930. MODULE Test;
  13931. VAR result: POINTER TO RECORD END;
  13932. BEGIN result := 'f';
  13933. END Test.
  13934. negative: constant short integer to pointer assignment
  13935. MODULE Test;
  13936. VAR result: POINTER TO RECORD END;
  13937. BEGIN result := 10H;
  13938. END Test.
  13939. negative: constant integer to pointer assignment
  13940. MODULE Test;
  13941. VAR result: POINTER TO RECORD END;
  13942. BEGIN result := 1000H;
  13943. END Test.
  13944. negative: constant long integer to pointer assignment
  13945. MODULE Test;
  13946. VAR result: POINTER TO RECORD END;
  13947. BEGIN result := 100000H;
  13948. END Test.
  13949. negative: constant huge integer to pointer assignment
  13950. MODULE Test;
  13951. VAR result: POINTER TO RECORD END;
  13952. BEGIN result := 10000000000H;
  13953. END Test.
  13954. negative: constant real to pointer assignment
  13955. MODULE Test;
  13956. VAR result: POINTER TO RECORD END;
  13957. BEGIN result := 5.4;
  13958. END Test.
  13959. negative: constant long real to pointer assignment
  13960. MODULE Test;
  13961. VAR result: POINTER TO RECORD END;
  13962. BEGIN result := 5.4D100;
  13963. END Test.
  13964. negative: constant set to pointer assignment
  13965. MODULE Test;
  13966. VAR result: POINTER TO RECORD END;
  13967. BEGIN result := {5};
  13968. END Test.
  13969. negative: string to pointer assignment
  13970. MODULE Test;
  13971. VAR result: POINTER TO RECORD END;
  13972. BEGIN result := "string";
  13973. END Test.
  13974. positive: nil pointer to pointer assignment
  13975. MODULE Test;
  13976. VAR result: POINTER TO RECORD END;
  13977. BEGIN result := NIL;
  13978. END Test.
  13979. negative: nil pointer to temporary pointer assignment
  13980. MODULE Test;
  13981. VAR result: PROCEDURE (): POINTER TO RECORD END;
  13982. BEGIN result () := NIL;
  13983. END Test.
  13984. negative: procedure to pointer assignment
  13985. MODULE Test;
  13986. VAR result: POINTER TO RECORD END;
  13987. PROCEDURE Procedure; END Procedure;
  13988. BEGIN result := Procedure;
  13989. END Test.
  13990. negative: constant boolean to procedure assignment
  13991. MODULE Test;
  13992. VAR result: PROCEDURE;
  13993. BEGIN result := TRUE;
  13994. END Test.
  13995. negative: constant character to procedure assignment
  13996. MODULE Test;
  13997. VAR result: PROCEDURE;
  13998. BEGIN result := 'f';
  13999. END Test.
  14000. negative: constant short integer to procedure assignment
  14001. MODULE Test;
  14002. VAR result: PROCEDURE;
  14003. BEGIN result := 10H;
  14004. END Test.
  14005. negative: constant integer to procedure assignment
  14006. MODULE Test;
  14007. VAR result: PROCEDURE;
  14008. BEGIN result := 1000H;
  14009. END Test.
  14010. negative: constant long integer to procedure assignment
  14011. MODULE Test;
  14012. VAR result: PROCEDURE;
  14013. BEGIN result := 100000H;
  14014. END Test.
  14015. negative: constant huge integer to procedure assignment
  14016. MODULE Test;
  14017. VAR result: PROCEDURE;
  14018. BEGIN result := 10000000000H;
  14019. END Test.
  14020. negative: constant real to procedure assignment
  14021. MODULE Test;
  14022. VAR result: PROCEDURE;
  14023. BEGIN result := 5.4;
  14024. END Test.
  14025. negative: constant long real to procedure assignment
  14026. MODULE Test;
  14027. VAR result: PROCEDURE;
  14028. BEGIN result := 5.4D100;
  14029. END Test.
  14030. negative: constant set to procedure assignment
  14031. MODULE Test;
  14032. VAR result: PROCEDURE;
  14033. BEGIN result := {5};
  14034. END Test.
  14035. negative: string to procedure assignment
  14036. MODULE Test;
  14037. VAR result: PROCEDURE;
  14038. BEGIN result := "string";
  14039. END Test.
  14040. positive: nil pointer to procedure assignment
  14041. MODULE Test;
  14042. VAR result: PROCEDURE;
  14043. BEGIN result := NIL;
  14044. END Test.
  14045. negative: nil pointer to temporary procedure assignment
  14046. MODULE Test;
  14047. VAR result: PROCEDURE (): PROCEDURE;
  14048. BEGIN result () := NIL;
  14049. END Test.
  14050. positive: procedure with one equal parameter to procedure assignment
  14051. MODULE Test;
  14052. VAR result: PROCEDURE (a: INTEGER);
  14053. PROCEDURE Procedure (b: INTEGER); END Procedure;
  14054. BEGIN result := Procedure;
  14055. END Test.
  14056. negative: procedure with one compatible parameter to procedure assignment
  14057. MODULE Test;
  14058. VAR result: PROCEDURE (a: INTEGER);
  14059. PROCEDURE Procedure (b: LONGINT); END Procedure;
  14060. BEGIN result := Procedure;
  14061. END Test.
  14062. negative: procedure with one incompatible parameter to procedure assignment
  14063. MODULE Test;
  14064. VAR result: PROCEDURE (a: SET);
  14065. PROCEDURE Procedure (b: LONGINT); END Procedure;
  14066. BEGIN result := Procedure;
  14067. END Test.
  14068. negative: procedure with one equal variable parameter to procedure assignment
  14069. MODULE Test;
  14070. VAR result: PROCEDURE (VAR a: INTEGER);
  14071. PROCEDURE Procedure (b: INTEGER); END Procedure;
  14072. BEGIN result := Procedure;
  14073. END Test.
  14074. negative: procedure with one equal constant parameter to procedure assignment
  14075. MODULE Test;
  14076. VAR result: PROCEDURE (CONST a: INTEGER);
  14077. PROCEDURE Procedure (b: INTEGER); END Procedure;
  14078. BEGIN result := Procedure;
  14079. END Test.
  14080. positive: procedure with two equal parameters to procedure assignment
  14081. MODULE Test;
  14082. VAR result: PROCEDURE (a, b: INTEGER);
  14083. PROCEDURE Procedure (c, d: INTEGER); END Procedure;
  14084. BEGIN result := Procedure;
  14085. END Test.
  14086. negative: procedure with two compatible parameters to procedure assignment
  14087. MODULE Test;
  14088. VAR result: PROCEDURE (a, b: INTEGER);
  14089. PROCEDURE Procedure (c, d: LONGINT); END Procedure;
  14090. BEGIN result := Procedure;
  14091. END Test.
  14092. negative: procedure with two incompatible parameters to procedure assignment
  14093. MODULE Test;
  14094. VAR result: PROCEDURE (a, b: SET);
  14095. PROCEDURE Procedure (c, d: LONGINT); END Procedure;
  14096. BEGIN result := Procedure;
  14097. END Test.
  14098. negative: procedure with two equal variable parameters to procedure assignment
  14099. MODULE Test;
  14100. VAR result: PROCEDURE (VAR a, b: INTEGER);
  14101. PROCEDURE Procedure (c, d: INTEGER); END Procedure;
  14102. BEGIN result := Procedure;
  14103. END Test.
  14104. negative: procedure with two equal constant parameters to procedure assignment
  14105. MODULE Test;
  14106. VAR result: PROCEDURE (CONST a, b: INTEGER);
  14107. PROCEDURE Procedure (c, d: INTEGER); END Procedure;
  14108. BEGIN result := Procedure;
  14109. END Test.
  14110. positive: procedure with several equal parameters to procedure assignment
  14111. MODULE Test;
  14112. VAR result: PROCEDURE (CONST a: SET; VAR i: INTEGER; o: OBJECT);
  14113. PROCEDURE Procedure (CONST a: SET; VAR i: INTEGER; o: OBJECT); END Procedure;
  14114. BEGIN result := Procedure;
  14115. END Test.
  14116. positive: procedure with equal return type to procedure assignment
  14117. MODULE Test;
  14118. VAR result: PROCEDURE (): INTEGER;
  14119. PROCEDURE Procedure (): INTEGER; BEGIN RETURN 0 END Procedure;
  14120. BEGIN result := Procedure;
  14121. END Test.
  14122. negative: procedure with compatible return type to procedure assignment
  14123. MODULE Test;
  14124. VAR result: PROCEDURE (): LONGINT;
  14125. PROCEDURE Procedure (): INTEGER; BEGIN RETURN 0 END Procedure;
  14126. BEGIN result := Procedure;
  14127. END Test.
  14128. negative: procedure with incompatible return type to procedure assignment
  14129. MODULE Test;
  14130. VAR result: PROCEDURE (): SET;
  14131. PROCEDURE Procedure (): INTEGER; BEGIN RETURN 0 END Procedure;
  14132. BEGIN result := Procedure;
  14133. END Test.
  14134. positive: procedure with several equal parameters and equal return type to procedure assignment
  14135. MODULE Test;
  14136. TYPE Record = RECORD END;
  14137. VAR result: PROCEDURE (CONST a: SET; VAR i: INTEGER; o: OBJECT): POINTER TO Record;
  14138. PROCEDURE Procedure (CONST a: SET; VAR i: INTEGER; o: OBJECT): POINTER TO Record; END Procedure;
  14139. BEGIN result := Procedure;
  14140. END Test.
  14141. positive: dummy module for import assignments
  14142. MODULE Dummy; END Dummy.
  14143. negative: constant boolean to import assignment
  14144. MODULE Test;
  14145. IMPORT result := Dummy;
  14146. BEGIN result := TRUE;
  14147. END Test.
  14148. negative: constant character to import assignment
  14149. MODULE Test;
  14150. IMPORT result := Dummy;
  14151. BEGIN result := 'f';
  14152. END Test.
  14153. negative: constant short integer to import assignment
  14154. MODULE Test;
  14155. IMPORT result := Dummy;
  14156. BEGIN result := 10H;
  14157. END Test.
  14158. negative: constant integer to import assignment
  14159. MODULE Test;
  14160. IMPORT result := Dummy;
  14161. BEGIN result := 1000H;
  14162. END Test.
  14163. negative: constant long integer to import assignment
  14164. MODULE Test;
  14165. IMPORT result := Dummy;
  14166. BEGIN result := 100000H;
  14167. END Test.
  14168. negative: constant huge integer to import assignment
  14169. MODULE Test;
  14170. IMPORT result := Dummy;
  14171. BEGIN result := 10000000000H;
  14172. END Test.
  14173. negative: constant real to import assignment
  14174. MODULE Test;
  14175. IMPORT result := Dummy;
  14176. BEGIN result := 5.4;
  14177. END Test.
  14178. negative: constant long real to import assignment
  14179. MODULE Test;
  14180. IMPORT result := Dummy;
  14181. BEGIN result := 5.4D100;
  14182. END Test.
  14183. negative: constant set to import assignment
  14184. MODULE Test;
  14185. IMPORT result := Dummy;
  14186. BEGIN result := {5};
  14187. END Test.
  14188. negative: string to import assignment
  14189. MODULE Test;
  14190. IMPORT result := Dummy;
  14191. BEGIN result := "string";
  14192. END Test.
  14193. negative: nil pointer to import assignment
  14194. MODULE Test;
  14195. IMPORT result := Dummy;
  14196. BEGIN result := NIL;
  14197. END Test.
  14198. negative: procedure to import assignment
  14199. MODULE Test;
  14200. IMPORT result := Dummy;
  14201. PROCEDURE Procedure; END Procedure;
  14202. BEGIN result := Procedure;
  14203. END Test.
  14204. positive: nil pointer to references assignment
  14205. MODULE Test;
  14206. VAR o: OBJECT END; ob: OBJECT; ptr: POINTER TO RECORD END; p: PROCEDURE;
  14207. BEGIN o := NIL; ob := NIL; ptr := NIL; p := NIL;
  14208. END Test.
  14209. positive: indirect nil pointer to references assignment
  14210. MODULE Test;
  14211. CONST Nil = NIL;
  14212. VAR o: OBJECT END; ob: OBJECT; ptr: POINTER TO RECORD END; p: PROCEDURE;
  14213. BEGIN o := Nil; ob := Nil; ptr := Nil; p := Nil;
  14214. END Test.
  14215. positive: variable boolean to variable boolean assignment
  14216. MODULE Test;
  14217. VAR variable, result: BOOLEAN;
  14218. BEGIN result := variable;
  14219. END Test.
  14220. negative: variable boolean to temporary boolean assignment
  14221. MODULE Test;
  14222. VAR variable: BOOLEAN; result: PROCEDURE (): BOOLEAN;
  14223. BEGIN result () := variable;
  14224. END Test.
  14225. negative: variable character to variable boolean assignment
  14226. MODULE Test;
  14227. VAR variable: CHAR; result: BOOLEAN;
  14228. BEGIN result := variable;
  14229. END Test.
  14230. negative: variable short integer to variable boolean assignment
  14231. MODULE Test;
  14232. VAR variable: SHORTINT; result: BOOLEAN;
  14233. BEGIN result := variable;
  14234. END Test.
  14235. negative: variable integer to variable boolean assignment
  14236. MODULE Test;
  14237. VAR variable: INTEGER; result: BOOLEAN;
  14238. BEGIN result := variable;
  14239. END Test.
  14240. negative: variable long integer to variable boolean assignment
  14241. MODULE Test;
  14242. VAR variable: LONGINT; result: BOOLEAN;
  14243. BEGIN result := variable;
  14244. END Test.
  14245. negative: variable huge integer to variable boolean assignment
  14246. MODULE Test;
  14247. VAR variable: HUGEINT; result: BOOLEAN;
  14248. BEGIN result := variable;
  14249. END Test.
  14250. negative: variable real to variable boolean assignment
  14251. MODULE Test;
  14252. VAR variable: REAL; result: BOOLEAN;
  14253. BEGIN result := variable;
  14254. END Test.
  14255. negative: variable long real to variable boolean assignment
  14256. MODULE Test;
  14257. VAR variable: LONGREAL; result: BOOLEAN;
  14258. BEGIN result := variable;
  14259. END Test.
  14260. negative: variable set to variable boolean assignment
  14261. MODULE Test;
  14262. VAR variable: SET; result: BOOLEAN;
  14263. BEGIN result := variable;
  14264. END Test.
  14265. negative: array to variable boolean assignment
  14266. MODULE Test;
  14267. VAR variable: ARRAY 10 OF CHAR; result: BOOLEAN;
  14268. BEGIN result := variable;
  14269. END Test.
  14270. negative: record to variable boolean assignment
  14271. MODULE Test;
  14272. VAR variable: RECORD END; result: BOOLEAN;
  14273. BEGIN result := variable;
  14274. END Test.
  14275. negative: object to variable boolean assignment
  14276. MODULE Test;
  14277. VAR variable: OBJECT; result: BOOLEAN;
  14278. BEGIN result := variable;
  14279. END Test.
  14280. negative: pointer to variable boolean assignment
  14281. MODULE Test;
  14282. VAR variable: POINTER TO RECORD END; result: BOOLEAN;
  14283. BEGIN result := variable;
  14284. END Test.
  14285. negative: variable procedure to variable boolean assignment
  14286. MODULE Test;
  14287. VAR variable: PROCEDURE; result: BOOLEAN;
  14288. BEGIN result := variable;
  14289. END Test.
  14290. negative: import to variable boolean assignment
  14291. MODULE Test;
  14292. IMPORT variable := Dummy; VAR result: BOOLEAN;
  14293. BEGIN result := variable;
  14294. END Test.
  14295. negative: type to variable boolean assignment
  14296. MODULE Test;
  14297. TYPE Type = BOOLEAN; VAR result: Type;
  14298. BEGIN result := Type;
  14299. END Test.
  14300. negative: variable boolean to variable character assignment
  14301. MODULE Test;
  14302. VAR variable: BOOLEAN; result: CHAR;
  14303. BEGIN result := variable;
  14304. END Test.
  14305. positive: variable character to variable character assignment
  14306. MODULE Test;
  14307. VAR variable, result: CHAR;
  14308. BEGIN result := variable;
  14309. END Test.
  14310. negative: variable character to temporary character assignment
  14311. MODULE Test;
  14312. VAR variable: CHAR; result: PROCEDURE (): CHAR;
  14313. BEGIN result () := variable;
  14314. END Test.
  14315. negative: variable short integer to variable character assignment
  14316. MODULE Test;
  14317. VAR variable: SHORTINT; result: CHAR;
  14318. BEGIN result := variable;
  14319. END Test.
  14320. negative: variable integer to variable character assignment
  14321. MODULE Test;
  14322. VAR variable: INTEGER; result: CHAR;
  14323. BEGIN result := variable;
  14324. END Test.
  14325. negative: variable long integer to variable character assignment
  14326. MODULE Test;
  14327. VAR variable: LONGINT; result: CHAR;
  14328. BEGIN result := variable;
  14329. END Test.
  14330. negative: variable huge integer to variable character assignment
  14331. MODULE Test;
  14332. VAR variable: HUGEINT; result: CHAR;
  14333. BEGIN result := variable;
  14334. END Test.
  14335. negative: variable real to variable character assignment
  14336. MODULE Test;
  14337. VAR variable: REAL; result: CHAR;
  14338. BEGIN result := variable;
  14339. END Test.
  14340. negative: variable long real to variable character assignment
  14341. MODULE Test;
  14342. VAR variable: LONGREAL; result: CHAR;
  14343. BEGIN result := variable;
  14344. END Test.
  14345. negative: variable set to variable character assignment
  14346. MODULE Test;
  14347. VAR variable: SET; result: CHAR;
  14348. BEGIN result := variable;
  14349. END Test.
  14350. negative: array to variable character assignment
  14351. MODULE Test;
  14352. VAR variable: ARRAY 10 OF CHAR; result: CHAR;
  14353. BEGIN result := variable;
  14354. END Test.
  14355. negative: record to variable character assignment
  14356. MODULE Test;
  14357. VAR variable: RECORD END; result: CHAR;
  14358. BEGIN result := variable;
  14359. END Test.
  14360. negative: object to variable character assignment
  14361. MODULE Test;
  14362. VAR variable: OBJECT; result: CHAR;
  14363. BEGIN result := variable;
  14364. END Test.
  14365. negative: pointer to variable character assignment
  14366. MODULE Test;
  14367. VAR variable: POINTER TO RECORD END; result: CHAR;
  14368. BEGIN result := variable;
  14369. END Test.
  14370. negative: variable procedure to variable character assignment
  14371. MODULE Test;
  14372. VAR variable: PROCEDURE; result: CHAR;
  14373. BEGIN result := variable;
  14374. END Test.
  14375. negative: import to variable character assignment
  14376. MODULE Test;
  14377. IMPORT variable := Dummy; VAR result: CHAR;
  14378. BEGIN result := variable;
  14379. END Test.
  14380. negative: type to variable character assignment
  14381. MODULE Test;
  14382. TYPE Type = CHAR; VAR result: Type;
  14383. BEGIN result := Type;
  14384. END Test.
  14385. negative: variable boolean to variable short integer assignment
  14386. MODULE Test;
  14387. VAR variable: BOOLEAN; result: SHORTINT;
  14388. BEGIN result := variable;
  14389. END Test.
  14390. negative: variable character to variable short integer assignment
  14391. MODULE Test;
  14392. VAR variable: CHAR; result: SHORTINT;
  14393. BEGIN result := variable;
  14394. END Test.
  14395. positive: variable short integer to variable short integer assignment
  14396. MODULE Test;
  14397. VAR variable, result: SHORTINT;
  14398. BEGIN result := variable;
  14399. END Test.
  14400. negative: variable short integer to temporary short integer assignment
  14401. MODULE Test;
  14402. VAR variable: SHORTINT; result: PROCEDURE (): SHORTINT;
  14403. BEGIN result () := variable;
  14404. END Test.
  14405. negative: variable integer to variable short integer assignment
  14406. MODULE Test;
  14407. VAR variable: INTEGER; result: SHORTINT;
  14408. BEGIN result := variable;
  14409. END Test.
  14410. negative: variable long integer to variable short integer assignment
  14411. MODULE Test;
  14412. VAR variable: LONGINT; result: SHORTINT;
  14413. BEGIN result := variable;
  14414. END Test.
  14415. negative: variable huge integer to variable short integer assignment
  14416. MODULE Test;
  14417. VAR variable: HUGEINT; result: SHORTINT;
  14418. BEGIN result := variable;
  14419. END Test.
  14420. negative: variable real to variable short integer assignment
  14421. MODULE Test;
  14422. VAR variable: REAL; result: SHORTINT;
  14423. BEGIN result := variable;
  14424. END Test.
  14425. negative: variable long real to variable short integer assignment
  14426. MODULE Test;
  14427. VAR variable: LONGREAL; result: SHORTINT;
  14428. BEGIN result := variable;
  14429. END Test.
  14430. negative: variable set to variable short integer assignment
  14431. MODULE Test;
  14432. VAR variable: SET; result: SHORTINT;
  14433. BEGIN result := variable;
  14434. END Test.
  14435. negative: array to variable short integer assignment
  14436. MODULE Test;
  14437. VAR variable: ARRAY 10 OF CHAR; result: SHORTINT;
  14438. BEGIN result := variable;
  14439. END Test.
  14440. negative: record to variable short integer assignment
  14441. MODULE Test;
  14442. VAR variable: RECORD END; result: SHORTINT;
  14443. BEGIN result := variable;
  14444. END Test.
  14445. negative: object to variable short integer assignment
  14446. MODULE Test;
  14447. VAR variable: OBJECT; result: SHORTINT;
  14448. BEGIN result := variable;
  14449. END Test.
  14450. negative: pointer to variable short integer assignment
  14451. MODULE Test;
  14452. VAR variable: POINTER TO RECORD END; result: SHORTINT;
  14453. BEGIN result := variable;
  14454. END Test.
  14455. negative: variable procedure to variable short integer assignment
  14456. MODULE Test;
  14457. VAR variable: PROCEDURE; result: SHORTINT;
  14458. BEGIN result := variable;
  14459. END Test.
  14460. negative: import to variable short integer assignment
  14461. MODULE Test;
  14462. IMPORT variable := Dummy; VAR result: SHORTINT;
  14463. BEGIN result := variable;
  14464. END Test.
  14465. negative: type to variable short integer assignment
  14466. MODULE Test;
  14467. TYPE Type = SHORTINT; VAR result: Type;
  14468. BEGIN result := Type;
  14469. END Test.
  14470. negative: variable boolean to variable integer assignment
  14471. MODULE Test;
  14472. VAR variable: BOOLEAN; result: INTEGER;
  14473. BEGIN result := variable;
  14474. END Test.
  14475. negative: variable character to variable integer assignment
  14476. MODULE Test;
  14477. VAR variable: CHAR; result: INTEGER;
  14478. BEGIN result := variable;
  14479. END Test.
  14480. positive: variable short integer to variable integer assignment
  14481. MODULE Test;
  14482. VAR variable: SHORTINT; result: INTEGER;
  14483. BEGIN result := variable;
  14484. END Test.
  14485. negative: variable short integer to temporary integer assignment
  14486. MODULE Test;
  14487. VAR variable: SHORTINT; result: PROCEDURE (): INTEGER;
  14488. BEGIN result () := variable;
  14489. END Test.
  14490. positive: variable integer to variable integer assignment
  14491. MODULE Test;
  14492. VAR variable, result: INTEGER;
  14493. BEGIN result := variable;
  14494. END Test.
  14495. negative: variable integer to temporary integer assignment
  14496. MODULE Test;
  14497. VAR variable: INTEGER; result: PROCEDURE (): INTEGER;
  14498. BEGIN result () := variable;
  14499. END Test.
  14500. negative: variable long integer to variable integer assignment
  14501. MODULE Test;
  14502. VAR variable: LONGINT; result: INTEGER;
  14503. BEGIN result := variable;
  14504. END Test.
  14505. negative: variable huge integer to variable integer assignment
  14506. MODULE Test;
  14507. VAR variable: HUGEINT; result: INTEGER;
  14508. BEGIN result := variable;
  14509. END Test.
  14510. negative: variable real to variable integer assignment
  14511. MODULE Test;
  14512. VAR variable: REAL; result: INTEGER;
  14513. BEGIN result := variable;
  14514. END Test.
  14515. negative: variable long real to variable integer assignment
  14516. MODULE Test;
  14517. VAR variable: LONGREAL; result: INTEGER;
  14518. BEGIN result := variable;
  14519. END Test.
  14520. negative: variable set to variable integer assignment
  14521. MODULE Test;
  14522. VAR variable: SET; result: INTEGER;
  14523. BEGIN result := variable;
  14524. END Test.
  14525. negative: array to variable integer assignment
  14526. MODULE Test;
  14527. VAR variable: ARRAY 10 OF CHAR; result: INTEGER;
  14528. BEGIN result := variable;
  14529. END Test.
  14530. negative: record to variable integer assignment
  14531. MODULE Test;
  14532. VAR variable: RECORD END; result: INTEGER;
  14533. BEGIN result := variable;
  14534. END Test.
  14535. negative: object to variable integer assignment
  14536. MODULE Test;
  14537. VAR variable: OBJECT; result: INTEGER;
  14538. BEGIN result := variable;
  14539. END Test.
  14540. negative: pointer to variable integer assignment
  14541. MODULE Test;
  14542. VAR variable: POINTER TO RECORD END; result: INTEGER;
  14543. BEGIN result := variable;
  14544. END Test.
  14545. negative: variable eto variable integer assignment
  14546. MODULE Test;
  14547. VAR variable: PROCEDURE; result: INTEGER;
  14548. BEGIN result := variable;
  14549. END Test.
  14550. negative: import to variable integer assignment
  14551. MODULE Test;
  14552. IMPORT variable := Dummy; VAR result: INTEGER;
  14553. BEGIN result := variable;
  14554. END Test.
  14555. negative: type to variable integer assignment
  14556. MODULE Test;
  14557. TYPE Type = INTEGER; VAR result: Type;
  14558. BEGIN result := Type;
  14559. END Test.
  14560. negative: variable boolean to variable long integer assignment
  14561. MODULE Test;
  14562. VAR variable: BOOLEAN; result: LONGINT;
  14563. BEGIN result := variable;
  14564. END Test.
  14565. negative: variable character to variable long integer assignment
  14566. MODULE Test;
  14567. VAR variable: CHAR; result: LONGINT;
  14568. BEGIN result := variable;
  14569. END Test.
  14570. positive: variable short integer to variable long integer assignment
  14571. MODULE Test;
  14572. VAR variable: SHORTINT; result: LONGINT;
  14573. BEGIN result := variable;
  14574. END Test.
  14575. negative: variable short integer to temporary long integer assignment
  14576. MODULE Test;
  14577. VAR variable: SHORTINT; result: PROCEDURE (): LONGINT;
  14578. BEGIN result () := variable;
  14579. END Test.
  14580. positive: variable integer to variable long integer assignment
  14581. MODULE Test;
  14582. VAR variable: INTEGER; result: LONGINT;
  14583. BEGIN result := variable;
  14584. END Test.
  14585. negative: variable integer to temporary long integer assignment
  14586. MODULE Test;
  14587. VAR variable: INTEGER; result: PROCEDURE (): LONGINT;
  14588. BEGIN result () := variable;
  14589. END Test.
  14590. positive: variable long integer to variable long integer assignment
  14591. MODULE Test;
  14592. VAR variable, result: LONGINT;
  14593. BEGIN result := variable;
  14594. END Test.
  14595. negative: variable long integer to temporary long integer assignment
  14596. MODULE Test;
  14597. VAR variable: LONGINT; result: PROCEDURE (): LONGINT;
  14598. BEGIN result () := variable;
  14599. END Test.
  14600. negative: variable huge integer to variable long integer assignment
  14601. MODULE Test;
  14602. VAR variable: HUGEINT; result: LONGINT;
  14603. BEGIN result := variable;
  14604. END Test.
  14605. negative: variable real to variable long integer assignment
  14606. MODULE Test;
  14607. VAR variable: REAL; result: LONGINT;
  14608. BEGIN result := variable;
  14609. END Test.
  14610. negative: variable long real to variable long integer assignment
  14611. MODULE Test;
  14612. VAR variable: LONGREAL; result: LONGINT;
  14613. BEGIN result := variable;
  14614. END Test.
  14615. negative: variable set to variable long integer assignment
  14616. MODULE Test;
  14617. VAR variable: SET; result: LONGINT;
  14618. BEGIN result := variable;
  14619. END Test.
  14620. negative: array to variable long integer assignment
  14621. MODULE Test;
  14622. VAR variable: ARRAY 10 OF CHAR; result: LONGINT;
  14623. BEGIN result := variable;
  14624. END Test.
  14625. negative: record to variable long integer assignment
  14626. MODULE Test;
  14627. VAR variable: RECORD END; result: LONGINT;
  14628. BEGIN result := variable;
  14629. END Test.
  14630. negative: object to variable long integer assignment
  14631. MODULE Test;
  14632. VAR variable: OBJECT; result: LONGINT;
  14633. BEGIN result := variable;
  14634. END Test.
  14635. negative: pointer to variable long integer assignment
  14636. MODULE Test;
  14637. VAR variable: POINTER TO RECORD END; result: LONGINT;
  14638. BEGIN result := variable;
  14639. END Test.
  14640. negative: variable procedure to variable long integer assignment
  14641. MODULE Test;
  14642. VAR variable: PROCEDURE; result: LONGINT;
  14643. BEGIN result := variable;
  14644. END Test.
  14645. negative: import to variable long integer assignment
  14646. MODULE Test;
  14647. IMPORT variable := Dummy; VAR result: LONGINT;
  14648. BEGIN result := variable;
  14649. END Test.
  14650. negative: type to variable long integer assignment
  14651. MODULE Test;
  14652. TYPE Type = LONGINT; VAR result: Type;
  14653. BEGIN result := Type;
  14654. END Test.
  14655. negative: variable boolean to variable huge integer assignment
  14656. MODULE Test;
  14657. VAR variable: BOOLEAN; result: HUGEINT;
  14658. BEGIN result := variable;
  14659. END Test.
  14660. negative: variable character to variable huge integer assignment
  14661. MODULE Test;
  14662. VAR variable: CHAR; result: HUGEINT;
  14663. BEGIN result := variable;
  14664. END Test.
  14665. positive: variable short integer to variable huge integer assignment
  14666. MODULE Test;
  14667. VAR variable: SHORTINT; result: HUGEINT;
  14668. BEGIN result := variable;
  14669. END Test.
  14670. negative: variable short integer to temporary huge integer assignment
  14671. MODULE Test;
  14672. VAR variable: SHORTINT; result: PROCEDURE (): HUGEINT;
  14673. BEGIN result () := variable;
  14674. END Test.
  14675. positive: variable integer to variable huge integer assignment
  14676. MODULE Test;
  14677. VAR variable: INTEGER; result: HUGEINT;
  14678. BEGIN result := variable;
  14679. END Test.
  14680. negative: variable integer to temporary huge integer assignment
  14681. MODULE Test;
  14682. VAR variable: INTEGER; result: PROCEDURE (): HUGEINT;
  14683. BEGIN result () := variable;
  14684. END Test.
  14685. positive: variable long integer to variable huge integer assignment
  14686. MODULE Test;
  14687. VAR variable: LONGINT; result: HUGEINT;
  14688. BEGIN result := variable;
  14689. END Test.
  14690. negative: variable long integer to temporary huge integer assignment
  14691. MODULE Test;
  14692. VAR variable: LONGINT; result: PROCEDURE (): HUGEINT;
  14693. BEGIN result () := variable;
  14694. END Test.
  14695. positive: variable huge integer to variable huge integer assignment
  14696. MODULE Test;
  14697. VAR variable, result: HUGEINT;
  14698. BEGIN result := variable;
  14699. END Test.
  14700. negative: variable huge integer to temporary huge integer assignment
  14701. MODULE Test;
  14702. VAR variable: HUGEINT; result: PROCEDURE (): HUGEINT;
  14703. BEGIN result () := variable;
  14704. END Test.
  14705. negative: variable real to variable huge integer assignment
  14706. MODULE Test;
  14707. VAR variable: REAL; result: HUGEINT;
  14708. BEGIN result := variable;
  14709. END Test.
  14710. negative: variable long real to variable huge integer assignment
  14711. MODULE Test;
  14712. VAR variable: LONGREAL; result: HUGEINT;
  14713. BEGIN result := variable;
  14714. END Test.
  14715. negative: variable set to variable huge integer assignment
  14716. MODULE Test;
  14717. VAR variable: SET; result: HUGEINT;
  14718. BEGIN result := variable;
  14719. END Test.
  14720. negative: array to variable huge integer assignment
  14721. MODULE Test;
  14722. VAR variable: ARRAY 10 OF CHAR; result: HUGEINT;
  14723. BEGIN result := variable;
  14724. END Test.
  14725. negative: record to variable huge integer assignment
  14726. MODULE Test;
  14727. VAR variable: RECORD END; result: HUGEINT;
  14728. BEGIN result := variable;
  14729. END Test.
  14730. negative: object to variable huge integer assignment
  14731. MODULE Test;
  14732. VAR variable: OBJECT; result: HUGEINT;
  14733. BEGIN result := variable;
  14734. END Test.
  14735. negative: pointer to variable huge integer assignment
  14736. MODULE Test;
  14737. VAR variable: POINTER TO RECORD END; result: HUGEINT;
  14738. BEGIN result := variable;
  14739. END Test.
  14740. negative: variable procedure to variable huge integer assignment
  14741. MODULE Test;
  14742. VAR variable: PROCEDURE; result: HUGEINT;
  14743. BEGIN result := variable;
  14744. END Test.
  14745. negative: import to variable huge integer assignment
  14746. MODULE Test;
  14747. IMPORT variable := Dummy; VAR result: HUGEINT;
  14748. BEGIN result := variable;
  14749. END Test.
  14750. negative: type to variable huge integer assignment
  14751. MODULE Test;
  14752. TYPE Type = HUGEINT; VAR result: Type;
  14753. BEGIN result := Type;
  14754. END Test.
  14755. negative: variable boolean to variable real assignment
  14756. MODULE Test;
  14757. VAR variable: BOOLEAN; result: REAL;
  14758. BEGIN result := variable;
  14759. END Test.
  14760. negative: variable character to variable real assignment
  14761. MODULE Test;
  14762. VAR variable: CHAR; result: REAL;
  14763. BEGIN result := variable;
  14764. END Test.
  14765. positive: variable short integer to variable real assignment
  14766. MODULE Test;
  14767. VAR variable: SHORTINT; result: REAL;
  14768. BEGIN result := variable;
  14769. END Test.
  14770. negative: variable short integer to temporary real assignment
  14771. MODULE Test;
  14772. VAR variable: SHORTINT; result: PROCEDURE (): REAL;
  14773. BEGIN result () := variable;
  14774. END Test.
  14775. positive: variable integer to variable real assignment
  14776. MODULE Test;
  14777. VAR variable: INTEGER; result: REAL;
  14778. BEGIN result := variable;
  14779. END Test.
  14780. negative: variable integer to temporary real assignment
  14781. MODULE Test;
  14782. VAR variable: INTEGER; result: PROCEDURE (): REAL;
  14783. BEGIN result () := variable;
  14784. END Test.
  14785. positive: variable long integer to variable real assignment
  14786. MODULE Test;
  14787. VAR variable: LONGINT; result: REAL;
  14788. BEGIN result := variable;
  14789. END Test.
  14790. negative: variable long integer to temporary real assignment
  14791. MODULE Test;
  14792. VAR variable: LONGINT; result: PROCEDURE (): REAL;
  14793. BEGIN result () := variable;
  14794. END Test.
  14795. positive: variable huge integer to variable real assignment
  14796. MODULE Test;
  14797. VAR variable: HUGEINT; result: REAL;
  14798. BEGIN result := variable;
  14799. END Test.
  14800. negative: variable huge integer to temporary real assignment
  14801. MODULE Test;
  14802. VAR variable: HUGEINT; result: PROCEDURE (): REAL;
  14803. BEGIN result () := variable;
  14804. END Test.
  14805. positive: variable real to variable real assignment
  14806. MODULE Test;
  14807. VAR variable, result: REAL;
  14808. BEGIN result := variable;
  14809. END Test.
  14810. negative: variable real to temporary real assignment
  14811. MODULE Test;
  14812. VAR variable: REAL; result: PROCEDURE (): REAL;
  14813. BEGIN result () := variable;
  14814. END Test.
  14815. negative: variable long real to variable real assignment
  14816. MODULE Test;
  14817. VAR variable: LONGREAL; result: REAL;
  14818. BEGIN result := variable;
  14819. END Test.
  14820. negative: variable set to variable real assignment
  14821. MODULE Test;
  14822. VAR variable: SET; result: REAL;
  14823. BEGIN result := variable;
  14824. END Test.
  14825. negative: array to variable real assignment
  14826. MODULE Test;
  14827. VAR variable: ARRAY 10 OF CHAR; result: REAL;
  14828. BEGIN result := variable;
  14829. END Test.
  14830. negative: record to variable real assignment
  14831. MODULE Test;
  14832. VAR variable: RECORD END; result: REAL;
  14833. BEGIN result := variable;
  14834. END Test.
  14835. negative: object to variable real assignment
  14836. MODULE Test;
  14837. VAR variable: OBJECT; result: REAL;
  14838. BEGIN result := variable;
  14839. END Test.
  14840. negative: pointer to variable real assignment
  14841. MODULE Test;
  14842. VAR variable: POINTER TO RECORD END; result: REAL;
  14843. BEGIN result := variable;
  14844. END Test.
  14845. negative: variable procedure to variable real assignment
  14846. MODULE Test;
  14847. VAR variable: PROCEDURE; result: REAL;
  14848. BEGIN result := variable;
  14849. END Test.
  14850. negative: import to variable real assignment
  14851. MODULE Test;
  14852. IMPORT variable := Dummy; VAR result: REAL;
  14853. BEGIN result := variable;
  14854. END Test.
  14855. negative: type to variable real assignment
  14856. MODULE Test;
  14857. TYPE Type = REAL; VAR result: Type;
  14858. BEGIN result := Type;
  14859. END Test.
  14860. negative: variable boolean to variable long real assignment
  14861. MODULE Test;
  14862. VAR variable: BOOLEAN; result: LONGREAL;
  14863. BEGIN result := variable;
  14864. END Test.
  14865. negative: variable character to variable long real assignment
  14866. MODULE Test;
  14867. VAR variable: CHAR; result: LONGREAL;
  14868. BEGIN result := variable;
  14869. END Test.
  14870. positive: variable short integer to variable long real assignment
  14871. MODULE Test;
  14872. VAR variable: SHORTINT; result: LONGREAL;
  14873. BEGIN result := variable;
  14874. END Test.
  14875. negative: variable short integer to temporary long real assignment
  14876. MODULE Test;
  14877. VAR variable: SHORTINT; result: PROCEDURE (): LONGREAL;
  14878. BEGIN result () := variable;
  14879. END Test.
  14880. positive: variable integer to variable long real assignment
  14881. MODULE Test;
  14882. VAR variable: INTEGER; result: LONGREAL;
  14883. BEGIN result := variable;
  14884. END Test.
  14885. negative: variable integer to temporary long real assignment
  14886. MODULE Test;
  14887. VAR variable: INTEGER; result: PROCEDURE (): LONGREAL;
  14888. BEGIN result () := variable;
  14889. END Test.
  14890. positive: variable long integer to variable long real assignment
  14891. MODULE Test;
  14892. VAR variable: LONGINT; result: LONGREAL;
  14893. BEGIN result := variable;
  14894. END Test.
  14895. negative: variable long integer to temporary long real assignment
  14896. MODULE Test;
  14897. VAR variable: LONGINT; result: PROCEDURE (): LONGREAL;
  14898. BEGIN result () := variable;
  14899. END Test.
  14900. positive: variable huge integer to variable long real assignment
  14901. MODULE Test;
  14902. VAR variable: HUGEINT; result: LONGREAL;
  14903. BEGIN result := variable;
  14904. END Test.
  14905. negative: variable huge integer to temporary long real assignment
  14906. MODULE Test;
  14907. VAR variable: HUGEINT; result: PROCEDURE (): LONGREAL;
  14908. BEGIN result () := variable;
  14909. END Test.
  14910. positive: variable real to variable long real assignment
  14911. MODULE Test;
  14912. VAR variable: REAL; result: LONGREAL;
  14913. BEGIN result := variable;
  14914. END Test.
  14915. negative: variable real to temporary long real assignment
  14916. MODULE Test;
  14917. VAR variable: REAL; result: PROCEDURE (): LONGREAL;
  14918. BEGIN result () := variable;
  14919. END Test.
  14920. positive: variable long real to variable long real assignment
  14921. MODULE Test;
  14922. VAR variable, result: LONGREAL;
  14923. BEGIN result := variable;
  14924. END Test.
  14925. negative: variable long real to temporary long real assignment
  14926. MODULE Test;
  14927. VAR variable: REAL; result: PROCEDURE (): LONGREAL;
  14928. BEGIN result () := variable;
  14929. END Test.
  14930. negative: variable set to variable long real assignment
  14931. MODULE Test;
  14932. VAR variable: SET; result: LONGREAL;
  14933. BEGIN result := variable;
  14934. END Test.
  14935. negative: array to variable long real assignment
  14936. MODULE Test;
  14937. VAR variable: ARRAY 10 OF CHAR; result: LONGREAL;
  14938. BEGIN result := variable;
  14939. END Test.
  14940. negative: record to variable long real assignment
  14941. MODULE Test;
  14942. VAR variable: RECORD END; result: LONGREAL;
  14943. BEGIN result := variable;
  14944. END Test.
  14945. negative: object to variable long real assignment
  14946. MODULE Test;
  14947. VAR variable: OBJECT; result: LONGREAL;
  14948. BEGIN result := variable;
  14949. END Test.
  14950. negative: pointer to variable long real assignment
  14951. MODULE Test;
  14952. VAR variable: POINTER TO RECORD END; result: LONGREAL;
  14953. BEGIN result := variable;
  14954. END Test.
  14955. negative: variable procedure to variable long real assignment
  14956. MODULE Test;
  14957. VAR variable: PROCEDURE; result: LONGREAL;
  14958. BEGIN result := variable;
  14959. END Test.
  14960. negative: import to variable long real assignment
  14961. MODULE Test;
  14962. IMPORT variable := Dummy; VAR result: LONGREAL;
  14963. BEGIN result := variable;
  14964. END Test.
  14965. negative: type to variable long real assignment
  14966. MODULE Test;
  14967. TYPE Type = LONGREAL; VAR result: Type;
  14968. BEGIN result := Type;
  14969. END Test.
  14970. negative: variable boolean to variable set assignment
  14971. MODULE Test;
  14972. VAR variable: BOOLEAN; result: SET;
  14973. BEGIN result := variable;
  14974. END Test.
  14975. negative: variable character to variable set assignment
  14976. MODULE Test;
  14977. VAR variable: CHAR; result: SET;
  14978. BEGIN result := variable;
  14979. END Test.
  14980. negative: variable short integer to variable set assignment
  14981. MODULE Test;
  14982. VAR variable: SHORTINT; result: SET;
  14983. BEGIN result := variable;
  14984. END Test.
  14985. negative: variable integer to variable set assignment
  14986. MODULE Test;
  14987. VAR variable: INTEGER; result: SET;
  14988. BEGIN result := variable;
  14989. END Test.
  14990. negative: variable long integer to variable set assignment
  14991. MODULE Test;
  14992. VAR variable: LONGINT; result: SET;
  14993. BEGIN result := variable;
  14994. END Test.
  14995. negative: variable huge integer to variable set assignment
  14996. MODULE Test;
  14997. VAR variable: HUGEINT; result: SET;
  14998. BEGIN result := variable;
  14999. END Test.
  15000. negative: variable real to variable set assignment
  15001. MODULE Test;
  15002. VAR variable: REAL; result: SET;
  15003. BEGIN result := variable;
  15004. END Test.
  15005. negative: variable long real to variable set assignment
  15006. MODULE Test;
  15007. VAR variable: LONGREAL; result: SET;
  15008. BEGIN result := variable;
  15009. END Test.
  15010. positive: variable set to variable set assignment
  15011. MODULE Test;
  15012. VAR variable, result: SET;
  15013. BEGIN result := variable;
  15014. END Test.
  15015. negative: variable set to temporary set assignment
  15016. MODULE Test;
  15017. VAR variable: SET; result: PROCEDURE (): SET;
  15018. BEGIN result () := variable;
  15019. END Test.
  15020. negative: array to variable set assignment
  15021. MODULE Test;
  15022. VAR variable: ARRAY 10 OF CHAR; result: SET;
  15023. BEGIN result := variable;
  15024. END Test.
  15025. negative: record to variable set assignment
  15026. MODULE Test;
  15027. VAR variable: RECORD END; result: SET;
  15028. BEGIN result := variable;
  15029. END Test.
  15030. negative: object to variable set assignment
  15031. MODULE Test;
  15032. VAR variable: OBJECT; result: SET;
  15033. BEGIN result := variable;
  15034. END Test.
  15035. negative: pointer to variable set assignment
  15036. MODULE Test;
  15037. VAR variable: POINTER TO RECORD END; result: SET;
  15038. BEGIN result := variable;
  15039. END Test.
  15040. negative: variable procedure to variable set assignment
  15041. MODULE Test;
  15042. VAR variable: PROCEDURE; result: SET;
  15043. BEGIN result := variable;
  15044. END Test.
  15045. negative: import to variable set assignment
  15046. MODULE Test;
  15047. IMPORT variable := Dummy; VAR result: SET;
  15048. BEGIN result := variable;
  15049. END Test.
  15050. negative: type to variable set assignment
  15051. MODULE Test;
  15052. TYPE Type = SET; VAR result: Type;
  15053. BEGIN result := Type;
  15054. END Test.
  15055. negative: variable boolean to array assignment
  15056. MODULE Test;
  15057. VAR variable: BOOLEAN; result: ARRAY 10 OF CHAR;
  15058. BEGIN result := variable;
  15059. END Test.
  15060. negative: variable character to array assignment
  15061. MODULE Test;
  15062. VAR variable: CHAR; result: ARRAY 10 OF CHAR;
  15063. BEGIN result := variable;
  15064. END Test.
  15065. negative: variable short integer to array assignment
  15066. MODULE Test;
  15067. VAR variable: SHORTINT; result: ARRAY 10 OF CHAR;
  15068. BEGIN result := variable;
  15069. END Test.
  15070. negative: variable integer to array assignment
  15071. MODULE Test;
  15072. VAR variable: INTEGER; result: ARRAY 10 OF CHAR;
  15073. BEGIN result := variable;
  15074. END Test.
  15075. negative: variable long integer to array assignment
  15076. MODULE Test;
  15077. VAR variable: LONGINT; result: ARRAY 10 OF CHAR;
  15078. BEGIN result := variable;
  15079. END Test.
  15080. negative: variable huge integer to array assignment
  15081. MODULE Test;
  15082. VAR variable: HUGEINT; result: ARRAY 10 OF CHAR;
  15083. BEGIN result := variable;
  15084. END Test.
  15085. negative: variable real to array assignment
  15086. MODULE Test;
  15087. VAR variable: REAL; result: ARRAY 10 OF CHAR;
  15088. BEGIN result := variable;
  15089. END Test.
  15090. negative: variable long real to array assignment
  15091. MODULE Test;
  15092. VAR variable: LONGREAL; result: ARRAY 10 OF CHAR;
  15093. BEGIN result := variable;
  15094. END Test.
  15095. negative: variable set to array assignment
  15096. MODULE Test;
  15097. VAR variable: SET; result: ARRAY 10 OF CHAR;
  15098. BEGIN result := variable;
  15099. END Test.
  15100. positive: array of boolean to array of boolean assignment
  15101. MODULE Test;
  15102. VAR variable, result: ARRAY 10 OF BOOLEAN;
  15103. BEGIN result := variable;
  15104. END Test.
  15105. negative: array of boolean to temporary array of boolean assignment
  15106. MODULE Test;
  15107. VAR variable: ARRAY 10 OF BOOLEAN; result: PROCEDURE (): ARRAY 10 OF BOOLEAN;
  15108. BEGIN result () := variable;
  15109. END Test.
  15110. negative: array of boolean to longer array of boolean assignment
  15111. MODULE Test;
  15112. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 20 OF BOOLEAN;
  15113. BEGIN result := variable;
  15114. END Test.
  15115. negative: array of boolean to shorter array of boolean assignment
  15116. MODULE Test;
  15117. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 5 OF BOOLEAN;
  15118. BEGIN result := variable;
  15119. END Test.
  15120. negative: array of boolean to open array of boolean assignment
  15121. MODULE Test;
  15122. PROCEDURE Procedure (VAR result: ARRAY OF BOOLEAN);
  15123. VAR variable: ARRAY 10 OF BOOLEAN;
  15124. BEGIN result := variable;
  15125. END Procedure;
  15126. END Test.
  15127. negative: open array of boolean to array of boolean assignment
  15128. MODULE Test;
  15129. PROCEDURE Procedure (VAR variable: ARRAY OF BOOLEAN);
  15130. VAR result: ARRAY 10 OF BOOLEAN;
  15131. BEGIN result := variable;
  15132. END Procedure;
  15133. END Test.
  15134. negative: array of boolean to dereferenced open array of boolean assignment
  15135. MODULE Test;
  15136. VAR variable: ARRAY 10 OF BOOLEAN; result: POINTER TO ARRAY OF BOOLEAN;
  15137. BEGIN result^ := variable;
  15138. END Test.
  15139. negative: array of character to array of boolean assignment
  15140. MODULE Test;
  15141. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF BOOLEAN;
  15142. BEGIN result := variable;
  15143. END Test.
  15144. negative: array of short integer to array of boolean assignment
  15145. MODULE Test;
  15146. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF BOOLEAN;
  15147. BEGIN result := variable;
  15148. END Test.
  15149. negative: array of integer to array of boolean assignment
  15150. MODULE Test;
  15151. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF BOOLEAN;
  15152. BEGIN result := variable;
  15153. END Test.
  15154. negative: array of long integer to array of boolean assignment
  15155. MODULE Test;
  15156. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF BOOLEAN;
  15157. BEGIN result := variable;
  15158. END Test.
  15159. negative: array of huge integer to array of boolean assignment
  15160. MODULE Test;
  15161. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF BOOLEAN;
  15162. BEGIN result := variable;
  15163. END Test.
  15164. negative: array of real to array of boolean assignment
  15165. MODULE Test;
  15166. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF BOOLEAN;
  15167. BEGIN result := variable;
  15168. END Test.
  15169. negative: array of long real to array of boolean assignment
  15170. MODULE Test;
  15171. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF BOOLEAN;
  15172. BEGIN result := variable;
  15173. END Test.
  15174. negative: array of set to array of boolean assignment
  15175. MODULE Test;
  15176. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF BOOLEAN;
  15177. BEGIN result := variable;
  15178. END Test.
  15179. negative: array of array to array of boolean assignment
  15180. MODULE Test;
  15181. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF BOOLEAN;
  15182. BEGIN result := variable;
  15183. END Test.
  15184. negative: array of record to array of boolean assignment
  15185. MODULE Test;
  15186. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF BOOLEAN;
  15187. BEGIN result := variable;
  15188. END Test.
  15189. negative: array of object to array of boolean assignment
  15190. MODULE Test;
  15191. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF BOOLEAN;
  15192. BEGIN result := variable;
  15193. END Test.
  15194. negative: array of pointer to array of boolean assignment
  15195. MODULE Test;
  15196. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF BOOLEAN;
  15197. BEGIN result := variable;
  15198. END Test.
  15199. negative: array of procedure to array of boolean assignment
  15200. MODULE Test;
  15201. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF BOOLEAN;
  15202. BEGIN result := variable;
  15203. END Test.
  15204. negative: array of boolean to array of character assignment
  15205. MODULE Test;
  15206. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF CHAR;
  15207. BEGIN result := variable;
  15208. END Test.
  15209. positive: array of character to array of character assignment
  15210. MODULE Test;
  15211. VAR variable, result: ARRAY 10 OF CHAR;
  15212. BEGIN result := variable;
  15213. END Test.
  15214. negative: array of character to temporary array of character assignment
  15215. MODULE Test;
  15216. VAR variable: ARRAY 10 OF CHAR; result: PROCEDURE (): ARRAY 10 OF CHAR;
  15217. BEGIN result () := variable;
  15218. END Test.
  15219. negative: array of character to longer array of character assignment
  15220. MODULE Test;
  15221. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 20 OF CHAR;
  15222. BEGIN result := variable;
  15223. END Test.
  15224. negative: array of character to shorter array of character assignment
  15225. MODULE Test;
  15226. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 5 OF CHAR;
  15227. BEGIN result := variable;
  15228. END Test.
  15229. negative: array of character to open array of character assignment
  15230. MODULE Test;
  15231. PROCEDURE Procedure (VAR result: ARRAY OF CHAR);
  15232. VAR variable: ARRAY 10 OF CHAR;
  15233. BEGIN result := variable;
  15234. END Procedure;
  15235. END Test.
  15236. positive: string to open array of character assignment
  15237. MODULE Test;
  15238. PROCEDURE Procedure (VAR result: ARRAY OF CHAR);
  15239. BEGIN result := "string";
  15240. END Procedure;
  15241. END Test.
  15242. negative: open array of character to array of character assignment
  15243. MODULE Test;
  15244. PROCEDURE Procedure (VAR variable: ARRAY OF CHAR);
  15245. VAR result: ARRAY 10 OF CHAR;
  15246. BEGIN result := variable;
  15247. END Procedure;
  15248. END Test.
  15249. negative: array of character to dereferenced open array of character assignment
  15250. MODULE Test;
  15251. VAR variable: ARRAY 10 OF CHAR; result: POINTER TO ARRAY OF CHAR;
  15252. BEGIN result^ := variable;
  15253. END Test.
  15254. positive: string to dereferenced open array of character assignment
  15255. MODULE Test;
  15256. VAR result: POINTER TO ARRAY OF CHAR;
  15257. BEGIN result^ := "string";
  15258. END Test.
  15259. negative: array of short integer to array of character assignment
  15260. MODULE Test;
  15261. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF CHAR;
  15262. BEGIN result := variable;
  15263. END Test.
  15264. negative: array of integer to array of character assignment
  15265. MODULE Test;
  15266. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF CHAR;
  15267. BEGIN result := variable;
  15268. END Test.
  15269. negative: array of long integer to array of character assignment
  15270. MODULE Test;
  15271. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF CHAR;
  15272. BEGIN result := variable;
  15273. END Test.
  15274. negative: array of huge integer to array of character assignment
  15275. MODULE Test;
  15276. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF CHAR;
  15277. BEGIN result := variable;
  15278. END Test.
  15279. negative: array of real to array of character assignment
  15280. MODULE Test;
  15281. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF CHAR;
  15282. BEGIN result := variable;
  15283. END Test.
  15284. negative: array of long real to array of character assignment
  15285. MODULE Test;
  15286. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF CHAR;
  15287. BEGIN result := variable;
  15288. END Test.
  15289. negative: array of set to array of character assignment
  15290. MODULE Test;
  15291. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF CHAR;
  15292. BEGIN result := variable;
  15293. END Test.
  15294. negative: array of array to array of character assignment
  15295. MODULE Test;
  15296. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF CHAR;
  15297. BEGIN result := variable;
  15298. END Test.
  15299. negative: array of record to array of character assignment
  15300. MODULE Test;
  15301. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF CHAR;
  15302. BEGIN result := variable;
  15303. END Test.
  15304. negative: array of object to array of character assignment
  15305. MODULE Test;
  15306. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF CHAR;
  15307. BEGIN result := variable;
  15308. END Test.
  15309. negative: array of pointer to array of character assignment
  15310. MODULE Test;
  15311. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF CHAR;
  15312. BEGIN result := variable;
  15313. END Test.
  15314. negative: array of procedure to array of character assignment
  15315. MODULE Test;
  15316. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF CHAR;
  15317. BEGIN result := variable;
  15318. END Test.
  15319. negative: array of boolean to array of short integer assignment
  15320. MODULE Test;
  15321. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF SHORTINT;
  15322. BEGIN result := variable;
  15323. END Test.
  15324. negative: array of character to array of short integer assignment
  15325. MODULE Test;
  15326. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF SHORTINT;
  15327. BEGIN result := variable;
  15328. END Test.
  15329. positive: array of short integer to array of short integer assignment
  15330. MODULE Test;
  15331. VAR variable, result: ARRAY 10 OF SHORTINT;
  15332. BEGIN result := variable;
  15333. END Test.
  15334. negative: array of short integer to temporary array of short integer assignment
  15335. MODULE Test;
  15336. VAR variable: ARRAY 10 OF SHORTINT; result: PROCEDURE (): ARRAY 10 OF SHORTINT;
  15337. BEGIN result () := variable;
  15338. END Test.
  15339. negative: array of short integer to longer array of short integer assignment
  15340. MODULE Test;
  15341. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 20 OF SHORTINT;
  15342. BEGIN result := variable;
  15343. END Test.
  15344. negative: array of short integer to shorter array of short integer assignment
  15345. MODULE Test;
  15346. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 5 OF SHORTINT;
  15347. BEGIN result := variable;
  15348. END Test.
  15349. negative: array of short integer to open array of short integer assignment
  15350. MODULE Test;
  15351. PROCEDURE Procedure (VAR result: ARRAY OF SHORTINT);
  15352. VAR variable: ARRAY 10 OF SHORTINT;
  15353. BEGIN result := variable;
  15354. END Procedure;
  15355. END Test.
  15356. negative: open array of short integer to array of short integer assignment
  15357. MODULE Test;
  15358. PROCEDURE Procedure (VAR variable: ARRAY OF SHORTINT);
  15359. VAR result: ARRAY 10 OF SHORTINT;
  15360. BEGIN result := variable;
  15361. END Procedure;
  15362. END Test.
  15363. negative: array of short integer to dereferenced open array of short integer assignment
  15364. MODULE Test;
  15365. VAR variable: ARRAY 10 OF SHORTINT; result: POINTER TO ARRAY OF SHORTINT;
  15366. BEGIN result^ := variable;
  15367. END Test.
  15368. negative: array of integer to array of short integer assignment
  15369. MODULE Test;
  15370. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF SHORTINT;
  15371. BEGIN result := variable;
  15372. END Test.
  15373. negative: array of long integer to array of short integer assignment
  15374. MODULE Test;
  15375. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF SHORTINT;
  15376. BEGIN result := variable;
  15377. END Test.
  15378. negative: array of huge integer to array of short integer assignment
  15379. MODULE Test;
  15380. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF SHORTINT;
  15381. BEGIN result := variable;
  15382. END Test.
  15383. negative: array of real to array of short integer assignment
  15384. MODULE Test;
  15385. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF SHORTINT;
  15386. BEGIN result := variable;
  15387. END Test.
  15388. negative: array of long real to array of short integer assignment
  15389. MODULE Test;
  15390. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF SHORTINT;
  15391. BEGIN result := variable;
  15392. END Test.
  15393. negative: array of set to array of short integer assignment
  15394. MODULE Test;
  15395. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF SHORTINT;
  15396. BEGIN result := variable;
  15397. END Test.
  15398. negative: array of array to array of short integer assignment
  15399. MODULE Test;
  15400. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF SHORTINT;
  15401. BEGIN result := variable;
  15402. END Test.
  15403. negative: array of record to array of short integer assignment
  15404. MODULE Test;
  15405. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF SHORTINT;
  15406. BEGIN result := variable;
  15407. END Test.
  15408. negative: array of object to array of short integer assignment
  15409. MODULE Test;
  15410. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF SHORTINT;
  15411. BEGIN result := variable;
  15412. END Test.
  15413. negative: array of pointer to array of short integer assignment
  15414. MODULE Test;
  15415. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF SHORTINT;
  15416. BEGIN result := variable;
  15417. END Test.
  15418. negative: array of procedure to array of short integer assignment
  15419. MODULE Test;
  15420. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF SHORTINT;
  15421. BEGIN result := variable;
  15422. END Test.
  15423. negative: array of boolean to array of integer assignment
  15424. MODULE Test;
  15425. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF INTEGER;
  15426. BEGIN result := variable;
  15427. END Test.
  15428. negative: array of character to array of integer assignment
  15429. MODULE Test;
  15430. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF INTEGER;
  15431. BEGIN result := variable;
  15432. END Test.
  15433. negative: array of short integer to array of integer assignment
  15434. MODULE Test;
  15435. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF INTEGER;
  15436. BEGIN result := variable;
  15437. END Test.
  15438. positive: array of integer to array of integer assignment
  15439. MODULE Test;
  15440. VAR variable, result: ARRAY 10 OF INTEGER;
  15441. BEGIN result := variable;
  15442. END Test.
  15443. negative: array of integer to temporary array of integer assignment
  15444. MODULE Test;
  15445. VAR variable: ARRAY 10 OF INTEGER; result: PROCEDURE (): ARRAY 10 OF INTEGER;
  15446. BEGIN result () := variable;
  15447. END Test.
  15448. negative: array of integer to longer array of integer assignment
  15449. MODULE Test;
  15450. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 20 OF INTEGER;
  15451. BEGIN result := variable;
  15452. END Test.
  15453. negative: array of integer to shorter array of integer assignment
  15454. MODULE Test;
  15455. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 5 OF INTEGER;
  15456. BEGIN result := variable;
  15457. END Test.
  15458. negative: array of integer to open array of integer assignment
  15459. MODULE Test;
  15460. PROCEDURE Procedure (VAR result: ARRAY OF INTEGER);
  15461. VAR variable: ARRAY 10 OF INTEGER;
  15462. BEGIN result := variable;
  15463. END Procedure;
  15464. END Test.
  15465. negative: open array of integer to array of integer assignment
  15466. MODULE Test;
  15467. PROCEDURE Procedure (VAR variable: ARRAY OF INTEGER);
  15468. VAR result: ARRAY 10 OF INTEGER;
  15469. BEGIN result := variable;
  15470. END Procedure;
  15471. END Test.
  15472. negative: array of integer to dereferenced open array of integer assignment
  15473. MODULE Test;
  15474. VAR variable: ARRAY 10 OF INTEGER; result: POINTER TO ARRAY OF INTEGER;
  15475. BEGIN result^ := variable;
  15476. END Test.
  15477. negative: array of long integer to array of integer assignment
  15478. MODULE Test;
  15479. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF INTEGER;
  15480. BEGIN result := variable;
  15481. END Test.
  15482. negative: array of huge integer to array of integer assignment
  15483. MODULE Test;
  15484. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF INTEGER;
  15485. BEGIN result := variable;
  15486. END Test.
  15487. negative: array of real to array of integer assignment
  15488. MODULE Test;
  15489. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF INTEGER;
  15490. BEGIN result := variable;
  15491. END Test.
  15492. negative: array of long real to array of integer assignment
  15493. MODULE Test;
  15494. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF INTEGER;
  15495. BEGIN result := variable;
  15496. END Test.
  15497. negative: array of set to array of integer assignment
  15498. MODULE Test;
  15499. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF INTEGER;
  15500. BEGIN result := variable;
  15501. END Test.
  15502. negative: array of array to array of integer assignment
  15503. MODULE Test;
  15504. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF INTEGER;
  15505. BEGIN result := variable;
  15506. END Test.
  15507. negative: array of record to array of integer assignment
  15508. MODULE Test;
  15509. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF INTEGER;
  15510. BEGIN result := variable;
  15511. END Test.
  15512. negative: array of object to array of integer assignment
  15513. MODULE Test;
  15514. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF INTEGER;
  15515. BEGIN result := variable;
  15516. END Test.
  15517. negative: array of pointer to array of integer assignment
  15518. MODULE Test;
  15519. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF INTEGER;
  15520. BEGIN result := variable;
  15521. END Test.
  15522. negative: array of procedure to array of integer assignment
  15523. MODULE Test;
  15524. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF INTEGER;
  15525. BEGIN result := variable;
  15526. END Test.
  15527. negative: array of boolean to array of long integer assignment
  15528. MODULE Test;
  15529. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF LONGINT;
  15530. BEGIN result := variable;
  15531. END Test.
  15532. negative: array of character to array of long integer assignment
  15533. MODULE Test;
  15534. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF LONGINT;
  15535. BEGIN result := variable;
  15536. END Test.
  15537. negative: array of short integer to array of long integer assignment
  15538. MODULE Test;
  15539. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF LONGINT;
  15540. BEGIN result := variable;
  15541. END Test.
  15542. negative: array of integer to array of long integer assignment
  15543. MODULE Test;
  15544. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF LONGINT;
  15545. BEGIN result := variable;
  15546. END Test.
  15547. positive: array of long integer to array of long integer assignment
  15548. MODULE Test;
  15549. VAR variable, result: ARRAY 10 OF LONGINT;
  15550. BEGIN result := variable;
  15551. END Test.
  15552. negative: array of long integer to temporary array of long integer assignment
  15553. MODULE Test;
  15554. VAR variable: ARRAY 10 OF LONGINT; result: PROCEDURE (): ARRAY 10 OF LONGINT;
  15555. BEGIN result () := variable;
  15556. END Test.
  15557. negative: array of long integer to longer array of long integer assignment
  15558. MODULE Test;
  15559. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 20 OF LONGINT;
  15560. BEGIN result := variable;
  15561. END Test.
  15562. negative: array of long integer to shorter array of long integer assignment
  15563. MODULE Test;
  15564. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 5 OF LONGINT;
  15565. BEGIN result := variable;
  15566. END Test.
  15567. negative: array of long integer to open array of long integer assignment
  15568. MODULE Test;
  15569. PROCEDURE Procedure (VAR result: ARRAY OF LONGINT);
  15570. VAR variable: ARRAY 10 OF LONGINT;
  15571. BEGIN result := variable;
  15572. END Procedure;
  15573. END Test.
  15574. negative: open array of long integer to array of long integer assignment
  15575. MODULE Test;
  15576. PROCEDURE Procedure (VAR variable: ARRAY OF LONGINT);
  15577. VAR result: ARRAY 10 OF LONGINT;
  15578. BEGIN result := variable;
  15579. END Procedure;
  15580. END Test.
  15581. negative: array of long integer to dereferenced open array of long integer assignment
  15582. MODULE Test;
  15583. VAR variable: ARRAY 10 OF LONGINT; result: POINTER TO ARRAY OF LONGINT;
  15584. BEGIN result^ := variable;
  15585. END Test.
  15586. negative: array of huge integer to array of long integer assignment
  15587. MODULE Test;
  15588. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF LONGINT;
  15589. BEGIN result := variable;
  15590. END Test.
  15591. negative: array of real to array of long integer assignment
  15592. MODULE Test;
  15593. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF LONGINT;
  15594. BEGIN result := variable;
  15595. END Test.
  15596. negative: array of long real to array of long integer assignment
  15597. MODULE Test;
  15598. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF LONGINT;
  15599. BEGIN result := variable;
  15600. END Test.
  15601. negative: array of set to array of long integer assignment
  15602. MODULE Test;
  15603. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF LONGINT;
  15604. BEGIN result := variable;
  15605. END Test.
  15606. negative: array of array to array of long integer assignment
  15607. MODULE Test;
  15608. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF LONGINT;
  15609. BEGIN result := variable;
  15610. END Test.
  15611. negative: array of record to array of long integer assignment
  15612. MODULE Test;
  15613. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF LONGINT;
  15614. BEGIN result := variable;
  15615. END Test.
  15616. negative: array of object to array of long integer assignment
  15617. MODULE Test;
  15618. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF LONGINT;
  15619. BEGIN result := variable;
  15620. END Test.
  15621. negative: array of pointer to array of long integer assignment
  15622. MODULE Test;
  15623. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF LONGINT;
  15624. BEGIN result := variable;
  15625. END Test.
  15626. negative: array of procedure to array of long integer assignment
  15627. MODULE Test;
  15628. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF LONGINT;
  15629. BEGIN result := variable;
  15630. END Test.
  15631. negative: array of boolean to array of huge integer assignment
  15632. MODULE Test;
  15633. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF HUGEINT;
  15634. BEGIN result := variable;
  15635. END Test.
  15636. negative: array of character to array of huge integer assignment
  15637. MODULE Test;
  15638. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF HUGEINT;
  15639. BEGIN result := variable;
  15640. END Test.
  15641. negative: array of short integer to array of huge integer assignment
  15642. MODULE Test;
  15643. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF HUGEINT;
  15644. BEGIN result := variable;
  15645. END Test.
  15646. negative: array of integer to array of huge integer assignment
  15647. MODULE Test;
  15648. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF HUGEINT;
  15649. BEGIN result := variable;
  15650. END Test.
  15651. negative: array of long integer to array of huge integer assignment
  15652. MODULE Test;
  15653. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF HUGEINT;
  15654. BEGIN result := variable;
  15655. END Test.
  15656. positive: array of huge integer to array of huge integer assignment
  15657. MODULE Test;
  15658. VAR variable, result: ARRAY 10 OF HUGEINT;
  15659. BEGIN result := variable;
  15660. END Test.
  15661. negative: array of huge integer to temporary array of huge integer assignment
  15662. MODULE Test;
  15663. VAR variable: ARRAY 10 OF HUGEINT; result: PROCEDURE (): ARRAY 10 OF HUGEINT;
  15664. BEGIN result () := variable;
  15665. END Test.
  15666. negative: array of huge integer to longer array of huge integer assignment
  15667. MODULE Test;
  15668. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 20 OF HUGEINT;
  15669. BEGIN result := variable;
  15670. END Test.
  15671. negative: array of huge integer to shorter array of huge integer assignment
  15672. MODULE Test;
  15673. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 5 OF HUGEINT;
  15674. BEGIN result := variable;
  15675. END Test.
  15676. negative: array of huge integer to open array of huge integer assignment
  15677. MODULE Test;
  15678. PROCEDURE Procedure (VAR result: ARRAY OF HUGEINT);
  15679. VAR variable: ARRAY 10 OF HUGEINT;
  15680. BEGIN result := variable;
  15681. END Procedure;
  15682. END Test.
  15683. negative: open array of huge integer to array of huge integer assignment
  15684. MODULE Test;
  15685. PROCEDURE Procedure (VAR variable: ARRAY OF HUGEINT);
  15686. VAR result: ARRAY 10 OF HUGEINT;
  15687. BEGIN result := variable;
  15688. END Procedure;
  15689. END Test.
  15690. negative: array of huge integer to dereferenced open array of huge integer assignment
  15691. MODULE Test;
  15692. VAR variable: ARRAY 10 OF HUGEINT; result: POINTER TO ARRAY OF HUGEINT;
  15693. BEGIN result^ := variable;
  15694. END Test.
  15695. negative: array of real to array of huge integer assignment
  15696. MODULE Test;
  15697. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF HUGEINT;
  15698. BEGIN result := variable;
  15699. END Test.
  15700. negative: array of long real to array of huge integer assignment
  15701. MODULE Test;
  15702. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF HUGEINT;
  15703. BEGIN result := variable;
  15704. END Test.
  15705. negative: array of set to array of huge integer assignment
  15706. MODULE Test;
  15707. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF HUGEINT;
  15708. BEGIN result := variable;
  15709. END Test.
  15710. negative: array of array to array of huge integer assignment
  15711. MODULE Test;
  15712. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF HUGEINT;
  15713. BEGIN result := variable;
  15714. END Test.
  15715. negative: array of record to array of huge integer assignment
  15716. MODULE Test;
  15717. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF HUGEINT;
  15718. BEGIN result := variable;
  15719. END Test.
  15720. negative: array of object to array of huge integer assignment
  15721. MODULE Test;
  15722. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF HUGEINT;
  15723. BEGIN result := variable;
  15724. END Test.
  15725. negative: array of pointer to array of huge integer assignment
  15726. MODULE Test;
  15727. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF HUGEINT;
  15728. BEGIN result := variable;
  15729. END Test.
  15730. negative: array of procedure to array of huge integer assignment
  15731. MODULE Test;
  15732. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF HUGEINT;
  15733. BEGIN result := variable;
  15734. END Test.
  15735. negative: array of boolean to array of real assignment
  15736. MODULE Test;
  15737. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF REAL;
  15738. BEGIN result := variable;
  15739. END Test.
  15740. negative: array of character to array of real assignment
  15741. MODULE Test;
  15742. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF REAL;
  15743. BEGIN result := variable;
  15744. END Test.
  15745. negative: array of short integer to array of real assignment
  15746. MODULE Test;
  15747. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF REAL;
  15748. BEGIN result := variable;
  15749. END Test.
  15750. negative: array of integer to array of real assignment
  15751. MODULE Test;
  15752. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF REAL;
  15753. BEGIN result := variable;
  15754. END Test.
  15755. negative: array of long integer to array of real assignment
  15756. MODULE Test;
  15757. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF REAL;
  15758. BEGIN result := variable;
  15759. END Test.
  15760. negative: array of huge integer to array of real assignment
  15761. MODULE Test;
  15762. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF REAL;
  15763. BEGIN result := variable;
  15764. END Test.
  15765. positive: array of real to array of real assignment
  15766. MODULE Test;
  15767. VAR variable, result: ARRAY 10 OF REAL;
  15768. BEGIN result := variable;
  15769. END Test.
  15770. negative: array of real to temporary array of real assignment
  15771. MODULE Test;
  15772. VAR variable: ARRAY 10 OF SHORTINT; result: PROCEDURE (): ARRAY 10 OF SHORTINT;
  15773. BEGIN result () := variable;
  15774. END Test.
  15775. negative: array of real to longer array of real assignment
  15776. MODULE Test;
  15777. VAR variable: ARRAY 10 OF REAL; result: ARRAY 20 OF REAL;
  15778. BEGIN result := variable;
  15779. END Test.
  15780. negative: array of real to shorter array of real assignment
  15781. MODULE Test;
  15782. VAR variable: ARRAY 10 OF REAL; result: ARRAY 5 OF REAL;
  15783. BEGIN result := variable;
  15784. END Test.
  15785. negative: array of real to open array of real assignment
  15786. MODULE Test;
  15787. PROCEDURE Procedure (VAR result: ARRAY OF REAL);
  15788. VAR variable: ARRAY 10 OF REAL;
  15789. BEGIN result := variable;
  15790. END Procedure;
  15791. END Test.
  15792. negative: open array of real to array of real assignment
  15793. MODULE Test;
  15794. PROCEDURE Procedure (VAR variable: ARRAY OF REAL);
  15795. VAR result: ARRAY 10 OF REAL;
  15796. BEGIN result := variable;
  15797. END Procedure;
  15798. END Test.
  15799. negative: array of real to dereferenced open array of real assignment
  15800. MODULE Test;
  15801. VAR variable: ARRAY 10 OF REAL; result: POINTER TO ARRAY OF REAL;
  15802. BEGIN result^ := variable;
  15803. END Test.
  15804. negative: array of long real to array of real assignment
  15805. MODULE Test;
  15806. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF REAL;
  15807. BEGIN result := variable;
  15808. END Test.
  15809. negative: array of set to array of real assignment
  15810. MODULE Test;
  15811. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF REAL;
  15812. BEGIN result := variable;
  15813. END Test.
  15814. negative: array of array to array of real assignment
  15815. MODULE Test;
  15816. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF REAL;
  15817. BEGIN result := variable;
  15818. END Test.
  15819. negative: array of record to array of real assignment
  15820. MODULE Test;
  15821. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF REAL;
  15822. BEGIN result := variable;
  15823. END Test.
  15824. negative: array of object to array of real assignment
  15825. MODULE Test;
  15826. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF REAL;
  15827. BEGIN result := variable;
  15828. END Test.
  15829. negative: array of pointer to array of real assignment
  15830. MODULE Test;
  15831. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF REAL;
  15832. BEGIN result := variable;
  15833. END Test.
  15834. negative: array of procedure to array of real assignment
  15835. MODULE Test;
  15836. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF REAL;
  15837. BEGIN result := variable;
  15838. END Test.
  15839. negative: array of boolean to array of long real assignment
  15840. MODULE Test;
  15841. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF LONGREAL;
  15842. BEGIN result := variable;
  15843. END Test.
  15844. negative: array of character to array of long real assignment
  15845. MODULE Test;
  15846. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF LONGREAL;
  15847. BEGIN result := variable;
  15848. END Test.
  15849. negative: array of short integer to array of long real assignment
  15850. MODULE Test;
  15851. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF LONGREAL;
  15852. BEGIN result := variable;
  15853. END Test.
  15854. negative: array of integer to array of long real assignment
  15855. MODULE Test;
  15856. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF LONGREAL;
  15857. BEGIN result := variable;
  15858. END Test.
  15859. negative: array of long integer to array of long real assignment
  15860. MODULE Test;
  15861. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF LONGREAL;
  15862. BEGIN result := variable;
  15863. END Test.
  15864. negative: array of huge integer to array of long real assignment
  15865. MODULE Test;
  15866. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF LONGREAL;
  15867. BEGIN result := variable;
  15868. END Test.
  15869. negative: array of real to array of long real assignment
  15870. MODULE Test;
  15871. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF LONGREAL;
  15872. BEGIN result := variable;
  15873. END Test.
  15874. positive: array of long real to array of long real assignment
  15875. MODULE Test;
  15876. VAR variable, result: ARRAY 10 OF LONGREAL;
  15877. BEGIN result := variable;
  15878. END Test.
  15879. negative: array of long real to temporary array of long real assignment
  15880. MODULE Test;
  15881. VAR variable: ARRAY 10 OF LONGREAL; result: PROCEDURE (): ARRAY 10 OF LONGREAL;
  15882. BEGIN result () := variable;
  15883. END Test.
  15884. negative: array of long real to longer array of long real assignment
  15885. MODULE Test;
  15886. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 20 OF LONGREAL;
  15887. BEGIN result := variable;
  15888. END Test.
  15889. negative: array of long real to shorter array of long real assignment
  15890. MODULE Test;
  15891. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 5 OF LONGREAL;
  15892. BEGIN result := variable;
  15893. END Test.
  15894. negative: array of long real to open array of long real assignment
  15895. MODULE Test;
  15896. PROCEDURE Procedure (VAR result: ARRAY OF LONGREAL);
  15897. VAR variable: ARRAY 10 OF LONGREAL;
  15898. BEGIN result := variable;
  15899. END Procedure;
  15900. END Test.
  15901. negative: open array of long real to array of long real assignment
  15902. MODULE Test;
  15903. PROCEDURE Procedure (VAR variable: ARRAY OF LONGREAL);
  15904. VAR result: ARRAY 10 OF LONGREAL;
  15905. BEGIN result := variable;
  15906. END Procedure;
  15907. END Test.
  15908. negative: array of long real to dereferenced open array of long real assignment
  15909. MODULE Test;
  15910. VAR variable: ARRAY 10 OF LONGREAL; result: POINTER TO ARRAY OF LONGREAL;
  15911. BEGIN result^ := variable;
  15912. END Test.
  15913. negative: array of set to array of long real assignment
  15914. MODULE Test;
  15915. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF LONGREAL;
  15916. BEGIN result := variable;
  15917. END Test.
  15918. negative: array of array to array of long real assignment
  15919. MODULE Test;
  15920. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF LONGREAL;
  15921. BEGIN result := variable;
  15922. END Test.
  15923. negative: array of record to array of long real assignment
  15924. MODULE Test;
  15925. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF LONGREAL;
  15926. BEGIN result := variable;
  15927. END Test.
  15928. negative: array of object to array of long real assignment
  15929. MODULE Test;
  15930. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF LONGREAL;
  15931. BEGIN result := variable;
  15932. END Test.
  15933. negative: array of pointer to array of long real assignment
  15934. MODULE Test;
  15935. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF LONGREAL;
  15936. BEGIN result := variable;
  15937. END Test.
  15938. negative: array of procedure to array of long real assignment
  15939. MODULE Test;
  15940. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF LONGREAL;
  15941. BEGIN result := variable;
  15942. END Test.
  15943. negative: array of boolean to array of set assignment
  15944. MODULE Test;
  15945. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF SET;
  15946. BEGIN result := variable;
  15947. END Test.
  15948. negative: array of character to array of set assignment
  15949. MODULE Test;
  15950. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF SET;
  15951. BEGIN result := variable;
  15952. END Test.
  15953. negative: array of short integer to array of set assignment
  15954. MODULE Test;
  15955. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF SET;
  15956. BEGIN result := variable;
  15957. END Test.
  15958. negative: array of integer to array of set assignment
  15959. MODULE Test;
  15960. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF SET;
  15961. BEGIN result := variable;
  15962. END Test.
  15963. negative: array of long integer to array of set assignment
  15964. MODULE Test;
  15965. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF SET;
  15966. BEGIN result := variable;
  15967. END Test.
  15968. negative: array of huge integer to array of set assignment
  15969. MODULE Test;
  15970. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF SET;
  15971. BEGIN result := variable;
  15972. END Test.
  15973. negative: array of real to array of set assignment
  15974. MODULE Test;
  15975. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF SET;
  15976. BEGIN result := variable;
  15977. END Test.
  15978. negative: array of long real to array of set assignment
  15979. MODULE Test;
  15980. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF SET;
  15981. BEGIN result := variable;
  15982. END Test.
  15983. positive: array of set to array of set assignment
  15984. MODULE Test;
  15985. VAR variable, result: ARRAY 10 OF SET;
  15986. BEGIN result := variable;
  15987. END Test.
  15988. negative: array of set to longer array of set assignment
  15989. MODULE Test;
  15990. VAR variable: ARRAY 10 OF SET; result: ARRAY 20 OF SET;
  15991. BEGIN result := variable;
  15992. END Test.
  15993. negative: array of set to shorter array of set assignment
  15994. MODULE Test;
  15995. VAR variable: ARRAY 10 OF SET; result: ARRAY 5 OF SET;
  15996. BEGIN result := variable;
  15997. END Test.
  15998. negative: array of set to open array of set assignment
  15999. MODULE Test;
  16000. PROCEDURE Procedure (VAR result: ARRAY OF SET);
  16001. VAR variable: ARRAY 10 OF SET;
  16002. BEGIN result := variable;
  16003. END Procedure;
  16004. END Test.
  16005. negative: open array of set to array of set assignment
  16006. MODULE Test;
  16007. PROCEDURE Procedure (VAR variable: ARRAY OF SET);
  16008. VAR result: ARRAY 10 OF SET;
  16009. BEGIN result := variable;
  16010. END Procedure;
  16011. END Test.
  16012. negative: array of set to dereferenced open array of set assignment
  16013. MODULE Test;
  16014. VAR variable: ARRAY 10 OF SET; result: POINTER TO ARRAY OF SET;
  16015. BEGIN result^ := variable;
  16016. END Test.
  16017. negative: array of array to array of set assignment
  16018. MODULE Test;
  16019. VAR variable: ARRAY 10 OF ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF SET;
  16020. BEGIN result := variable;
  16021. END Test.
  16022. negative: array of record to array of set assignment
  16023. MODULE Test;
  16024. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF SET;
  16025. BEGIN result := variable;
  16026. END Test.
  16027. negative: array of object to array of set assignment
  16028. MODULE Test;
  16029. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF SET;
  16030. BEGIN result := variable;
  16031. END Test.
  16032. negative: array of pointer to array of set assignment
  16033. MODULE Test;
  16034. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF SET;
  16035. BEGIN result := variable;
  16036. END Test.
  16037. negative: array of procedure to array of set assignment
  16038. MODULE Test;
  16039. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF SET;
  16040. BEGIN result := variable;
  16041. END Test.
  16042. negative: array of boolean to array of array assignment
  16043. MODULE Test;
  16044. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF ARRAY 10 OF SET;
  16045. BEGIN result := variable;
  16046. END Test.
  16047. negative: array of character to array of array assignment
  16048. MODULE Test;
  16049. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF ARRAY 10 OF SET;
  16050. BEGIN result := variable;
  16051. END Test.
  16052. negative: array of short integer to array of array assignment
  16053. MODULE Test;
  16054. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF ARRAY 10 OF SET;
  16055. BEGIN result := variable;
  16056. END Test.
  16057. negative: array of integer to array of array assignment
  16058. MODULE Test;
  16059. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF ARRAY 10 OF SET;
  16060. BEGIN result := variable;
  16061. END Test.
  16062. negative: array of long integer to array of array assignment
  16063. MODULE Test;
  16064. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF ARRAY 10 OF SET;
  16065. BEGIN result := variable;
  16066. END Test.
  16067. negative: array of huge integer to array of array assignment
  16068. MODULE Test;
  16069. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF ARRAY 10 OF SET;
  16070. BEGIN result := variable;
  16071. END Test.
  16072. negative: array of real to array of array assignment
  16073. MODULE Test;
  16074. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF ARRAY 10 OF SET;
  16075. BEGIN result := variable;
  16076. END Test.
  16077. negative: array of long real to array of array assignment
  16078. MODULE Test;
  16079. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF ARRAY 10 OF SET;
  16080. BEGIN result := variable;
  16081. END Test.
  16082. negative: array of set of array assignment
  16083. MODULE Test;
  16084. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF ARRAY 10 OF SET;
  16085. BEGIN result := variable;
  16086. END Test.
  16087. positive: array of array to array of array assignment
  16088. MODULE Test;
  16089. VAR variable, result: ARRAY 10 OF ARRAY 10 OF SET;
  16090. BEGIN result := variable;
  16091. END Test.
  16092. negative: array of array to temporary array of array assignment
  16093. MODULE Test;
  16094. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: PROCEDURE (): ARRAY 10 OF ARRAY 10 OF SET;
  16095. BEGIN result () := variable;
  16096. END Test.
  16097. negative: array of array to longer array of array assignment
  16098. MODULE Test;
  16099. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 20 OF ARRAY 10 OF SET;
  16100. BEGIN result := variable;
  16101. END Test.
  16102. negative: array of array to shorter array of array assignment
  16103. MODULE Test;
  16104. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 5 OF ARRAY 10 OF SET;
  16105. BEGIN result := variable;
  16106. END Test.
  16107. negative: array of array to open array of array assignment
  16108. MODULE Test;
  16109. PROCEDURE Procedure (VAR result: ARRAY OF ARRAY 10 OF SET);
  16110. VAR variable: ARRAY 10 OF ARRAY 10 OF SET;
  16111. BEGIN result := variable;
  16112. END Procedure;
  16113. END Test.
  16114. negative: open array of array to array of array assignment
  16115. MODULE Test;
  16116. PROCEDURE Procedure (VAR variable: ARRAY OF ARRAY 10 OF SET);
  16117. VAR result: ARRAY 10 OF ARRAY 10 OF SET;
  16118. BEGIN result := variable;
  16119. END Procedure;
  16120. END Test.
  16121. negative: array of array to dereferenced open array of array assignment
  16122. MODULE Test;
  16123. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: POINTER TO ARRAY OF ARRAY 10 OF SET;
  16124. BEGIN result^ := variable;
  16125. END Test.
  16126. negative: array of record to array of array assignment
  16127. MODULE Test;
  16128. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF ARRAY 10 OF SET;
  16129. BEGIN result := variable;
  16130. END Test.
  16131. negative: array of object to array of array assignment
  16132. MODULE Test;
  16133. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF ARRAY 10 OF SET;
  16134. BEGIN result := variable;
  16135. END Test.
  16136. negative: array of pointer to array of array assignment
  16137. MODULE Test;
  16138. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF ARRAY 10 OF SET;
  16139. BEGIN result := variable;
  16140. END Test.
  16141. negative: array of procedure to array of array assignment
  16142. MODULE Test;
  16143. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF ARRAY 10 OF SET;
  16144. BEGIN result := variable;
  16145. END Test.
  16146. negative: array of boolean to array of record assignment
  16147. MODULE Test;
  16148. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF RECORD END;
  16149. BEGIN result := variable;
  16150. END Test.
  16151. negative: array of character to array of record assignment
  16152. MODULE Test;
  16153. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF RECORD END;
  16154. BEGIN result := variable;
  16155. END Test.
  16156. negative: array of short integer to array of record assignment
  16157. MODULE Test;
  16158. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF RECORD END;
  16159. BEGIN result := variable;
  16160. END Test.
  16161. negative: array of integer to array of record assignment
  16162. MODULE Test;
  16163. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF RECORD END;
  16164. BEGIN result := variable;
  16165. END Test.
  16166. negative: array of long integer to array of record assignment
  16167. MODULE Test;
  16168. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF RECORD END;
  16169. BEGIN result := variable;
  16170. END Test.
  16171. negative: array of huge integer to array of record assignment
  16172. MODULE Test;
  16173. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF RECORD END;
  16174. BEGIN result := variable;
  16175. END Test.
  16176. negative: array of real to array of record assignment
  16177. MODULE Test;
  16178. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF RECORD END;
  16179. BEGIN result := variable;
  16180. END Test.
  16181. negative: array of long real to array of record assignment
  16182. MODULE Test;
  16183. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF RECORD END;
  16184. BEGIN result := variable;
  16185. END Test.
  16186. negative: array of set to array of record assignment
  16187. MODULE Test;
  16188. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF RECORD END;
  16189. BEGIN result := variable;
  16190. END Test.
  16191. negative: array of array to array of record assignment
  16192. MODULE Test;
  16193. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF RECORD END;
  16194. BEGIN result := variable;
  16195. END Test.
  16196. positive: array of record to array of record assignment
  16197. MODULE Test;
  16198. VAR variable, result: ARRAY 10 OF RECORD END;
  16199. BEGIN result := variable;
  16200. END Test.
  16201. negative: array of record to temporary array of record assignment
  16202. MODULE Test;
  16203. TYPE Record = RECORD END;
  16204. VAR variable: ARRAY 10 OF Record; result: PROCEDURE (): ARRAY 10 OF Record;
  16205. BEGIN result () := variable;
  16206. END Test.
  16207. negative: array of record to longer array of record assignment
  16208. MODULE Test;
  16209. TYPE Record = RECORD END;
  16210. VAR variable: ARRAY 10 OF Record; result: ARRAY 20 OF Record;
  16211. BEGIN result := variable;
  16212. END Test.
  16213. negative: array of record to shorter array of record assignment
  16214. MODULE Test;
  16215. TYPE Record = RECORD END;
  16216. VAR variable: ARRAY 10 OF Record; result: ARRAY 5 OF Record;
  16217. BEGIN result := variable;
  16218. END Test.
  16219. negative: array of record to open array of record assignment
  16220. MODULE Test;
  16221. TYPE Record = RECORD END;
  16222. PROCEDURE Procedure (VAR result: ARRAY OF Record);
  16223. VAR variable: ARRAY 10 OF Record;
  16224. BEGIN result := variable;
  16225. END Procedure;
  16226. END Test.
  16227. negative: open array of record to array of record assignment
  16228. MODULE Test;
  16229. TYPE Record = RECORD END;
  16230. PROCEDURE Procedure (VAR variable: ARRAY OF Record);
  16231. VAR result: ARRAY 10 OF Record;
  16232. BEGIN result := variable;
  16233. END Procedure;
  16234. END Test.
  16235. negative: array of record to dereferenced open array of record assignment
  16236. MODULE Test;
  16237. TYPE Record = RECORD END;
  16238. VAR variable: ARRAY 10 OF Record; result: POINTER TO ARRAY OF Record;
  16239. BEGIN result^ := variable;
  16240. END Test.
  16241. negative: array of object to array of record assignment
  16242. MODULE Test;
  16243. VAR variable: ARRAY 10 OF OBJECT; result: ARRAY 10 OF RECORD END;
  16244. BEGIN result := variable;
  16245. END Test.
  16246. negative: array of pointer to array of record assignment
  16247. MODULE Test;
  16248. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF RECORD END;
  16249. BEGIN result := variable;
  16250. END Test.
  16251. negative: array of procedure to array of record assignment
  16252. MODULE Test;
  16253. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF RECORD END;
  16254. BEGIN result := variable;
  16255. END Test.
  16256. negative: array of boolean to array of object assignment
  16257. MODULE Test;
  16258. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF OBJECT END;
  16259. BEGIN result := variable;
  16260. END Test.
  16261. negative: array of character to array of object assignment
  16262. MODULE Test;
  16263. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF OBJECT END;
  16264. BEGIN result := variable;
  16265. END Test.
  16266. negative: array of short integer to array of object assignment
  16267. MODULE Test;
  16268. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF OBJECT END;
  16269. BEGIN result := variable;
  16270. END Test.
  16271. negative: array of integer to array of object assignment
  16272. MODULE Test;
  16273. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF OBJECT END;
  16274. BEGIN result := variable;
  16275. END Test.
  16276. negative: array of long integer to array of object assignment
  16277. MODULE Test;
  16278. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF OBJECT END;
  16279. BEGIN result := variable;
  16280. END Test.
  16281. negative: array of huge integer to array of object assignment
  16282. MODULE Test;
  16283. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF OBJECT END;
  16284. BEGIN result := variable;
  16285. END Test.
  16286. negative: array of real to array of object assignment
  16287. MODULE Test;
  16288. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF OBJECT END;
  16289. BEGIN result := variable;
  16290. END Test.
  16291. negative: array of long real to array of object assignment
  16292. MODULE Test;
  16293. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF OBJECT END;
  16294. BEGIN result := variable;
  16295. END Test.
  16296. negative: array of set to array of object assignment
  16297. MODULE Test;
  16298. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF OBJECT END;
  16299. BEGIN result := variable;
  16300. END Test.
  16301. negative: array of array to array of object assignment
  16302. MODULE Test;
  16303. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF OBJECT END;
  16304. BEGIN result := variable;
  16305. END Test.
  16306. negative: array of record to array of object assignment
  16307. MODULE Test;
  16308. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF OBJECT END;
  16309. BEGIN result := variable;
  16310. END Test.
  16311. positive: array of object to array of object assignment
  16312. MODULE Test;
  16313. VAR variable, result: ARRAY 10 OF OBJECT END;
  16314. BEGIN result := variable;
  16315. END Test.
  16316. negative: array of object to temporary array of object assignment
  16317. MODULE Test;
  16318. TYPE Object = OBJECT END Object;
  16319. VAR variable: ARRAY 10 OF Object; result: PROCEDURE (): ARRAY 10 OF Object;
  16320. BEGIN result () := variable;
  16321. END Test.
  16322. negative: array of object to longer array of object assignment
  16323. MODULE Test;
  16324. TYPE Object = OBJECT END Object;
  16325. VAR variable: ARRAY 10 OF Object; result: ARRAY 20 OF Object;
  16326. BEGIN result := variable;
  16327. END Test.
  16328. negative: array of object to shorter array of object assignment
  16329. MODULE Test;
  16330. TYPE Object = OBJECT END Object;
  16331. VAR variable: ARRAY 10 OF Object; result: ARRAY 5 OF Object;
  16332. BEGIN result := variable;
  16333. END Test.
  16334. negative: array of object to open array of object assignment
  16335. MODULE Test;
  16336. TYPE Object = OBJECT END Object;
  16337. PROCEDURE Procedure (VAR result: ARRAY OF Object);
  16338. VAR variable: ARRAY 10 OF Object;
  16339. BEGIN result := variable;
  16340. END Procedure;
  16341. END Test.
  16342. negative: open array of object to array of object assignment
  16343. MODULE Test;
  16344. TYPE Object = OBJECT END Object;
  16345. PROCEDURE Procedure (VAR variable: ARRAY OF Object);
  16346. VAR result: ARRAY 10 OF Object;
  16347. BEGIN result := variable;
  16348. END Procedure;
  16349. END Test.
  16350. negative: array of object to dereferenced open array of object assignment
  16351. MODULE Test;
  16352. TYPE Object = OBJECT END Object;
  16353. VAR variable: ARRAY 10 OF Object; result: POINTER TO ARRAY OF Object;
  16354. BEGIN result^ := variable;
  16355. END Test.
  16356. negative: array of pointer to array of object assignment
  16357. MODULE Test;
  16358. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF OBJECT END;
  16359. BEGIN result := variable;
  16360. END Test.
  16361. negative: array of procedure to array of object assignment
  16362. MODULE Test;
  16363. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF OBJECT END;
  16364. BEGIN result := variable;
  16365. END Test.
  16366. negative: array of boolean to array of pointer assignment
  16367. MODULE Test;
  16368. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF POINTER TO RECORD END;
  16369. BEGIN result := variable;
  16370. END Test.
  16371. negative: array of character to array of pointer assignment
  16372. MODULE Test;
  16373. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF POINTER TO RECORD END;
  16374. BEGIN result := variable;
  16375. END Test.
  16376. negative: array of short integer to array of pointer assignment
  16377. MODULE Test;
  16378. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF POINTER TO RECORD END;
  16379. BEGIN result := variable;
  16380. END Test.
  16381. negative: array of integer to array of pointer assignment
  16382. MODULE Test;
  16383. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF POINTER TO RECORD END;
  16384. BEGIN result := variable;
  16385. END Test.
  16386. negative: array of long integer to array of pointer assignment
  16387. MODULE Test;
  16388. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF POINTER TO RECORD END;
  16389. BEGIN result := variable;
  16390. END Test.
  16391. negative: array of huge integer to array of pointer assignment
  16392. MODULE Test;
  16393. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF POINTER TO RECORD END;
  16394. BEGIN result := variable;
  16395. END Test.
  16396. negative: array of real to array of pointer assignment
  16397. MODULE Test;
  16398. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF POINTER TO RECORD END;
  16399. BEGIN result := variable;
  16400. END Test.
  16401. negative: array of long real to array of pointer assignment
  16402. MODULE Test;
  16403. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF POINTER TO RECORD END;
  16404. BEGIN result := variable;
  16405. END Test.
  16406. negative: array of set to array of pointer assignment
  16407. MODULE Test;
  16408. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF POINTER TO RECORD END;
  16409. BEGIN result := variable;
  16410. END Test.
  16411. negative: array of array to array of pointer assignment
  16412. MODULE Test;
  16413. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF POINTER TO RECORD END;
  16414. BEGIN result := variable;
  16415. END Test.
  16416. negative: array of record to array of pointer assignment
  16417. MODULE Test;
  16418. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF POINTER TO RECORD END;
  16419. BEGIN result := variable;
  16420. END Test.
  16421. negative: array of object to array of pointer assignment
  16422. MODULE Test;
  16423. VAR variable: ARRAY 10 OF OBJECT END; result: ARRAY 10 OF POINTER TO RECORD END;
  16424. BEGIN result := variable;
  16425. END Test.
  16426. positive: array of pointer to array of pointer assignment
  16427. MODULE Test;
  16428. VAR variable, result: ARRAY 10 OF POINTER TO RECORD END;
  16429. BEGIN result := variable;
  16430. END Test.
  16431. negative: array of pointer to temporary array of pointer assignment
  16432. MODULE Test;
  16433. TYPE Record = RECORD END;
  16434. VAR variable: ARRAY 10 OF POINTER TO Record; result: PROCEDURE (): ARRAY 10 OF POINTER TO Record;
  16435. BEGIN result () := variable;
  16436. END Test.
  16437. negative: array of pointer to longer array of pointer assignment
  16438. MODULE Test;
  16439. TYPE Pointer = POINTER TO RECORD END;
  16440. VAR variable: ARRAY 10 OF Pointer; result: ARRAY 20 OF Pointer;
  16441. BEGIN result := variable;
  16442. END Test.
  16443. negative: array of pointer to shorter array of pointer assignment
  16444. MODULE Test;
  16445. TYPE Pointer = POINTER TO RECORD END;
  16446. VAR variable: ARRAY 10 OF Pointer; result: ARRAY 5 OF Pointer;
  16447. BEGIN result := variable;
  16448. END Test.
  16449. negative: array of pointer to open array of pointer assignment
  16450. MODULE Test;
  16451. TYPE Pointer = POINTER TO RECORD END;
  16452. PROCEDURE Procedure (VAR result: ARRAY OF Pointer);
  16453. VAR variable: ARRAY 10 OF Pointer;
  16454. BEGIN result := variable;
  16455. END Procedure;
  16456. END Test.
  16457. negative: open array of pointer to array of pointer assignment
  16458. MODULE Test;
  16459. TYPE Pointer = POINTER TO RECORD END;
  16460. PROCEDURE Procedure (VAR variable: ARRAY OF Pointer);
  16461. VAR result: ARRAY 10 OF Pointer;
  16462. BEGIN result := variable;
  16463. END Procedure;
  16464. END Test.
  16465. negative: array of pointer to dereferenced open array of pointer assignment
  16466. MODULE Test;
  16467. TYPE Pointer = POINTER TO RECORD END;
  16468. VAR variable: ARRAY 10 OF Pointer; result: POINTER TO ARRAY OF Pointer;
  16469. BEGIN result^ := variable;
  16470. END Test.
  16471. negative: array of procedure to array of pointer assignment
  16472. MODULE Test;
  16473. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 10 OF POINTER TO RECORD END;
  16474. BEGIN result := variable;
  16475. END Test.
  16476. negative: array of boolean to array of procedure assignment
  16477. MODULE Test;
  16478. VAR variable: ARRAY 10 OF BOOLEAN; result: ARRAY 10 OF PROCEDURE;
  16479. BEGIN result := variable;
  16480. END Test.
  16481. negative: array of character to array of procedure assignment
  16482. MODULE Test;
  16483. VAR variable: ARRAY 10 OF CHAR; result: ARRAY 10 OF PROCEDURE;
  16484. BEGIN result := variable;
  16485. END Test.
  16486. negative: array of short integer to array of procedure assignment
  16487. MODULE Test;
  16488. VAR variable: ARRAY 10 OF SHORTINT; result: ARRAY 10 OF PROCEDURE;
  16489. BEGIN result := variable;
  16490. END Test.
  16491. negative: array of integer to array of procedure assignment
  16492. MODULE Test;
  16493. VAR variable: ARRAY 10 OF INTEGER; result: ARRAY 10 OF PROCEDURE;
  16494. BEGIN result := variable;
  16495. END Test.
  16496. negative: array of long integer to array of procedure assignment
  16497. MODULE Test;
  16498. VAR variable: ARRAY 10 OF LONGINT; result: ARRAY 10 OF PROCEDURE;
  16499. BEGIN result := variable;
  16500. END Test.
  16501. negative: array of huge integer to array of procedure assignment
  16502. MODULE Test;
  16503. VAR variable: ARRAY 10 OF HUGEINT; result: ARRAY 10 OF PROCEDURE;
  16504. BEGIN result := variable;
  16505. END Test.
  16506. negative: array of real to array of procedure assignment
  16507. MODULE Test;
  16508. VAR variable: ARRAY 10 OF REAL; result: ARRAY 10 OF PROCEDURE;
  16509. BEGIN result := variable;
  16510. END Test.
  16511. negative: array of long real to array of procedure assignment
  16512. MODULE Test;
  16513. VAR variable: ARRAY 10 OF LONGREAL; result: ARRAY 10 OF PROCEDURE;
  16514. BEGIN result := variable;
  16515. END Test.
  16516. negative: array of set to array of procedure assignment
  16517. MODULE Test;
  16518. VAR variable: ARRAY 10 OF SET; result: ARRAY 10 OF PROCEDURE;
  16519. BEGIN result := variable;
  16520. END Test.
  16521. negative: array of array to array of procedure assignment
  16522. MODULE Test;
  16523. VAR variable: ARRAY 10 OF ARRAY 10 OF SET; result: ARRAY 10 OF PROCEDURE;
  16524. BEGIN result := variable;
  16525. END Test.
  16526. negative: array of record to array of procedure assignment
  16527. MODULE Test;
  16528. VAR variable: ARRAY 10 OF RECORD END; result: ARRAY 10 OF PROCEDURE;
  16529. BEGIN result := variable;
  16530. END Test.
  16531. negative: array of object to array of procedure assignment
  16532. MODULE Test;
  16533. VAR variable: ARRAY 10 OF OBJECT END; result: ARRAY 10 OF PROCEDURE;
  16534. BEGIN result := variable;
  16535. END Test.
  16536. negative: array of pointer to array of procedure assignment
  16537. MODULE Test;
  16538. VAR variable: ARRAY 10 OF POINTER TO RECORD END; result: ARRAY 10 OF PROCEDURE;
  16539. BEGIN result := variable;
  16540. END Test.
  16541. positive: array of procedure to array of procedure assignment
  16542. MODULE Test;
  16543. VAR variable, result: ARRAY 10 OF PROCEDURE;
  16544. BEGIN result := variable;
  16545. END Test.
  16546. negative: array of procedure to temporary array of procedure assignment
  16547. MODULE Test;
  16548. VAR variable: ARRAY 10 OF PROCEDURE; result: PROCEDURE (): ARRAY 10 OF PROCEDURE;
  16549. BEGIN result () := variable;
  16550. END Test.
  16551. negative: array of procedure to longer array of procedure assignment
  16552. MODULE Test;
  16553. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 20 OF PROCEDURE;
  16554. BEGIN result := variable;
  16555. END Test.
  16556. negative: array of procedure to shorter array of procedure assignment
  16557. MODULE Test;
  16558. VAR variable: ARRAY 10 OF PROCEDURE; result: ARRAY 5 OF PROCEDURE;
  16559. BEGIN result := variable;
  16560. END Test.
  16561. negative: array of procedure to open array of procedure assignment
  16562. MODULE Test;
  16563. PROCEDURE Procedure (VAR result: ARRAY OF PROCEDURE);
  16564. VAR variable: ARRAY 10 OF PROCEDURE;
  16565. BEGIN result := variable;
  16566. END Procedure;
  16567. END Test.
  16568. negative: open array of procedure to array of procedure assignment
  16569. MODULE Test;
  16570. PROCEDURE Procedure (VAR variable: ARRAY OF PROCEDURE);
  16571. VAR result: ARRAY 10 OF PROCEDURE;
  16572. BEGIN result := variable;
  16573. END Procedure;
  16574. END Test.
  16575. negative: array of procedure to dereferenced open array of procedure assignment
  16576. MODULE Test;
  16577. VAR variable: ARRAY 10 OF PROCEDURE; result: POINTER TO ARRAY OF PROCEDURE;
  16578. BEGIN result^ := variable;
  16579. END Test.
  16580. negative: record to array assignment
  16581. MODULE Test;
  16582. VAR variable: RECORD END; result: ARRAY 10 OF CHAR;
  16583. BEGIN result := variable;
  16584. END Test.
  16585. negative: object to array assignment
  16586. MODULE Test;
  16587. VAR variable: OBJECT; result: ARRAY 10 OF CHAR;
  16588. BEGIN result := variable;
  16589. END Test.
  16590. negative: pointer to array assignment
  16591. MODULE Test;
  16592. VAR variable: POINTER TO RECORD END; result: ARRAY 10 OF CHAR;
  16593. BEGIN result := variable;
  16594. END Test.
  16595. negative: variable procedure to array assignment
  16596. MODULE Test;
  16597. VAR variable: PROCEDURE; result: ARRAY 10 OF CHAR;
  16598. BEGIN result := variable;
  16599. END Test.
  16600. negative: import to array assignment
  16601. MODULE Test;
  16602. IMPORT variable := Dummy; VAR result: ARRAY 10 OF CHAR;
  16603. BEGIN result := variable;
  16604. END Test.
  16605. negative: type to variable array assignment
  16606. MODULE Test;
  16607. TYPE Type = ARRAY 10 OF CHAR; VAR result: Type;
  16608. BEGIN result := Type;
  16609. END Test.
  16610. negative: variable boolean to record assignment
  16611. MODULE Test;
  16612. VAR variable: BOOLEAN; result: RECORD END;
  16613. BEGIN result := variable;
  16614. END Test.
  16615. negative: variable character to record assignment
  16616. MODULE Test;
  16617. VAR variable: CHAR; result: RECORD END;
  16618. BEGIN result := variable;
  16619. END Test.
  16620. negative: variable short integer to record assignment
  16621. MODULE Test;
  16622. VAR variable: SHORTINT; result: RECORD END;
  16623. BEGIN result := variable;
  16624. END Test.
  16625. negative: variable integer to record assignment
  16626. MODULE Test;
  16627. VAR variable: INTEGER; result: RECORD END;
  16628. BEGIN result := variable;
  16629. END Test.
  16630. negative: variable long integer to record assignment
  16631. MODULE Test;
  16632. VAR variable: LONGINT; result: RECORD END;
  16633. BEGIN result := variable;
  16634. END Test.
  16635. negative: variable huge integer to record assignment
  16636. MODULE Test;
  16637. VAR variable: HUGEINT; result: RECORD END;
  16638. BEGIN result := variable;
  16639. END Test.
  16640. negative: variable real to record assignment
  16641. MODULE Test;
  16642. VAR variable: REAL; result: RECORD END;
  16643. BEGIN result := variable;
  16644. END Test.
  16645. negative: variable long real to record assignment
  16646. MODULE Test;
  16647. VAR variable: LONGREAL; result: RECORD END;
  16648. BEGIN result := variable;
  16649. END Test.
  16650. negative: variable set to record assignment
  16651. MODULE Test;
  16652. VAR variable: LONGREAL; result: RECORD END;
  16653. BEGIN result := variable;
  16654. END Test.
  16655. negative: array to record assignment
  16656. MODULE Test;
  16657. VAR variable: ARRAY 10 OF CHAR; result: RECORD END;
  16658. BEGIN result := variable;
  16659. END Test.
  16660. positive: record to same record assignment
  16661. MODULE Test;
  16662. VAR variable, result: RECORD END;
  16663. BEGIN result := variable;
  16664. END Test.
  16665. negative: record to same temporary record assignment
  16666. MODULE Test;
  16667. TYPE Record = RECORD END;
  16668. VAR variable: Record; result: PROCEDURE (): Record;
  16669. BEGIN result () := variable;
  16670. END Test.
  16671. negative: record to different record assignment
  16672. MODULE Test;
  16673. VAR variable: RECORD END; result: RECORD END;
  16674. BEGIN result := variable;
  16675. END Test.
  16676. positive: extended record to base record assignment
  16677. MODULE Test;
  16678. TYPE Record = RECORD END;
  16679. VAR variable: RECORD (Record) END; result: Record;
  16680. BEGIN result := variable;
  16681. END Test.
  16682. negative: base record to extended record assignment
  16683. MODULE Test;
  16684. TYPE Record = RECORD END;
  16685. VAR variable: Record; result: RECORD (Record) END;
  16686. BEGIN result := variable;
  16687. END Test.
  16688. positive: record parameter to same record assignment
  16689. MODULE Test;
  16690. PROCEDURE Procedure (parameter, result: RECORD END);
  16691. BEGIN result := parameter;
  16692. END Procedure;
  16693. END Test.
  16694. negative: record parameter to different record assignment
  16695. MODULE Test;
  16696. PROCEDURE Procedure (parameter: RECORD END; result: RECORD END);
  16697. BEGIN result := parameter;
  16698. END Procedure;
  16699. END Test.
  16700. positive: extended record parameter to base record assignment
  16701. MODULE Test;
  16702. TYPE Record = RECORD END;
  16703. PROCEDURE Procedure (parameter: RECORD (Record) END; result: Record);
  16704. BEGIN result := parameter;
  16705. END Procedure;
  16706. END Test.
  16707. negative: base record parameter to extended record assignment
  16708. MODULE Test;
  16709. TYPE Record = RECORD END;
  16710. PROCEDURE Procedure (parameter: Record; result: RECORD (Record) END);
  16711. BEGIN result := parameter;
  16712. END Procedure;
  16713. END Test.
  16714. negative: object to record assignment
  16715. MODULE Test;
  16716. VAR variable: OBJECT; result: RECORD END;
  16717. BEGIN result := variable;
  16718. END Test.
  16719. negative: pointer to record assignment
  16720. MODULE Test;
  16721. TYPE Record = RECORD END;
  16722. VAR variable: POINTER TO Record; result: Record;
  16723. BEGIN result := variable;
  16724. END Test.
  16725. negative: variable procedure to record assignment
  16726. MODULE Test;
  16727. VAR variable: PROCEDURE; result: RECORD END;
  16728. BEGIN result := variable;
  16729. END Test.
  16730. negative: import to record assignment
  16731. MODULE Test;
  16732. IMPORT variable := Dummy; VAR result: RECORD END;
  16733. BEGIN result := variable;
  16734. END Test.
  16735. negative: type to variable record assignment
  16736. MODULE Test;
  16737. TYPE Type = RECORD END; VAR result: Type;
  16738. BEGIN result := Type;
  16739. END Test.
  16740. negative: variable boolean to object assignment
  16741. MODULE Test;
  16742. VAR variable: BOOLEAN; result: OBJECT END;
  16743. BEGIN result := variable;
  16744. END Test.
  16745. negative: variable character to object assignment
  16746. MODULE Test;
  16747. VAR variable: CHAR; result: OBJECT END;
  16748. BEGIN result := variable;
  16749. END Test.
  16750. negative: variable short integer to object assignment
  16751. MODULE Test;
  16752. VAR variable: SHORTINT; result: OBJECT END;
  16753. BEGIN result := variable;
  16754. END Test.
  16755. negative: variable integer to object assignment
  16756. MODULE Test;
  16757. VAR variable: INTEGER; result: OBJECT END;
  16758. BEGIN result := variable;
  16759. END Test.
  16760. negative: variable long integer to object assignment
  16761. MODULE Test;
  16762. VAR variable: LONGINT; result: OBJECT END;
  16763. BEGIN result := variable;
  16764. END Test.
  16765. negative: variable huge integer to object assignment
  16766. MODULE Test;
  16767. VAR variable: HUGEINT; result: OBJECT END;
  16768. BEGIN result := variable;
  16769. END Test.
  16770. negative: variable real to object assignment
  16771. MODULE Test;
  16772. VAR variable: REAL; result: OBJECT END;
  16773. BEGIN result := variable;
  16774. END Test.
  16775. negative: variable long real to object assignment
  16776. MODULE Test;
  16777. VAR variable: LONGREAL; result: OBJECT END;
  16778. BEGIN result := variable;
  16779. END Test.
  16780. negative: variable set to object assignment
  16781. MODULE Test;
  16782. VAR variable: LONGREAL; result: OBJECT END;
  16783. BEGIN result := variable;
  16784. END Test.
  16785. negative: array to object assignment
  16786. MODULE Test;
  16787. VAR variable: ARRAY 10 OF CHAR; result: OBJECT END;
  16788. BEGIN result := variable;
  16789. END Test.
  16790. negative: record to object assignment
  16791. MODULE Test;
  16792. VAR variable: RECORD END; result: OBJECT END;
  16793. BEGIN result := variable;
  16794. END Test.
  16795. positive: object to same object assignment
  16796. MODULE Test;
  16797. VAR variable, result: OBJECT END;
  16798. BEGIN result := variable;
  16799. END Test.
  16800. negative: obbject to same temporary object assignment
  16801. MODULE Test;
  16802. TYPE Object = OBJECT END Object;
  16803. VAR variable: Object; result: PROCEDURE (): Object;
  16804. BEGIN result () := variable;
  16805. END Test.
  16806. negative: object to different object assignment
  16807. MODULE Test;
  16808. VAR variable: OBJECT END; result: OBJECT END;
  16809. BEGIN result := variable;
  16810. END Test.
  16811. positive: extended object to base object assignment
  16812. MODULE Test;
  16813. TYPE Object = OBJECT END Object;
  16814. VAR variable: OBJECT (Object) END; result: Object;
  16815. BEGIN result := variable;
  16816. END Test.
  16817. negative: base object to extended object assignment
  16818. MODULE Test;
  16819. TYPE Object = OBJECT END Object;
  16820. VAR variable: Object; result: OBJECT (Object) END;
  16821. BEGIN result := variable;
  16822. END Test.
  16823. positive: object to basic object assignment
  16824. MODULE Test;
  16825. VAR variable: OBJECT END; result: OBJECT;
  16826. BEGIN result := variable;
  16827. END Test.
  16828. negative: basic object to object assignment
  16829. MODULE Test;
  16830. VAR variable: OBJECT; result: OBJECT END;
  16831. BEGIN result := variable;
  16832. END Test.
  16833. negative: pointer to object assignment
  16834. MODULE Test;
  16835. VAR variable: POINTER TO RECORD END; result: OBJECT END;
  16836. BEGIN result := variable;
  16837. END Test.
  16838. negative: variable procedure to object assignment
  16839. MODULE Test;
  16840. VAR variable: PROCEDURE; result: OBJECT END;
  16841. BEGIN result := variable;
  16842. END Test.
  16843. negative: import to object assignment
  16844. MODULE Test;
  16845. IMPORT variable := Dummy; VAR result: OBJECT END;
  16846. BEGIN result := variable;
  16847. END Test.
  16848. negative: variable boolean to pointer assignment
  16849. MODULE Test;
  16850. VAR variable: BOOLEAN; result: POINTER TO RECORD END;
  16851. BEGIN result := variable;
  16852. END Test.
  16853. negative: variable character to pointer assignment
  16854. MODULE Test;
  16855. VAR variable: CHAR; result: POINTER TO RECORD END;
  16856. BEGIN result := variable;
  16857. END Test.
  16858. negative: variable short integer to pointer assignment
  16859. MODULE Test;
  16860. VAR variable: SHORTINT; result: POINTER TO RECORD END;
  16861. BEGIN result := variable;
  16862. END Test.
  16863. negative: variable integer to pointer assignment
  16864. MODULE Test;
  16865. VAR variable: INTEGER; result: POINTER TO RECORD END;
  16866. BEGIN result := variable;
  16867. END Test.
  16868. negative: variable long integer to pointer assignment
  16869. MODULE Test;
  16870. VAR variable: LONGINT; result: POINTER TO RECORD END;
  16871. BEGIN result := variable;
  16872. END Test.
  16873. negative: variable huge integer to pointer assignment
  16874. MODULE Test;
  16875. VAR variable: HUGEINT; result: POINTER TO RECORD END;
  16876. BEGIN result := variable;
  16877. END Test.
  16878. negative: variable real to pointer assignment
  16879. MODULE Test;
  16880. VAR variable: REAL; result: POINTER TO RECORD END;
  16881. BEGIN result := variable;
  16882. END Test.
  16883. negative: variable long real to pointer assignment
  16884. MODULE Test;
  16885. VAR variable: LONGREAL; result: POINTER TO RECORD END;
  16886. BEGIN result := variable;
  16887. END Test.
  16888. negative: variable set to pointer assignment
  16889. MODULE Test;
  16890. VAR variable: LONGREAL; result: POINTER TO RECORD END;
  16891. BEGIN result := variable;
  16892. END Test.
  16893. negative: array to pointer assignment
  16894. MODULE Test;
  16895. VAR variable: ARRAY 10 OF CHAR; result: POINTER TO RECORD END;
  16896. BEGIN result := variable;
  16897. END Test.
  16898. negative: record to pointer assignment
  16899. MODULE Test;
  16900. VAR variable: RECORD END; result: POINTER TO RECORD END;
  16901. BEGIN result := variable;
  16902. END Test.
  16903. negative: object to pointer assignment
  16904. MODULE Test;
  16905. VAR variable: OBJECT END; result: POINTER TO RECORD END;
  16906. BEGIN result := variable;
  16907. END Test.
  16908. positive: pointer to same pointer assignment
  16909. MODULE Test;
  16910. VAR variable, result: POINTER TO RECORD END;
  16911. BEGIN result := variable;
  16912. END Test.
  16913. negative: pointer to same temporary pointer assignment
  16914. MODULE Test;
  16915. TYPE Pointer = POINTER TO RECORD END;
  16916. VAR variable: Pointer; result: PROCEDURE (): Pointer;
  16917. BEGIN result () := variable;
  16918. END Test.
  16919. positive: pointer to array of same pointer to same pointer assignment
  16920. MODULE Test;
  16921. TYPE Pointer = POINTER TO ARRAY 10 OF Pointer;
  16922. VAR variable, result: Pointer;
  16923. BEGIN result := variable;
  16924. END Test.
  16925. positive: pointers to array of same pointer to same pointer assignment
  16926. MODULE Test;
  16927. TYPE A = POINTER TO ARRAY 10 OF B;
  16928. TYPE B = POINTER TO ARRAY 10 OF C;
  16929. TYPE C = POINTER TO ARRAY 10 OF D;
  16930. TYPE D = POINTER TO ARRAY 10 OF A;
  16931. VAR variable: A; result: B;
  16932. BEGIN result := variable;
  16933. END Test.
  16934. positive: pointer to open array of same pointer to same pointer assignment
  16935. MODULE Test;
  16936. TYPE Pointer = POINTER TO ARRAY OF Pointer;
  16937. VAR variable, result: Pointer;
  16938. BEGIN result := variable;
  16939. END Test.
  16940. positive: pointers to open array of same pointer to same pointer assignment
  16941. MODULE Test;
  16942. TYPE A = POINTER TO ARRAY 10 OF B;
  16943. TYPE B = POINTER TO ARRAY 10 OF C;
  16944. TYPE C = POINTER TO ARRAY 10 OF D;
  16945. TYPE D = POINTER TO ARRAY 10 OF A;
  16946. VAR variable: A; result: B;
  16947. BEGIN result := variable;
  16948. END Test.
  16949. positive: pointer to different pointer assignment
  16950. MODULE Test;
  16951. TYPE Record = RECORD END;
  16952. VAR variable: POINTER TO Record; result: POINTER TO Record;
  16953. BEGIN result := variable;
  16954. END Test.
  16955. positive: extended pointer to base pointer assignment
  16956. MODULE Test;
  16957. TYPE Record = RECORD END;
  16958. VAR variable: POINTER TO RECORD (Record) END; result: POINTER TO Record;
  16959. BEGIN result := variable;
  16960. END Test.
  16961. negative: base pointer to extended pointer assignment
  16962. MODULE Test;
  16963. TYPE Record = RECORD END;
  16964. VAR variable: POINTER TO Record; result: POINTER TO RECORD (Record) END;
  16965. BEGIN result := variable;
  16966. END Test.
  16967. negative: pointer to array to pointer to record assignment
  16968. MODULE Test;
  16969. VAR variable: POINTER TO ARRAY 10 OF CHAR; result: POINTER TO RECORD END;
  16970. BEGIN result := variable;
  16971. END Test.
  16972. negative: pointer to record to pointer to array assignment
  16973. MODULE Test;
  16974. VAR variable: POINTER TO RECORD END; result: POINTER TO ARRAY 10 OF CHAR;
  16975. BEGIN result := variable;
  16976. END Test.
  16977. positive: pointer to array to pointer to array assignment
  16978. MODULE Test;
  16979. VAR variable, result: POINTER TO ARRAY 10 OF CHAR;
  16980. BEGIN result := variable;
  16981. END Test.
  16982. negative: pointer to array to temporary pointer to array assignment
  16983. MODULE Test;
  16984. TYPE Pointer = POINTER TO ARRAY 10 OF CHAR;
  16985. VAR variable: Pointer; result: PROCEDURE (): Pointer;
  16986. BEGIN result () := variable;
  16987. END Test.
  16988. negative: pointer to array to pointer to longer array assignment
  16989. MODULE Test;
  16990. VAR variable: POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 20 OF CHAR;
  16991. BEGIN result := variable;
  16992. END Test.
  16993. negative: pointer to array to pointer to shorter array assignment
  16994. MODULE Test;
  16995. VAR variable: POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 5 OF CHAR;
  16996. BEGIN result := variable;
  16997. END Test.
  16998. negative: variable procedure to pointer assignment
  16999. MODULE Test;
  17000. VAR variable: PROCEDURE; result: POINTER TO RECORD END;
  17001. BEGIN result := variable;
  17002. END Test.
  17003. negative: import to pointer assignment
  17004. MODULE Test;
  17005. IMPORT variable := Dummy; VAR result: POINTER TO RECORD END;
  17006. BEGIN result := variable;
  17007. END Test.
  17008. negative: type to variable pointer assignment
  17009. MODULE Test;
  17010. TYPE Type = POINTER TO RECORD END; VAR result: Type;
  17011. BEGIN result := Type;
  17012. END Test.
  17013. negative: variable boolean to procedure assignment
  17014. MODULE Test;
  17015. VAR variable: BOOLEAN; result: PROCEDURE;
  17016. BEGIN result := variable;
  17017. END Test.
  17018. negative: variable character to procedure assignment
  17019. MODULE Test;
  17020. VAR variable: CHAR; result: PROCEDURE;
  17021. BEGIN result := variable;
  17022. END Test.
  17023. negative: variable short integer to procedure assignment
  17024. MODULE Test;
  17025. VAR variable: SHORTINT; result: PROCEDURE;
  17026. BEGIN result := variable;
  17027. END Test.
  17028. negative: variable integer to procedure assignment
  17029. MODULE Test;
  17030. VAR variable: INTEGER; result: PROCEDURE;
  17031. BEGIN result := variable;
  17032. END Test.
  17033. negative: variable long integer to procedure assignment
  17034. MODULE Test;
  17035. VAR variable: LONGINT; result: PROCEDURE;
  17036. BEGIN result := variable;
  17037. END Test.
  17038. negative: variable huge integer to procedure assignment
  17039. MODULE Test;
  17040. VAR variable: HUGEINT; result: PROCEDURE;
  17041. BEGIN result := variable;
  17042. END Test.
  17043. negative: variable real to procedure assignment
  17044. MODULE Test;
  17045. VAR variable: REAL; result: PROCEDURE;
  17046. BEGIN result := variable;
  17047. END Test.
  17048. negative: variable long real to procedure assignment
  17049. MODULE Test;
  17050. VAR variable: LONGREAL; result: PROCEDURE;
  17051. BEGIN result := variable;
  17052. END Test.
  17053. negative: variable set to procedure assignment
  17054. MODULE Test;
  17055. VAR variable: LONGREAL; result: PROCEDURE;
  17056. BEGIN result := variable;
  17057. END Test.
  17058. negative: array to procedure assignment
  17059. MODULE Test;
  17060. VAR variable: ARRAY 10 OF CHAR; result: PROCEDURE;
  17061. BEGIN result := variable;
  17062. END Test.
  17063. negative: record to procedure assignment
  17064. MODULE Test;
  17065. VAR variable: RECORD END; result: PROCEDURE;
  17066. BEGIN result := variable;
  17067. END Test.
  17068. negative: object to procedure assignment
  17069. MODULE Test;
  17070. VAR variable: OBJECT END; result: PROCEDURE;
  17071. BEGIN result := variable;
  17072. END Test.
  17073. negative: pointer to procedure assignment
  17074. MODULE Test;
  17075. VAR variable: POINTER TO RECORD END; result: PROCEDURE;
  17076. BEGIN result := variable;
  17077. END Test.
  17078. positive: variable procedure to variable procedure assignment
  17079. MODULE Test;
  17080. VAR variable, result: PROCEDURE;
  17081. BEGIN result := variable;
  17082. END Test.
  17083. negative: variable procedure to temporary procedure assignment
  17084. MODULE Test;
  17085. VAR variable: PROCEDURE; result: PROCEDURE (): PROCEDURE;
  17086. BEGIN result () := variable;
  17087. END Test.
  17088. positive: procedure to variable procedure assignment
  17089. MODULE Test;
  17090. VAR result: PROCEDURE;
  17091. PROCEDURE variable; END variable;
  17092. BEGIN result := variable;
  17093. END Test.
  17094. negative: variable procedure to procedure assignment
  17095. MODULE Test;
  17096. VAR variable: PROCEDURE;
  17097. PROCEDURE result; END result;
  17098. BEGIN result := variable;
  17099. END Test.
  17100. negative: procedure to procedure assignment
  17101. MODULE Test;
  17102. PROCEDURE variable; END variable;
  17103. PROCEDURE result; END result;
  17104. BEGIN result := variable;
  17105. END Test.
  17106. positive: variable procedure to variable procedure with same parameter assignment
  17107. MODULE Test;
  17108. VAR variable: PROCEDURE (integer: INTEGER); result: PROCEDURE (integer: INTEGER);
  17109. BEGIN result := variable;
  17110. END Test.
  17111. positive: procedure to variable procedure with same parameter assignment
  17112. MODULE Test;
  17113. VAR result: PROCEDURE (integer: INTEGER);
  17114. PROCEDURE variable (integer: INTEGER); END variable;
  17115. BEGIN result := variable;
  17116. END Test.
  17117. negative: variable procedure to variable procedure with compatible parameter assignment
  17118. MODULE Test;
  17119. VAR variable: PROCEDURE (object: OBJECT END); result: PROCEDURE (object: OBJECT);
  17120. BEGIN result := variable;
  17121. END Test.
  17122. negative: procedure to variable procedure with compatible parameter assignment
  17123. MODULE Test;
  17124. VAR result: PROCEDURE (object: OBJECT);
  17125. PROCEDURE variable (object: OBJECT END); END variable;
  17126. BEGIN result := variable;
  17127. END Test.
  17128. negative: variable procedure to variable procedure with incompatible parameter assignment
  17129. MODULE Test;
  17130. VAR variable: PROCEDURE (object: OBJECT END); result: PROCEDURE (object: OBJECT END);
  17131. BEGIN result := variable;
  17132. END Test.
  17133. negative: procedure to variable procedure with incompatible parameter assignment
  17134. MODULE Test;
  17135. VAR result: PROCEDURE (object: OBJECT END);
  17136. PROCEDURE variable (object: OBJECT END); END variable;
  17137. BEGIN result := variable;
  17138. END Test.
  17139. positive: variable procedure to variable procedure with same return type assignment
  17140. MODULE Test;
  17141. VAR variable: PROCEDURE (): INTEGER; result: PROCEDURE (): INTEGER;
  17142. BEGIN result := variable;
  17143. END Test.
  17144. positive: procedure to variable procedure with same return type assignment
  17145. MODULE Test;
  17146. VAR result: PROCEDURE (): INTEGER;
  17147. PROCEDURE variable (): INTEGER; END variable;
  17148. BEGIN result := variable;
  17149. END Test.
  17150. negative: variable procedure to variable procedure with compatible return type assignment
  17151. MODULE Test;
  17152. VAR variable: PROCEDURE (): OBJECT END; result: PROCEDURE (): OBJECT;
  17153. BEGIN result := variable;
  17154. END Test.
  17155. negative: procedure to variable procedure with compatible return type assignment
  17156. MODULE Test;
  17157. VAR result: PROCEDURE (): OBJECT;
  17158. PROCEDURE variable (): OBJECT END; END variable;
  17159. BEGIN result := variable;
  17160. END Test.
  17161. negative: variable procedure to variable procedure with incompatible return type assignment
  17162. MODULE Test;
  17163. VAR variable: PROCEDURE (): OBJECT END; result: PROCEDURE (): OBJECT END;
  17164. BEGIN result := variable;
  17165. END Test.
  17166. negative: procedure to variable procedure with incompatible return type assignment
  17167. MODULE Test;
  17168. VAR result: PROCEDURE (): OBJECT END;
  17169. PROCEDURE variable (): OBJECT END; END variable;
  17170. BEGIN result := variable;
  17171. END Test.
  17172. positive: variable procedure to variable procedure with parameter of same procedure type assignment
  17173. MODULE Test;
  17174. TYPE Procedure = PROCEDURE (procedure: Procedure);
  17175. VAR variable: Procedure; result: Procedure;
  17176. BEGIN result := variable;
  17177. END Test.
  17178. positive: procedure to variable procedure with parameter of same procedure type assignment
  17179. MODULE Test;
  17180. TYPE Procedure = PROCEDURE (procedure: Procedure);
  17181. VAR result: Procedure;
  17182. PROCEDURE variable (procedure: Procedure); END variable;
  17183. BEGIN result := variable;
  17184. END Test.
  17185. positive: variable procedure to variable procedure with parameter of same procedure types assignment
  17186. MODULE Test;
  17187. TYPE A = PROCEDURE (b: B);
  17188. TYPE B = PROCEDURE (c: C);
  17189. TYPE C = PROCEDURE (d: D);
  17190. TYPE D = PROCEDURE (a: A);
  17191. VAR variable: A; result: B;
  17192. BEGIN result := variable;
  17193. END Test.
  17194. positive: procedure to variable procedure with parameter of same procedure types assignment
  17195. MODULE Test;
  17196. TYPE A = PROCEDURE (b: B);
  17197. TYPE B = PROCEDURE (c: C);
  17198. TYPE C = PROCEDURE (d: D);
  17199. TYPE D = PROCEDURE (a: A);
  17200. VAR result: A;
  17201. PROCEDURE variable (procedure: A); END variable;
  17202. BEGIN result := variable;
  17203. END Test.
  17204. positive: variable procedure to variable procedure with return of same procedure type assignment
  17205. MODULE Test;
  17206. TYPE Procedure = PROCEDURE (): Procedure;
  17207. VAR variable: Procedure; result: Procedure;
  17208. BEGIN result := variable;
  17209. END Test.
  17210. positive: procedure to variable procedure with return of same procedure type assignment
  17211. MODULE Test;
  17212. TYPE Procedure = PROCEDURE (): Procedure;
  17213. VAR result: Procedure;
  17214. PROCEDURE variable (): Procedure; END variable;
  17215. BEGIN result := variable;
  17216. END Test.
  17217. positive: variable procedure to variable procedure with return of same procedure types assignment
  17218. MODULE Test;
  17219. TYPE A = PROCEDURE (): B;
  17220. TYPE B = PROCEDURE (): C;
  17221. TYPE C = PROCEDURE (): D;
  17222. TYPE D = PROCEDURE (): A;
  17223. VAR variable: A; result: B;
  17224. BEGIN result := variable;
  17225. END Test.
  17226. positive: procedure to variable procedure with return of same procedure types assignment
  17227. MODULE Test;
  17228. TYPE A = PROCEDURE (): B;
  17229. TYPE B = PROCEDURE (): C;
  17230. TYPE C = PROCEDURE (): D;
  17231. TYPE D = PROCEDURE (): A;
  17232. VAR result: A;
  17233. PROCEDURE variable (): A; END variable;
  17234. BEGIN result := variable;
  17235. END Test.
  17236. positive: global procedure to global variable procedure assignment
  17237. MODULE Test;
  17238. VAR result: PROCEDURE;
  17239. PROCEDURE variable; END variable;
  17240. BEGIN result := variable;
  17241. END Test.
  17242. negative: nested procedure to global variable procedure assignment
  17243. MODULE Test;
  17244. VAR result: PROCEDURE;
  17245. PROCEDURE Procedure;
  17246. PROCEDURE variable; END variable;
  17247. BEGIN result := variable;
  17248. END Procedure;
  17249. END Test.
  17250. positive: global procedure to nested variable procedure assignment
  17251. MODULE Test;
  17252. PROCEDURE variable; END variable;
  17253. PROCEDURE Procedure;
  17254. VAR result: PROCEDURE;
  17255. BEGIN result := variable;
  17256. END Procedure;
  17257. END Test.
  17258. negative: nested procedure to nested variable procedure assignment
  17259. MODULE Test;
  17260. PROCEDURE Procedure;
  17261. VAR result: PROCEDURE;
  17262. PROCEDURE variable; END variable;
  17263. BEGIN result := variable;
  17264. END Procedure;
  17265. END Test.
  17266. negative: procedure in object to global variable procedure assignment
  17267. MODULE Test;
  17268. VAR result: PROCEDURE;
  17269. VAR object: OBJECT PROCEDURE variable; END variable; END;
  17270. BEGIN result := object.variable;
  17271. END Test.
  17272. negative: nested procedure in object to global variable procedure assignment
  17273. MODULE Test;
  17274. VAR object: OBJECT VAR result: PROCEDURE; PROCEDURE Procedure; PROCEDURE variable; END variable; BEGIN result := variable; END Procedure; END;
  17275. END Test.
  17276. negative: procedure in object to nested variable procedure assignment
  17277. MODULE Test;
  17278. VAR result: PROCEDURE;
  17279. VAR object: OBJECT PROCEDURE variable; END variable; END;
  17280. BEGIN result := object.variable;
  17281. END Test.
  17282. negative: nested procedure in object to nested variable procedure assignment
  17283. MODULE Test;
  17284. VAR object: OBJECT VAR result: PROCEDURE; PROCEDURE Procedure; PROCEDURE variable; END variable; BEGIN result := variable; END Procedure; END;
  17285. END Test.
  17286. negative: import to procedure assignment
  17287. MODULE Test;
  17288. IMPORT variable := Dummy; VAR result: PROCEDURE;
  17289. BEGIN result := variable;
  17290. END Test.
  17291. negative: type to variable procedure assignment
  17292. MODULE Test;
  17293. TYPE Type = PROCEDURE; VAR result: Type;
  17294. BEGIN result := Type;
  17295. END Test.
  17296. negative: variable boolean to import assignment
  17297. MODULE Test;
  17298. IMPORT result := Dummy;
  17299. VAR variable: BOOLEAN;
  17300. BEGIN result := variable;
  17301. END Test.
  17302. negative: variable character to import assignment
  17303. MODULE Test;
  17304. IMPORT result := Dummy;
  17305. VAR variable: CHAR;
  17306. BEGIN result := variable;
  17307. END Test.
  17308. negative: variable short integer to import assignment
  17309. MODULE Test;
  17310. IMPORT result := Dummy;
  17311. VAR variable: SHORTINT;
  17312. BEGIN result := variable;
  17313. END Test.
  17314. negative: variable integer to import assignment
  17315. MODULE Test;
  17316. IMPORT result := Dummy;
  17317. VAR variable: INTEGER;
  17318. BEGIN result := variable;
  17319. END Test.
  17320. negative: variable long integer to import assignment
  17321. MODULE Test;
  17322. IMPORT result := Dummy;
  17323. VAR variable: LONGINT;
  17324. BEGIN result := variable;
  17325. END Test.
  17326. negative: variable huge integer to import assignment
  17327. MODULE Test;
  17328. IMPORT result := Dummy;
  17329. VAR variable: HUGEINT;
  17330. BEGIN result := variable;
  17331. END Test.
  17332. negative: variable real to import assignment
  17333. MODULE Test;
  17334. IMPORT result := Dummy;
  17335. VAR variable: REAL;
  17336. BEGIN result := variable;
  17337. END Test.
  17338. negative: variable long real to import assignment
  17339. MODULE Test;
  17340. IMPORT result := Dummy;
  17341. VAR variable: LONGREAL;
  17342. BEGIN result := variable;
  17343. END Test.
  17344. negative: variable set to import assignment
  17345. MODULE Test;
  17346. IMPORT result := Dummy;
  17347. VAR variable: LONGREAL;
  17348. BEGIN result := variable;
  17349. END Test.
  17350. negative: array to import assignment
  17351. MODULE Test;
  17352. IMPORT result := Dummy;
  17353. VAR variable: ARRAY 10 OF CHAR;
  17354. BEGIN result := variable;
  17355. END Test.
  17356. negative: record to import assignment
  17357. MODULE Test;
  17358. IMPORT result := Dummy;
  17359. VAR variable: RECORD END;
  17360. BEGIN result := variable;
  17361. END Test.
  17362. negative: object to import assignment
  17363. MODULE Test;
  17364. IMPORT result := Dummy;
  17365. VAR variable: OBJECT END;
  17366. BEGIN result := variable;
  17367. END Test.
  17368. negative: pointer to import assignment
  17369. MODULE Test;
  17370. IMPORT result := Dummy;
  17371. VAR variable: POINTER TO RECORD END;
  17372. BEGIN result := variable;
  17373. END Test.
  17374. negative: variable procedure to import assignment
  17375. MODULE Test;
  17376. IMPORT result := Dummy;
  17377. VAR variable: PROCEDURE;
  17378. BEGIN result := variable;
  17379. END Test.
  17380. negative: import to import assignment
  17381. MODULE Test;
  17382. IMPORT variable := Dummy, result := Dummy;
  17383. BEGIN result := variable;
  17384. END Test.
  17385. negative: type to import assignment
  17386. MODULE Test;
  17387. IMPORT result := Dummy; TYPE Type = BOOLEAN;
  17388. BEGIN result := Type;
  17389. END Test.
  17390. negative: variable boolean to type assignment
  17391. MODULE Test;
  17392. TYPE result = BOOLEAN; VAR variable: result;
  17393. BEGIN result := variable;
  17394. END Test.
  17395. negative: variable character to type assignment
  17396. MODULE Test;
  17397. TYPE result = CHAR; VAR variable: result;
  17398. BEGIN result := variable;
  17399. END Test.
  17400. negative: variable short integer to type assignment
  17401. MODULE Test;
  17402. TYPE result = SHORTINT; VAR variable: result;
  17403. BEGIN result := variable;
  17404. END Test.
  17405. negative: variable integer to type assignment
  17406. MODULE Test;
  17407. TYPE result = INTEGER; VAR variable: result;
  17408. BEGIN result := variable;
  17409. END Test.
  17410. negative: variable long integer to type assignment
  17411. MODULE Test;
  17412. TYPE result = LONGINT; VAR variable: result;
  17413. BEGIN result := variable;
  17414. END Test.
  17415. negative: variable huge integer to type assignment
  17416. MODULE Test;
  17417. TYPE result = HUGEINT; VAR variable: result;
  17418. BEGIN result := variable;
  17419. END Test.
  17420. negative: variable real to type assignment
  17421. MODULE Test;
  17422. TYPE result = REAL; VAR variable: result;
  17423. BEGIN result := variable;
  17424. END Test.
  17425. negative: variable long real to type assignment
  17426. MODULE Test;
  17427. TYPE result = LONGREAL; VAR variable: result;
  17428. BEGIN result := variable;
  17429. END Test.
  17430. negative: variable set to type assignment
  17431. MODULE Test;
  17432. TYPE result = SET; VAR variable: result;
  17433. BEGIN result := variable;
  17434. END Test.
  17435. negative: array to type assignment
  17436. MODULE Test;
  17437. TYPE result = ARRAY 10 OF CHAR; VAR variable: result;
  17438. BEGIN result := variable;
  17439. END Test.
  17440. negative: record to type assignment
  17441. MODULE Test;
  17442. TYPE result = RECORD END; VAR variable: result;
  17443. BEGIN result := variable;
  17444. END Test.
  17445. negative: object to type assignment
  17446. MODULE Test;
  17447. TYPE result = OBJECT END result; VAR variable: result;
  17448. BEGIN result := variable;
  17449. END Test.
  17450. negative: pointer to type assignment
  17451. MODULE Test;
  17452. TYPE result = POINTER TO RECORD END; VAR variable: result;
  17453. BEGIN result := variable;
  17454. END Test.
  17455. negative: variable procedure to type assignment
  17456. MODULE Test;
  17457. TYPE result = PROCEDURE; VAR variable: result;
  17458. BEGIN result := variable;
  17459. END Test.
  17460. negative: import to type assignment
  17461. MODULE Test;
  17462. IMPORT variable := Dummy; TYPE result = BOOLEAN;
  17463. BEGIN result := variable;
  17464. END Test.
  17465. # variable booleans
  17466. negative: arithmetic negation on variable boolean
  17467. MODULE Test;
  17468. VAR boolean, result: BOOLEAN;
  17469. BEGIN result := -boolean;
  17470. END Test.
  17471. positive: logical negation on variable boolean
  17472. MODULE Test;
  17473. VAR boolean, result: BOOLEAN;
  17474. BEGIN result := ~boolean;
  17475. END Test.
  17476. positive: multiple logical negations on variable boolean
  17477. MODULE Test;
  17478. VAR boolean, result: BOOLEAN;
  17479. BEGIN result := ~~~~boolean;
  17480. END Test.
  17481. negative: dereferencing variable boolean
  17482. MODULE Test;
  17483. VAR boolean, result: BOOLEAN;
  17484. BEGIN result := boolean^;
  17485. END Test.
  17486. negative: addition on variable booleans
  17487. MODULE Test;
  17488. VAR boolean, result: BOOLEAN;
  17489. BEGIN result := boolean + boolean;
  17490. END Test.
  17491. negative: subtraction on variable booleans
  17492. MODULE Test;
  17493. VAR boolean, result: BOOLEAN;
  17494. BEGIN result := boolean - boolean
  17495. END Test.
  17496. negative: multiplication on variable booleans
  17497. MODULE Test;
  17498. VAR boolean, result: BOOLEAN;
  17499. BEGIN result := boolean * boolean
  17500. END Test.
  17501. negative: integer division on variable booleans
  17502. MODULE Test;
  17503. VAR boolean: BOOLEAN; result: INTEGER;
  17504. BEGIN result := boolean DIV boolean
  17505. END Test.
  17506. negative: real division on variable booleans
  17507. MODULE Test;
  17508. VAR boolean: BOOLEAN; result: REAL;
  17509. BEGIN result := boolean / boolean
  17510. END Test.
  17511. negative: modulo on variable booleans
  17512. MODULE Test;
  17513. VAR boolean: BOOLEAN; result: INTEGER;
  17514. BEGIN result := boolean MOD boolean
  17515. END Test.
  17516. positive: equal relation on variable booleans
  17517. MODULE Test;
  17518. VAR boolean, result: BOOLEAN;
  17519. BEGIN result := boolean = boolean
  17520. END Test.
  17521. positive: unequal relation on variable booleans
  17522. MODULE Test;
  17523. VAR boolean, result: BOOLEAN;
  17524. BEGIN result := boolean # boolean
  17525. END Test.
  17526. negative: less relation on variable booleans
  17527. MODULE Test;
  17528. VAR boolean, result: BOOLEAN;
  17529. BEGIN result := boolean < boolean
  17530. END Test.
  17531. negative: less or equal relation on variable booleans
  17532. MODULE Test;
  17533. VAR boolean, result: BOOLEAN;
  17534. BEGIN result := boolean <= boolean
  17535. END Test.
  17536. negative: greater relation on variable booleans
  17537. MODULE Test;
  17538. VAR boolean, result: BOOLEAN;
  17539. BEGIN result := boolean > boolean
  17540. END Test.
  17541. negative: greater or equal relation on variable booleans
  17542. MODULE Test;
  17543. VAR boolean, result: BOOLEAN;
  17544. BEGIN result := boolean >= boolean
  17545. END Test.
  17546. negative: set membership on variable booleans
  17547. MODULE Test;
  17548. VAR boolean, result: BOOLEAN;
  17549. BEGIN result := boolean IN boolean
  17550. END Test.
  17551. negative: type test on variable booleans
  17552. MODULE Test;
  17553. VAR boolean, result: BOOLEAN;
  17554. BEGIN result := boolean IS boolean
  17555. END Test.
  17556. negative: type test on variable boolean
  17557. MODULE Test;
  17558. VAR boolean, result: BOOLEAN;
  17559. BEGIN result := boolean IS BOOLEAN
  17560. END Test.
  17561. negative: type test on boolean type
  17562. MODULE Test;
  17563. TYPE Type = BOOLEAN;
  17564. VAR boolean: Type; result: BOOLEAN;
  17565. BEGIN result := boolean IS Type
  17566. END Test.
  17567. negative: type guard on variable booleans
  17568. MODULE Test;
  17569. VAR boolean, result: BOOLEAN;
  17570. BEGIN result := boolean(boolean)
  17571. END Test.
  17572. negative: type guard on variable boolean
  17573. MODULE Test;
  17574. VAR boolean, result: BOOLEAN;
  17575. BEGIN result := boolean(BOOLEAN)
  17576. END Test.
  17577. negative: type guard on boolean type
  17578. MODULE Test;
  17579. TYPE Type = BOOLEAN;
  17580. VAR boolean, result: Type;
  17581. BEGIN result := boolean(Type)
  17582. END Test.
  17583. positive: logical and on variable booleans
  17584. MODULE Test;
  17585. VAR boolean, result: BOOLEAN;
  17586. BEGIN result := boolean & boolean
  17587. END Test.
  17588. positive: logical or on variable booleans
  17589. MODULE Test;
  17590. VAR boolean, result: BOOLEAN;
  17591. BEGIN result := boolean OR boolean
  17592. END Test.
  17593. negative: ordinal value of variable boolean
  17594. MODULE Test;
  17595. VAR boolean: BOOLEAN; result: INTEGER;
  17596. BEGIN result := ORD (boolean)
  17597. END Test.
  17598. negative: character value of variable boolean
  17599. MODULE Test;
  17600. VAR boolean: BOOLEAN; result: CHAR;
  17601. BEGIN result := CHR (boolean)
  17602. END Test.
  17603. negative: absolute value of variable boolean
  17604. MODULE Test;
  17605. VAR boolean, result: BOOLEAN;
  17606. BEGIN result := ABS (boolean)
  17607. END Test.
  17608. negative: odd test on variable boolean
  17609. MODULE Test;
  17610. VAR boolean, result: BOOLEAN;
  17611. BEGIN result := ODD (boolean)
  17612. END Test.
  17613. negative: capital letter of variable boolean
  17614. MODULE Test;
  17615. VAR boolean: BOOLEAN; result: CHAR;
  17616. BEGIN result := CAP (boolean)
  17617. END Test.
  17618. negative: arithmetic shift of variable booleans
  17619. MODULE Test;
  17620. VAR boolean, result: BOOLEAN;
  17621. BEGIN result := ASH (boolean, boolean)
  17622. END Test.
  17623. negative: short on variable boolean
  17624. MODULE Test;
  17625. VAR boolean, result: BOOLEAN;
  17626. BEGIN result := SHORT (boolean)
  17627. END Test.
  17628. negative: long on variable boolean
  17629. MODULE Test;
  17630. VAR boolean, result: BOOLEAN;
  17631. BEGIN result := LONG (boolean)
  17632. END Test.
  17633. negative: entier on variable boolean
  17634. MODULE Test;
  17635. VAR boolean, result: BOOLEAN;
  17636. BEGIN result := ENTIER (boolean)
  17637. END Test.
  17638. negative: unary length of variable boolean
  17639. MODULE Test;
  17640. VAR boolean: BOOLEAN; result: LONGINT;
  17641. BEGIN result := LEN (boolean)
  17642. END Test.
  17643. negative: binary length of variable boolean
  17644. MODULE Test;
  17645. VAR boolean: BOOLEAN; result: LONGINT;
  17646. BEGIN result := LEN (boolean, 0)
  17647. END Test.
  17648. negative: indexing variable boolean
  17649. MODULE Test;
  17650. VAR boolean: BOOLEAN; result: CHAR;
  17651. BEGIN result := boolean[0]
  17652. END Test.
  17653. negative: variable boolean as index
  17654. MODULE Test;
  17655. VAR array: ARRAY 10 OF CHAR; result: CHAR; boolean: BOOLEAN;
  17656. BEGIN result := array[boolean]
  17657. END Test.
  17658. negative: member selection on variable boolean
  17659. MODULE Test;
  17660. VAR boolean, result: BOOLEAN;
  17661. BEGIN result := boolean.member
  17662. END Test.
  17663. negative: calling variable boolean
  17664. MODULE Test;
  17665. VAR boolean: BOOLEAN;
  17666. BEGIN boolean
  17667. END Test.
  17668. # variable characters
  17669. negative: arithmetic negation on variable character
  17670. MODULE Test;
  17671. VAR character, result: CHAR;
  17672. BEGIN result := -character;
  17673. END Test.
  17674. negative: logical negation on variable character
  17675. MODULE Test;
  17676. VAR character: CHAR; result: BOOLEAN;
  17677. BEGIN result := ~character;
  17678. END Test.
  17679. negative: dereferencing variable character
  17680. MODULE Test;
  17681. VAR character, result: CHAR;
  17682. BEGIN result := character^;
  17683. END Test.
  17684. negative: addition on variable characters
  17685. MODULE Test;
  17686. VAR character, result: CHAR;
  17687. BEGIN result := character + character;
  17688. END Test.
  17689. negative: subtraction on variable characters
  17690. MODULE Test;
  17691. VAR character, result: CHAR;
  17692. BEGIN result := character - character
  17693. END Test.
  17694. negative: multiplication on variable characters
  17695. MODULE Test;
  17696. VAR character, result: CHAR;
  17697. BEGIN result := character * character
  17698. END Test.
  17699. negative: integer division on variable characters
  17700. MODULE Test;
  17701. VAR character: CHAR; result: INTEGER;
  17702. BEGIN result := character DIV character
  17703. END Test.
  17704. negative: real division on variable characters
  17705. MODULE Test;
  17706. VAR character: CHAR; result: REAL;
  17707. BEGIN result := character / character
  17708. END Test.
  17709. negative: modulo on variable characters
  17710. MODULE Test;
  17711. VAR character: CHAR; result: INTEGER;
  17712. BEGIN result := character MOD character
  17713. END Test.
  17714. positive: equal relation on variable characters
  17715. MODULE Test;
  17716. VAR character: CHAR; result: BOOLEAN;
  17717. BEGIN result := character = character
  17718. END Test.
  17719. positive: unequal relation on variable characters
  17720. MODULE Test;
  17721. VAR character: CHAR; result: BOOLEAN;
  17722. BEGIN result := character # character
  17723. END Test.
  17724. positive: less relation on variable characters
  17725. MODULE Test;
  17726. VAR character: CHAR; result: BOOLEAN;
  17727. BEGIN result := character < character
  17728. END Test.
  17729. positive: less or equal relation on variable characters
  17730. MODULE Test;
  17731. VAR character: CHAR; result: BOOLEAN;
  17732. BEGIN result := character <= character
  17733. END Test.
  17734. positive: greater relation on variable characters
  17735. MODULE Test;
  17736. VAR character: CHAR; result: BOOLEAN;
  17737. BEGIN result := character > character
  17738. END Test.
  17739. positive: greater or equal relation on variable characters
  17740. MODULE Test;
  17741. VAR character: CHAR; result: BOOLEAN;
  17742. BEGIN result := character >= character
  17743. END Test.
  17744. negative: set membership on variable characters
  17745. MODULE Test;
  17746. VAR character: CHAR; result: BOOLEAN;
  17747. BEGIN result := character IN character
  17748. END Test.
  17749. negative: type test on variable characters
  17750. MODULE Test;
  17751. VAR character: CHAR; result: BOOLEAN;
  17752. BEGIN result := character IS character
  17753. END Test.
  17754. negative: type test on variable character
  17755. MODULE Test;
  17756. VAR character: CHAR; result: BOOLEAN;
  17757. BEGIN result := character IS CHAR
  17758. END Test.
  17759. negative: type test on character type
  17760. MODULE Test;
  17761. TYPE Type = CHAR;
  17762. VAR character: Type; result: BOOLEAN;
  17763. BEGIN result := character IS Type
  17764. END Test.
  17765. negative: type guard on variable characters
  17766. MODULE Test;
  17767. VAR character, result: CHAR;
  17768. BEGIN result := character(character)
  17769. END Test.
  17770. negative: type guard on variable character
  17771. MODULE Test;
  17772. VAR character, result: CHAR;
  17773. BEGIN result := character(CHAR)
  17774. END Test.
  17775. negative: type guard on character type
  17776. MODULE Test;
  17777. TYPE Type = CHAR;
  17778. VAR character, result: Type;
  17779. BEGIN result := character(Type)
  17780. END Test.
  17781. negative: logical and on variable characters
  17782. MODULE Test;
  17783. VAR character: CHAR; result: BOOLEAN;
  17784. BEGIN result := character & character
  17785. END Test.
  17786. negative: logical or on variable characters
  17787. MODULE Test;
  17788. VAR character: CHAR; result: BOOLEAN;
  17789. BEGIN result := character OR character
  17790. END Test.
  17791. positive: ordinal value of variable character
  17792. MODULE Test;
  17793. VAR character: CHAR; result: INTEGER;
  17794. BEGIN result := ORD (character)
  17795. END Test.
  17796. negative: character value of variable character
  17797. MODULE Test;
  17798. VAR character, result: CHAR;
  17799. BEGIN result := CHR (character)
  17800. END Test.
  17801. negative: absolute value of variable character
  17802. MODULE Test;
  17803. VAR character, result: CHAR;
  17804. BEGIN result := ABS (character)
  17805. END Test.
  17806. negative: odd test on variable character
  17807. MODULE Test;
  17808. VAR character: CHAR; result: BOOLEAN;
  17809. BEGIN result := ODD (character)
  17810. END Test.
  17811. positive: capital letter of variable character
  17812. MODULE Test;
  17813. VAR character, result: CHAR;
  17814. BEGIN result := CAP (character)
  17815. END Test.
  17816. negative: arithmetic shift of variable characters
  17817. MODULE Test;
  17818. VAR character, result: CHAR;
  17819. BEGIN result := ASH (character, character)
  17820. END Test.
  17821. negative: short on variable character
  17822. MODULE Test;
  17823. VAR character, result: CHAR;
  17824. BEGIN result := SHORT (character)
  17825. END Test.
  17826. negative: long on variable character
  17827. MODULE Test;
  17828. VAR character, result: CHAR;
  17829. BEGIN result := LONG (character)
  17830. END Test.
  17831. negative: entier on variable character
  17832. MODULE Test;
  17833. VAR character, result: CHAR;
  17834. BEGIN result := ENTIER (character)
  17835. END Test.
  17836. negative: unary length of variable character
  17837. MODULE Test;
  17838. VAR character: CHAR; result: LONGINT;
  17839. BEGIN result := LEN (character)
  17840. END Test.
  17841. negative: binary length of variable character
  17842. MODULE Test;
  17843. VAR character: CHAR; result: LONGINT;
  17844. BEGIN result := LEN (character, 0)
  17845. END Test.
  17846. negative: indexing variable character
  17847. MODULE Test;
  17848. VAR character, result: CHAR;
  17849. BEGIN result := character[0]
  17850. END Test.
  17851. negative: variable character as index
  17852. MODULE Test;
  17853. VAR array: ARRAY 10 OF CHAR; result, character: CHAR;
  17854. BEGIN result := array[character]
  17855. END Test.
  17856. negative: member selection on variable character
  17857. MODULE Test;
  17858. VAR character, result: CHAR;
  17859. BEGIN result := character.member
  17860. END Test.
  17861. negative: calling variable character
  17862. MODULE Test;
  17863. VAR character: CHAR;
  17864. BEGIN character
  17865. END Test.
  17866. # variable integers
  17867. positive: arithmetic negation on variable integer
  17868. MODULE Test;
  17869. VAR integer, result: INTEGER;
  17870. BEGIN result := -integer;
  17871. END Test.
  17872. positive: multiple arithmetic negations on variable integer
  17873. MODULE Test;
  17874. VAR integer, result: INTEGER;
  17875. BEGIN result := -(-(-integer));
  17876. END Test.
  17877. negative: logical negation on variable integer
  17878. MODULE Test;
  17879. VAR integer: INTEGER; result: BOOLEAN;
  17880. BEGIN result := ~integer;
  17881. END Test.
  17882. negative: dereferencing variable integer
  17883. MODULE Test;
  17884. VAR integer, result: INTEGER;
  17885. BEGIN result := integer^;
  17886. END Test.
  17887. positive: addition on variable integers
  17888. MODULE Test;
  17889. VAR integer, result: INTEGER;
  17890. BEGIN result := integer + integer;
  17891. END Test.
  17892. positive: subtraction on variable integers
  17893. MODULE Test;
  17894. VAR integer, result: INTEGER;
  17895. BEGIN result := integer - integer
  17896. END Test.
  17897. positive: multiplication on variable integers
  17898. MODULE Test;
  17899. VAR integer, result: INTEGER;
  17900. BEGIN result := integer * integer
  17901. END Test.
  17902. positive: integer division on variable integers
  17903. MODULE Test;
  17904. VAR integer, result: INTEGER;
  17905. BEGIN result := integer DIV integer
  17906. END Test.
  17907. positive: real division on variable integers
  17908. MODULE Test;
  17909. VAR integer: INTEGER; result: REAL;
  17910. BEGIN result := integer / integer
  17911. END Test.
  17912. positive: modulo on variable integers
  17913. MODULE Test;
  17914. VAR integer, result: INTEGER;
  17915. BEGIN result := integer MOD integer
  17916. END Test.
  17917. positive: equal relation on variable integers
  17918. MODULE Test;
  17919. VAR integer: INTEGER; result: BOOLEAN;
  17920. BEGIN result := integer = integer
  17921. END Test.
  17922. positive: unequal relation on variable integers
  17923. MODULE Test;
  17924. VAR integer: INTEGER; result: BOOLEAN;
  17925. BEGIN result := integer # integer
  17926. END Test.
  17927. positive: less relation on variable integers
  17928. MODULE Test;
  17929. VAR integer: INTEGER; result: BOOLEAN;
  17930. BEGIN result := integer < integer
  17931. END Test.
  17932. positive: less or equal relation on variable integers
  17933. MODULE Test;
  17934. VAR integer: INTEGER; result: BOOLEAN;
  17935. BEGIN result := integer <= integer
  17936. END Test.
  17937. positive: greater relation on variable integers
  17938. MODULE Test;
  17939. VAR integer: INTEGER; result: BOOLEAN;
  17940. BEGIN result := integer > integer
  17941. END Test.
  17942. positive: greater or equal relation on variable integers
  17943. MODULE Test;
  17944. VAR integer: INTEGER; result: BOOLEAN;
  17945. BEGIN result := integer >= integer
  17946. END Test.
  17947. negative: set membership on variable integers
  17948. MODULE Test;
  17949. VAR integer: INTEGER; result: BOOLEAN;
  17950. BEGIN result := integer IN integer
  17951. END Test.
  17952. negative: type test on variable integers
  17953. MODULE Test;
  17954. VAR integer: INTEGER; result: BOOLEAN;
  17955. BEGIN result := integer IS integer
  17956. END Test.
  17957. negative: type test on variable integer
  17958. MODULE Test;
  17959. VAR integer: INTEGER; result: BOOLEAN;
  17960. BEGIN result := integer IS INTEGER
  17961. END Test.
  17962. negative: type test on integer type
  17963. MODULE Test;
  17964. TYPE Type = INTEGER;
  17965. VAR integer: Type; result: BOOLEAN;
  17966. BEGIN result := integer IS Type
  17967. END Test.
  17968. negative: type guard on variable integers
  17969. MODULE Test;
  17970. VAR integer, result: INTEGER;
  17971. BEGIN result := integer(integer)
  17972. END Test.
  17973. negative: type guard on variable integer
  17974. MODULE Test;
  17975. VAR integer, result: INTEGER;
  17976. BEGIN result := integer(INTEGER)
  17977. END Test.
  17978. negative: type guard on integer type
  17979. MODULE Test;
  17980. TYPE Type = INTEGER;
  17981. VAR integer, result: Type;
  17982. BEGIN result := integer(Type)
  17983. END Test.
  17984. negative: logical and on variable integers
  17985. MODULE Test;
  17986. VAR integer: INTEGER; result: BOOLEAN;
  17987. BEGIN result := integer & integer
  17988. END Test.
  17989. negative: logical or on variable integers
  17990. MODULE Test;
  17991. VAR integer: INTEGER; result: BOOLEAN;
  17992. BEGIN result := integer OR integer
  17993. END Test.
  17994. negative: ordinal value of variable integer
  17995. MODULE Test;
  17996. VAR integer, result: INTEGER;
  17997. BEGIN result := ORD (integer)
  17998. END Test.
  17999. positive: character value of variable integer
  18000. MODULE Test;
  18001. VAR integer: INTEGER; result: CHAR;
  18002. BEGIN result := CHR (integer)
  18003. END Test.
  18004. positive: absolute value of variable integer
  18005. MODULE Test;
  18006. VAR integer, result: INTEGER;
  18007. BEGIN result := ABS (integer)
  18008. END Test.
  18009. positive: odd test on variable integer
  18010. MODULE Test;
  18011. VAR integer: INTEGER; result: BOOLEAN;
  18012. BEGIN result := ODD (integer)
  18013. END Test.
  18014. negative: capital letter of variable integer
  18015. MODULE Test;
  18016. VAR integer: INTEGER; result: CHAR;
  18017. BEGIN result := CAP (integer)
  18018. END Test.
  18019. positive: arithmetic shift of variable integers
  18020. MODULE Test;
  18021. VAR integer: INTEGER; result: LONGINT;
  18022. BEGIN result := ASH (integer, integer)
  18023. END Test.
  18024. negative: short on variable short integer
  18025. MODULE Test;
  18026. VAR shortint, result: SHORTINT;
  18027. BEGIN result := SHORT (shortint)
  18028. END Test.
  18029. positive: short on variable integer
  18030. MODULE Test;
  18031. VAR integer, result: INTEGER;
  18032. BEGIN result := SHORT (integer)
  18033. END Test.
  18034. positive: short on variable long integer
  18035. MODULE Test;
  18036. VAR longint, result: LONGINT;
  18037. BEGIN result := SHORT (longint)
  18038. END Test.
  18039. positive: short on variable huge integer
  18040. MODULE Test;
  18041. VAR hugeint, result: HUGEINT;
  18042. BEGIN result := SHORT (hugeint)
  18043. END Test.
  18044. positive: long on variable short integer
  18045. MODULE Test;
  18046. VAR shortint, result: SHORTINT;
  18047. BEGIN result := SHORT (LONG (shortint))
  18048. END Test.
  18049. positive: long on variable integer
  18050. MODULE Test;
  18051. VAR integer, result: INTEGER;
  18052. BEGIN result := SHORT (LONG (integer))
  18053. END Test.
  18054. positive: long on variable long integer
  18055. MODULE Test;
  18056. VAR longint, result: LONGINT;
  18057. BEGIN result := SHORT (LONG (longint))
  18058. END Test.
  18059. negative: long on variable huge integer
  18060. MODULE Test;
  18061. VAR hugeint, result: HUGEINT;
  18062. BEGIN result := SHORT (LONG (hugeint))
  18063. END Test.
  18064. negative: entier on variable integer
  18065. MODULE Test;
  18066. VAR integer, result: LONGINT;
  18067. BEGIN result := ENTIER (integer)
  18068. END Test.
  18069. negative: unary length of variable integer
  18070. MODULE Test;
  18071. VAR integer: INTEGER; result: LONGINT;
  18072. BEGIN result := LEN (integer)
  18073. END Test.
  18074. negative: binary length of variable integer
  18075. MODULE Test;
  18076. VAR integer: INTEGER; result: LONGINT;
  18077. BEGIN result := LEN (integer, 0)
  18078. END Test.
  18079. negative: indexing variable integer
  18080. MODULE Test;
  18081. VAR integer: INTEGER; result: CHAR;
  18082. BEGIN result := integer[0]
  18083. END Test.
  18084. positive: variable integer as index
  18085. MODULE Test;
  18086. VAR array: ARRAY 10 OF CHAR; result: CHAR; integer: INTEGER;
  18087. BEGIN result := array[integer]
  18088. END Test.
  18089. positive: variable integer as index in two-dimensional array
  18090. MODULE Test;
  18091. VAR array: ARRAY 5, 10 OF CHAR; result: CHAR; integer: INTEGER;
  18092. BEGIN result := array[integer, integer]
  18093. END Test.
  18094. positive: variable integer as index in two-dimensional open array
  18095. MODULE Test;
  18096. PROCEDURE Procedure (CONST array: ARRAY OF ARRAY OF CHAR);
  18097. VAR result: CHAR; integer: INTEGER;
  18098. BEGIN result := array[integer, integer]; result := array[integer][integer]
  18099. END Procedure;
  18100. END Test.
  18101. negative: member selection on variable integer
  18102. MODULE Test;
  18103. VAR integer, result: INTEGER;
  18104. BEGIN result := integer.member
  18105. END Test.
  18106. negative: calling variable integer
  18107. MODULE Test;
  18108. VAR integer: INTEGER;
  18109. BEGIN integer
  18110. END Test.
  18111. # variable reals
  18112. positive: arithmetic negation on variable real
  18113. MODULE Test;
  18114. VAR real, result: REAL;
  18115. BEGIN result := -real;
  18116. END Test.
  18117. positive: multiple arithmetic negations on variable real
  18118. MODULE Test;
  18119. VAR real, result: REAL;
  18120. BEGIN result := -(-(-real));
  18121. END Test.
  18122. negative: logical negation on variable real
  18123. MODULE Test;
  18124. VAR real: REAL; result: BOOLEAN;
  18125. BEGIN result := ~real;
  18126. END Test.
  18127. negative: dereferencing variable real
  18128. MODULE Test;
  18129. VAR real, result: REAL;
  18130. BEGIN result := real^;
  18131. END Test.
  18132. positive: addition on variable reals
  18133. MODULE Test;
  18134. VAR real, result: REAL;
  18135. BEGIN result := real + real;
  18136. END Test.
  18137. positive: subtraction on variable reals
  18138. MODULE Test;
  18139. VAR real, result: REAL;
  18140. BEGIN result := real - real
  18141. END Test.
  18142. positive: multiplication on variable reals
  18143. MODULE Test;
  18144. VAR real, result: REAL;
  18145. BEGIN result := real * real
  18146. END Test.
  18147. negative: integer division on variable reals
  18148. MODULE Test;
  18149. VAR real: REAL; result: INTEGER;
  18150. BEGIN result := real DIV real
  18151. END Test.
  18152. positive: real division on variable reals
  18153. MODULE Test;
  18154. VAR real, result: REAL;
  18155. BEGIN result := real / real
  18156. END Test.
  18157. negative: modulo on variable reals
  18158. MODULE Test;
  18159. VAR real: REAL; result: INTEGER;
  18160. BEGIN result := real MOD real
  18161. END Test.
  18162. positive: equal relation on variable reals
  18163. MODULE Test;
  18164. VAR real: REAL; result: BOOLEAN;
  18165. BEGIN result := real = real
  18166. END Test.
  18167. positive: unequal relation on variable reals
  18168. MODULE Test;
  18169. VAR real: REAL; result: BOOLEAN;
  18170. BEGIN result := real # real
  18171. END Test.
  18172. positive: less relation on variable reals
  18173. MODULE Test;
  18174. VAR real: REAL; result: BOOLEAN;
  18175. BEGIN result := real < real
  18176. END Test.
  18177. positive: less or equal relation on variable reals
  18178. MODULE Test;
  18179. VAR real: REAL; result: BOOLEAN;
  18180. BEGIN result := real <= real
  18181. END Test.
  18182. positive: greater relation on variable reals
  18183. MODULE Test;
  18184. VAR real: REAL; result: BOOLEAN;
  18185. BEGIN result := real > real
  18186. END Test.
  18187. positive: greater or equal relation on variable reals
  18188. MODULE Test;
  18189. VAR real: REAL; result: BOOLEAN;
  18190. BEGIN result := real >= real
  18191. END Test.
  18192. negative: set membership on variable reals
  18193. MODULE Test;
  18194. VAR real: REAL; result: BOOLEAN;
  18195. BEGIN result := real IN real
  18196. END Test.
  18197. negative: type test on variable reals
  18198. MODULE Test;
  18199. VAR real: REAL; result: BOOLEAN;
  18200. BEGIN result := real IS real
  18201. END Test.
  18202. negative: type test on variable real
  18203. MODULE Test;
  18204. VAR real: REAL; result: BOOLEAN;
  18205. BEGIN result := real IS REAL
  18206. END Test.
  18207. negative: type test on real type
  18208. MODULE Test;
  18209. TYPE Type = REAL;
  18210. VAR real: Type; result: BOOLEAN;
  18211. BEGIN result := real IS Type
  18212. END Test.
  18213. negative: type guard on variable reals
  18214. MODULE Test;
  18215. VAR real, result: REAL;
  18216. BEGIN result := real(real)
  18217. END Test.
  18218. negative: type guard on variable real
  18219. MODULE Test;
  18220. VAR real, result: REAL;
  18221. BEGIN result := real(REAL)
  18222. END Test.
  18223. negative: type guard on real type
  18224. MODULE Test;
  18225. TYPE Type = REAL;
  18226. VAR real: Type; result: BOOLEAN;
  18227. BEGIN result := real(Type)
  18228. END Test.
  18229. negative: logical and on variable reals
  18230. MODULE Test;
  18231. VAR real: REAL; result: BOOLEAN;
  18232. BEGIN result := real & real
  18233. END Test.
  18234. negative: logical or on variable reals
  18235. MODULE Test;
  18236. VAR real: REAL; result: BOOLEAN;
  18237. BEGIN result := real OR real
  18238. END Test.
  18239. negative: ordinal value of variable real
  18240. MODULE Test;
  18241. VAR real: REAL; result: INTEGER;
  18242. BEGIN result := ORD (real)
  18243. END Test.
  18244. negative: character value of variable real
  18245. MODULE Test;
  18246. VAR real: REAL; result: CHAR;
  18247. BEGIN result := CHR (real)
  18248. END Test.
  18249. positive: absolute value of variable real
  18250. MODULE Test;
  18251. VAR real, result: REAL;
  18252. BEGIN result := ABS (real)
  18253. END Test.
  18254. negative: odd test on variable real
  18255. MODULE Test;
  18256. VAR real: REAL; result: BOOLEAN;
  18257. BEGIN result := ODD (real)
  18258. END Test.
  18259. negative: capital letter of variable real
  18260. MODULE Test;
  18261. VAR real: REAL; result: CHAR;
  18262. BEGIN result := CAP (real)
  18263. END Test.
  18264. negative: arithmetic shift of variable reals
  18265. MODULE Test;
  18266. VAR real, result: REAL;
  18267. BEGIN result := ASH (real, real)
  18268. END Test.
  18269. negative: short on variable real
  18270. MODULE Test;
  18271. VAR real, result: REAL;
  18272. BEGIN result := SHORT (real)
  18273. END Test.
  18274. positive: short on variable long real
  18275. MODULE Test;
  18276. VAR longreal, result: LONGREAL;
  18277. BEGIN result := SHORT (longreal)
  18278. END Test.
  18279. positive: long on variable real
  18280. MODULE Test;
  18281. VAR real, result: REAL;
  18282. BEGIN result := SHORT (LONG (real))
  18283. END Test.
  18284. negative: long on variable long real
  18285. MODULE Test;
  18286. VAR longreal, result: LONGREAL;
  18287. BEGIN result := SHORT (LONG (longreal))
  18288. END Test.
  18289. positive: entier on variable real
  18290. MODULE Test;
  18291. VAR real, result: REAL;
  18292. BEGIN result := ENTIER (real)
  18293. END Test.
  18294. positive: entier on variable long real
  18295. MODULE Test;
  18296. VAR longreal, result: LONGREAL;
  18297. BEGIN result := ENTIER (longreal)
  18298. END Test.
  18299. negative: unary length of variable real
  18300. MODULE Test;
  18301. VAR real: REAL; result: LONGINT;
  18302. BEGIN result := LEN (real)
  18303. END Test.
  18304. negative: binary length of variable real
  18305. MODULE Test;
  18306. VAR real: REAL; result: LONGINT;
  18307. BEGIN result := LEN (real, 0)
  18308. END Test.
  18309. negative: indexing variable real
  18310. MODULE Test;
  18311. VAR real: REAL; result: CHAR;
  18312. BEGIN result := real[0]
  18313. END Test.
  18314. negative: variable real as index
  18315. MODULE Test;
  18316. VAR array: ARRAY 10 OF CHAR; result: CHAR; real: REAL;
  18317. BEGIN result := array[real]
  18318. END Test.
  18319. negative: member selection on variable real
  18320. MODULE Test;
  18321. VAR real, result: REAL;
  18322. BEGIN result := real.member
  18323. END Test.
  18324. negative: calling variable real
  18325. MODULE Test;
  18326. VAR real: REAL;
  18327. BEGIN real
  18328. END Test.
  18329. # variable set
  18330. negative: variable boolean as set element
  18331. MODULE Test;
  18332. VAR boolean: BOOLEAN; result: SET;
  18333. BEGIN result := {boolean};
  18334. END Test.
  18335. negative: variable character as set element
  18336. MODULE Test;
  18337. VAR character: CHAR; result: SET;
  18338. BEGIN result := {character};
  18339. END Test.
  18340. positive: variable integer variable as set element
  18341. MODULE Test;
  18342. VAR integer: INTEGER; result: SET;
  18343. BEGIN result := {integer};
  18344. END Test.
  18345. negative: variable real as set element
  18346. MODULE Test;
  18347. VAR real: REAL; result: SET;
  18348. BEGIN result := {real};
  18349. END Test.
  18350. negative: variable set as set element
  18351. MODULE Test;
  18352. VAR set, result: SET;
  18353. BEGIN result := {set};
  18354. END Test.
  18355. positive: several equal variable set elements
  18356. MODULE Test;
  18357. VAR integer: INTEGER; result: SET;
  18358. BEGIN result := {integer, integer, integer};
  18359. END Test.
  18360. positive: several different variable set elements
  18361. MODULE Test;
  18362. VAR integer: INTEGER; result: SET;
  18363. BEGIN result := {integer, integer, integer};
  18364. END Test.
  18365. positive: variable set element range
  18366. MODULE Test;
  18367. VAR integer: INTEGER; result: SET;
  18368. BEGIN result := {integer..integer};
  18369. END Test.
  18370. positive: variable set element range with single element
  18371. MODULE Test;
  18372. VAR integer: INTEGER; result: SET;
  18373. BEGIN result := {integer..integer};
  18374. END Test.
  18375. positive: empty variable set element range
  18376. MODULE Test;
  18377. VAR integer: INTEGER; result: SET;
  18378. BEGIN result := {integer..integer};
  18379. END Test.
  18380. positive: complement on variable set
  18381. MODULE Test;
  18382. VAR set, result: SET;
  18383. BEGIN result := -set;
  18384. END Test.
  18385. positive: multiple complements on variable set
  18386. MODULE Test;
  18387. VAR set, result: SET;
  18388. BEGIN result := -(-(-set));
  18389. END Test.
  18390. negative: logical negation on variable set
  18391. MODULE Test;
  18392. VAR set: SET; result: BOOLEAN;
  18393. BEGIN result := ~set;
  18394. END Test.
  18395. negative: dereferencing variable set
  18396. MODULE Test;
  18397. VAR set, result: SET;
  18398. BEGIN result := set^;
  18399. END Test.
  18400. positive: union on variable sets
  18401. MODULE Test;
  18402. VAR set, result: SET;
  18403. BEGIN result := set + set;
  18404. END Test.
  18405. positive: difference on variable sets
  18406. MODULE Test;
  18407. VAR set, result: SET;
  18408. BEGIN result := set - set
  18409. END Test.
  18410. positive: intersection on variable sets
  18411. MODULE Test;
  18412. VAR set, result: SET;
  18413. BEGIN result := set * set
  18414. END Test.
  18415. negative: integer division on variable sets
  18416. MODULE Test;
  18417. VAR set: SET; result: INTEGER;
  18418. BEGIN result := set DIV set
  18419. END Test.
  18420. positive: symmetric difference on variable sets
  18421. MODULE Test;
  18422. VAR set, result: SET;
  18423. BEGIN result := set / set
  18424. END Test.
  18425. negative: modulo on variable sets
  18426. MODULE Test;
  18427. VAR set: SET; result: INTEGER;
  18428. BEGIN result := set MOD set
  18429. END Test.
  18430. positive: equal relation on variable sets
  18431. MODULE Test;
  18432. VAR set: SET; result: BOOLEAN;
  18433. BEGIN result := set = set
  18434. END Test.
  18435. positive: unequal relation on variable sets
  18436. MODULE Test;
  18437. VAR set: SET; result: BOOLEAN;
  18438. BEGIN result := set # set
  18439. END Test.
  18440. positive: less relation on variable sets
  18441. MODULE Test;
  18442. VAR set: SET; result: BOOLEAN;
  18443. BEGIN result := set < set
  18444. END Test.
  18445. positive: less or equal relation on variable sets
  18446. MODULE Test;
  18447. VAR set: SET; result: BOOLEAN;
  18448. BEGIN result := set <= set
  18449. END Test.
  18450. positive: greater relation on variable sets
  18451. MODULE Test;
  18452. VAR set: SET; result: BOOLEAN;
  18453. BEGIN result := set > set
  18454. END Test.
  18455. positive: greater or equal relation on variable sets
  18456. MODULE Test;
  18457. VAR set: SET; result: BOOLEAN;
  18458. BEGIN result := set >= set
  18459. END Test.
  18460. negative: set membership on variable sets
  18461. MODULE Test;
  18462. VAR set: SET; result: BOOLEAN;
  18463. BEGIN result := set IN set
  18464. END Test.
  18465. positive: set membership on integer and variable set
  18466. MODULE Test;
  18467. VAR integer: INTEGER; set: SET; result: BOOLEAN;
  18468. BEGIN result := integer IN set
  18469. END Test.
  18470. negative: type test on variable sets
  18471. MODULE Test;
  18472. VAR set: SET; result: BOOLEAN;
  18473. BEGIN result := set IS set
  18474. END Test.
  18475. negative: type test on variable set
  18476. MODULE Test;
  18477. VAR set: SET; result: BOOLEAN;
  18478. BEGIN result := set IS SET
  18479. END Test.
  18480. negative: type test on set type
  18481. MODULE Test;
  18482. TYPE Type = SET;
  18483. VAR set: Type; result: BOOLEAN;
  18484. BEGIN result := set IS Type
  18485. END Test.
  18486. negative: type guard on variable sets
  18487. MODULE Test;
  18488. VAR set, result: SET;
  18489. BEGIN result := set(set)
  18490. END Test.
  18491. negative: type guard on variable set
  18492. MODULE Test;
  18493. VAR set, result: SET;
  18494. BEGIN result := set(SET)
  18495. END Test.
  18496. negative: type guard on set type
  18497. MODULE Test;
  18498. TYPE Type = SET;
  18499. VAR set, result: Type;
  18500. BEGIN result := set(Type)
  18501. END Test.
  18502. negative: logical and on variable sets
  18503. MODULE Test;
  18504. VAR set: SET; result: BOOLEAN;
  18505. BEGIN result := set & set
  18506. END Test.
  18507. negative: logical or on variable sets
  18508. MODULE Test;
  18509. VAR set: SET; result: BOOLEAN;
  18510. BEGIN result := set OR set
  18511. END Test.
  18512. negative: ordinal value of variable set
  18513. MODULE Test;
  18514. VAR set: SET; result: INTEGER;
  18515. BEGIN result := ORD (set)
  18516. END Test.
  18517. negative: character value of variable set
  18518. MODULE Test;
  18519. VAR set: SET; result: CHAR;
  18520. BEGIN result := CHR (set)
  18521. END Test.
  18522. negative: absolute value of variable set
  18523. MODULE Test;
  18524. VAR set, result: SET;
  18525. BEGIN result := ABS (set)
  18526. END Test.
  18527. negative: odd test on variable set
  18528. MODULE Test;
  18529. VAR set: SET; result: BOOLEAN;
  18530. BEGIN result := ODD (set)
  18531. END Test.
  18532. negative: capital letter of variable set
  18533. MODULE Test;
  18534. VAR set: SET; result: CHAR;
  18535. BEGIN result := CAP (set)
  18536. END Test.
  18537. negative: arithmetic shift of variable sets
  18538. MODULE Test;
  18539. VAR set, result: SET;
  18540. BEGIN result := ASH (set, set)
  18541. END Test.
  18542. negative: short on variable set
  18543. MODULE Test;
  18544. VAR set, result: SET;
  18545. BEGIN result := SHORT (set)
  18546. END Test.
  18547. negative: long on variable set
  18548. MODULE Test;
  18549. VAR set, result: SET;
  18550. BEGIN result := LONG (set)
  18551. END Test.
  18552. negative: entier on variable set
  18553. MODULE Test;
  18554. VAR set, result: SET;
  18555. BEGIN result := ENTIER (set)
  18556. END Test.
  18557. negative: unary length of variable set
  18558. MODULE Test;
  18559. VAR set: SET; result: LONGINT;
  18560. BEGIN result := LEN (set)
  18561. END Test.
  18562. negative: binary length of variable set
  18563. MODULE Test;
  18564. VAR set: SET; result: LONGINT;
  18565. BEGIN result := LEN (set, 0)
  18566. END Test.
  18567. negative: indexing variable set
  18568. MODULE Test;
  18569. VAR set: SET; result: CHAR;
  18570. BEGIN result := set[0]
  18571. END Test.
  18572. negative: variable set as index
  18573. MODULE Test;
  18574. VAR array: ARRAY 10 OF CHAR; result: CHAR; set: SET;
  18575. BEGIN result := array[set]
  18576. END Test.
  18577. negative: member selection on variable set
  18578. MODULE Test;
  18579. VAR set, result: SET;
  18580. BEGIN result := set.member
  18581. END Test.
  18582. negative: calling variable set
  18583. MODULE Test;
  18584. VAR set: SET;
  18585. BEGIN set
  18586. END Test.
  18587. # variable arrays
  18588. negative: arithmetic negation on variable array
  18589. MODULE Test;
  18590. VAR array, result: ARRAY 10 OF SET;
  18591. BEGIN result := -array;
  18592. END Test.
  18593. negative: logical negation on variable array
  18594. MODULE Test;
  18595. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18596. BEGIN result := ~array;
  18597. END Test.
  18598. negative: dereferencing variable array
  18599. MODULE Test;
  18600. VAR array, result: ARRAY 10 OF SET;
  18601. BEGIN result := array^;
  18602. END Test.
  18603. negative: addition on variable arrays
  18604. MODULE Test;
  18605. VAR array, result: ARRAY 10 OF SET;
  18606. BEGIN result := array + array;
  18607. END Test.
  18608. negative: subtraction on variable arrays
  18609. MODULE Test;
  18610. VAR array, result: ARRAY 10 OF SET;
  18611. BEGIN result := array - array
  18612. END Test.
  18613. negative: multiplication on variable arrays
  18614. MODULE Test;
  18615. VAR array, result: ARRAY 10 OF SET;
  18616. BEGIN result := array * array
  18617. END Test.
  18618. negative: integer division on variable arrays
  18619. MODULE Test;
  18620. VAR array: ARRAY 10 OF SET; result: INTEGER;
  18621. BEGIN result := array DIV array
  18622. END Test.
  18623. negative: real division on variable arrays
  18624. MODULE Test;
  18625. VAR array: ARRAY 10 OF SET; result: REAL;
  18626. BEGIN result := array / array
  18627. END Test.
  18628. negative: modulo on variable arrays
  18629. MODULE Test;
  18630. VAR array: ARRAY 10 OF SET; result: INTEGER;
  18631. BEGIN result := array MOD array
  18632. END Test.
  18633. negative: equal relation on variable arrays
  18634. MODULE Test;
  18635. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18636. BEGIN result := array = array
  18637. END Test.
  18638. positive: equal relation on variable arrays of character
  18639. MODULE Test;
  18640. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18641. BEGIN result := array = array
  18642. END Test.
  18643. positive: equal relation on variable array of character and string
  18644. MODULE Test;
  18645. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18646. BEGIN result := array = "string"
  18647. END Test.
  18648. negative: unequal relation on variable arrays
  18649. MODULE Test;
  18650. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18651. BEGIN result := array # array
  18652. END Test.
  18653. positive: unequal relation on variable arrays of character
  18654. MODULE Test;
  18655. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18656. BEGIN result := array # array
  18657. END Test.
  18658. positive: unequal relation on variable array of character and string
  18659. MODULE Test;
  18660. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18661. BEGIN result := array # "string"
  18662. END Test.
  18663. negative: less relation on variable arrays
  18664. MODULE Test;
  18665. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18666. BEGIN result := array < array
  18667. END Test.
  18668. positive: less relation on variable arrays of character
  18669. MODULE Test;
  18670. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18671. BEGIN result := array < array
  18672. END Test.
  18673. positive: less relation on variable array of character and string
  18674. MODULE Test;
  18675. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18676. BEGIN result := array < "string"
  18677. END Test.
  18678. negative: less or equal relation on variable arrays
  18679. MODULE Test;
  18680. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18681. BEGIN result := array <= array
  18682. END Test.
  18683. positive: less or equal relation on variable arrays of character
  18684. MODULE Test;
  18685. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18686. BEGIN result := array <= array
  18687. END Test.
  18688. positive: less or equal relation on variable array of character and string
  18689. MODULE Test;
  18690. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18691. BEGIN result := array <= "string"
  18692. END Test.
  18693. negative: greater relation on variable arrays
  18694. MODULE Test;
  18695. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18696. BEGIN result := array > array
  18697. END Test.
  18698. positive: greater relation on variable arrays of character
  18699. MODULE Test;
  18700. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18701. BEGIN result := array > array
  18702. END Test.
  18703. positive: greater relation on variable array of character and string
  18704. MODULE Test;
  18705. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18706. BEGIN result := array > "string"
  18707. END Test.
  18708. negative: greater or equal relation on variable arrays
  18709. MODULE Test;
  18710. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18711. BEGIN result := array >= array
  18712. END Test.
  18713. positive: greater or equal relation on variable arrays of character
  18714. MODULE Test;
  18715. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18716. BEGIN result := array >= array
  18717. END Test.
  18718. positive: greater or equal relation on variable array of character and string
  18719. MODULE Test;
  18720. VAR array: ARRAY 10 OF CHAR; result: BOOLEAN;
  18721. BEGIN result := array >= "string"
  18722. END Test.
  18723. negative: set membership on variable arrays
  18724. MODULE Test;
  18725. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18726. BEGIN result := array IN array
  18727. END Test.
  18728. negative: type test on variable arrays
  18729. MODULE Test;
  18730. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18731. BEGIN result := array IS array
  18732. END Test.
  18733. negative: type test on variable array
  18734. MODULE Test;
  18735. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18736. BEGIN result := array IS ARRAY 10 OF SET
  18737. END Test.
  18738. negative: type test on array type
  18739. MODULE Test;
  18740. TYPE Type = ARRAY 10 OF SET;
  18741. VAR array: Type; result: BOOLEAN;
  18742. BEGIN result := array IS Type
  18743. END Test.
  18744. negative: type guard on variable arrays
  18745. MODULE Test;
  18746. VAR array, result: ARRAY 10 OF SET;
  18747. BEGIN result := array(array)
  18748. END Test.
  18749. negative: type guard on variable array
  18750. MODULE Test;
  18751. VAR array, result: ARRAY 10 OF SET;
  18752. BEGIN result := array(ARRAY 10 OF SET)
  18753. END Test.
  18754. negative: type guard on array type
  18755. MODULE Test;
  18756. TYPE Type = ARRAY 10 OF SET;
  18757. VAR array, result: Type;
  18758. BEGIN result := array(Type)
  18759. END Test.
  18760. negative: logical and on variable arrays
  18761. MODULE Test;
  18762. VAR array, result: ARRAY 10 OF SET;
  18763. BEGIN result := array & array
  18764. END Test.
  18765. negative: logical or on variable arrays
  18766. MODULE Test;
  18767. VAR array, result: ARRAY 10 OF SET;
  18768. BEGIN result := array OR array
  18769. END Test.
  18770. negative: ordinal value of variable array
  18771. MODULE Test;
  18772. VAR array: ARRAY 10 OF SET; result: INTEGER;
  18773. BEGIN result := ORD (array)
  18774. END Test.
  18775. negative: character value of variable array
  18776. MODULE Test;
  18777. VAR array: ARRAY 10 OF SET; result: CHAR;
  18778. BEGIN result := CHR (array)
  18779. END Test.
  18780. negative: absolute value of variable array
  18781. MODULE Test;
  18782. VAR array, result: ARRAY 10 OF SET;
  18783. BEGIN result := ABS (array)
  18784. END Test.
  18785. negative: odd test on variable array
  18786. MODULE Test;
  18787. VAR array: ARRAY 10 OF SET; result: BOOLEAN;
  18788. BEGIN result := ODD (array)
  18789. END Test.
  18790. negative: capital letter of variable array
  18791. MODULE Test;
  18792. VAR array: ARRAY 10 OF SET; result: CHAR;
  18793. BEGIN result := CAP (array)
  18794. END Test.
  18795. negative: arithmetic shift of variable arrays
  18796. MODULE Test;
  18797. VAR array, result: ARRAY 10 OF SET;
  18798. BEGIN result := ASH (array, array)
  18799. END Test.
  18800. negative: short on variable array
  18801. MODULE Test;
  18802. VAR array, result: ARRAY 10 OF SET;
  18803. BEGIN result := SHORT (array)
  18804. END Test.
  18805. negative: long on variable array
  18806. MODULE Test;
  18807. VAR array, result: ARRAY 10 OF SET;
  18808. BEGIN result := LONG (array)
  18809. END Test.
  18810. negative: entier on variable array
  18811. MODULE Test;
  18812. VAR array, result: ARRAY 10 OF SET;
  18813. BEGIN result := ENTIER (array)
  18814. END Test.
  18815. positive: unary length of variable array
  18816. MODULE Test;
  18817. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18818. BEGIN result := LEN (array); ASSERT (LEN (array) = 10);
  18819. END Test.
  18820. positive: unary length of variable array as short integer
  18821. MODULE Test;
  18822. VAR array: ARRAY 10 OF CHAR; result: SHORTINT;
  18823. BEGIN result := LEN (array);
  18824. END Test.
  18825. positive: unary length of variable array as integer
  18826. MODULE Test;
  18827. VAR array: ARRAY 10 OF CHAR; result: INTEGER;
  18828. BEGIN result := LEN (array);
  18829. END Test.
  18830. positive: unary length of variable array as long integer
  18831. MODULE Test;
  18832. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18833. BEGIN result := LEN (array);
  18834. END Test.
  18835. positive: unary length of variable array as huge integer
  18836. MODULE Test;
  18837. VAR array: ARRAY 10 OF CHAR; result: HUGEINT;
  18838. BEGIN result := LEN (array);
  18839. END Test.
  18840. positive: unary length of variable open array
  18841. MODULE Test;
  18842. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18843. VAR result: LONGINT;
  18844. BEGIN result := LEN (array)
  18845. END Procedure
  18846. END Test.
  18847. negative: unary length of variable open array as short integer
  18848. MODULE Test;
  18849. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18850. VAR result: SHORTINT;
  18851. BEGIN result := LEN (array)
  18852. END Procedure
  18853. END Test.
  18854. negative: unary length of variable open array as integer
  18855. MODULE Test;
  18856. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18857. VAR result: INTEGER;
  18858. BEGIN result := LEN (array)
  18859. END Procedure
  18860. END Test.
  18861. positive: unary length of variable open array as long integer
  18862. MODULE Test;
  18863. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18864. VAR result: LONGINT;
  18865. BEGIN result := LEN (array)
  18866. END Procedure
  18867. END Test.
  18868. positive: unary length of variable open array as huge integer
  18869. MODULE Test;
  18870. PROCEDURE Procedure (array: ARRAY OF CHAR);
  18871. VAR result: HUGEINT;
  18872. BEGIN result := LEN (array)
  18873. END Procedure
  18874. END Test.
  18875. positive: unary length of two-dimensional variable array
  18876. MODULE Test;
  18877. CONST Length = LEN (array);
  18878. VAR array: ARRAY 10, 20 OF CHAR; result: LONGINT;
  18879. BEGIN result := LEN (array); ASSERT (Length = 10);
  18880. END Test.
  18881. positive: unary length of two-dimensional variable open array
  18882. MODULE Test;
  18883. PROCEDURE Procedure (array: ARRAY OF ARRAY OF CHAR);
  18884. VAR result: LONGINT;
  18885. BEGIN result := LEN (array);
  18886. END Procedure;
  18887. END Test.
  18888. negative: unary length of array as its size
  18889. MODULE Test;
  18890. VAR a: ARRAY LEN (a) OF CHAR;
  18891. END Test.
  18892. negative: indirect unary length of array as its size
  18893. MODULE Test;
  18894. CONST Length = LEN (a)
  18895. VAR a: ARRAY Length OF CHAR;
  18896. END Test.
  18897. positive: unary length of array as size of another array
  18898. MODULE Test;
  18899. VAR a: ARRAY 10 OF CHAR; b: ARRAY LEN (a) OF CHAR;
  18900. BEGIN a := b;
  18901. END Test.
  18902. positive: indirect unary array as size of another array
  18903. MODULE Test;
  18904. CONST Length = LEN (a)
  18905. VAR a: ARRAY 10 OF CHAR; b: ARRAY Length OF CHAR;
  18906. BEGIN a := b;
  18907. END Test.
  18908. positive: binary length of variable array
  18909. MODULE Test;
  18910. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18911. BEGIN result := LEN (array); ASSERT (LEN (array, 0) = 10); ASSERT (LEN (array, 0) = LEN (array));
  18912. END Test.
  18913. positive: constant binary length of variable array as short integer
  18914. MODULE Test;
  18915. VAR array: ARRAY 10 OF CHAR; result: SHORTINT;
  18916. BEGIN result := LEN (array, 0);
  18917. END Test.
  18918. positive: constant binary length of variable array as integer
  18919. MODULE Test;
  18920. VAR array: ARRAY 10 OF CHAR; result: INTEGER;
  18921. BEGIN result := LEN (array, 0);
  18922. END Test.
  18923. positive: constant binary length of variable array as long integer
  18924. MODULE Test;
  18925. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18926. BEGIN result := LEN (array, 0);
  18927. END Test.
  18928. positive: constant binary length of variable array as huge integer
  18929. MODULE Test;
  18930. VAR array: ARRAY 10 OF CHAR; result: HUGEINT;
  18931. BEGIN result := LEN (array, 0);
  18932. END Test.
  18933. negative: binary length of variable array with negative dimension index
  18934. MODULE Test;
  18935. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18936. BEGIN result := LEN (array, -1);
  18937. END Test.
  18938. negative: binary length of variable array with invalid dimension index
  18939. MODULE Test;
  18940. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18941. BEGIN result := LEN (array, 1);
  18942. END Test.
  18943. positive: binary length of variable array with variable dimension index
  18944. MODULE Test;
  18945. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: INTEGER;
  18946. BEGIN result := LEN (array, dimension);
  18947. END Test.
  18948. negative: binary length of variable array with boolean as dimension index
  18949. MODULE Test;
  18950. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: BOOLEAN;
  18951. BEGIN result := LEN (array, dimension);
  18952. END Test.
  18953. negative: binary length of variable array with character as dimension index
  18954. MODULE Test;
  18955. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: CHAR;
  18956. BEGIN result := LEN (array, dimension);
  18957. END Test.
  18958. positive: binary length of variable array with integer as dimension index
  18959. MODULE Test;
  18960. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: INTEGER;
  18961. BEGIN result := LEN (array, dimension);
  18962. END Test.
  18963. negative: binary length of variable array with real as dimension index
  18964. MODULE Test;
  18965. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: REAL;
  18966. BEGIN result := LEN (array, dimension);
  18967. END Test.
  18968. negative: binary length of variable array with set as dimension index
  18969. MODULE Test;
  18970. VAR array: ARRAY 10 OF CHAR; result: LONGINT; dimension: SET;
  18971. BEGIN result := LEN (array, dimension);
  18972. END Test.
  18973. negative: binary length of variable array with constant string as dimension index
  18974. MODULE Test;
  18975. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18976. BEGIN result := LEN (array, "index");
  18977. END Test.
  18978. negative: binary length of variable array with nil pointer as dimension index
  18979. MODULE Test;
  18980. VAR array: ARRAY 10 OF CHAR; result: LONGINT;
  18981. BEGIN result := LEN (array, NIL);
  18982. END Test.
  18983. positive: binary length of two-dimensional variable array
  18984. MODULE Test;
  18985. CONST Length0 = LEN (array, 0); Length1 = LEN (array, 1)
  18986. VAR array: ARRAY 10, 20 OF CHAR; result: LONGINT;
  18987. BEGIN result := LEN (array, 0); ASSERT (Length0 = 10); ASSERT (Length1 = 20);
  18988. END Test.
  18989. positive: binary length of two-dimensional variable open array
  18990. MODULE Test;
  18991. PROCEDURE Procedure (array: ARRAY OF ARRAY OF CHAR);
  18992. VAR result: LONGINT;
  18993. BEGIN result := LEN (array, 0); result := LEN (array, 1);
  18994. END Procedure;
  18995. END Test.
  18996. negative: binary length of array as its size
  18997. MODULE Test;
  18998. VAR array: ARRAY LEN (array, 0), LEN (array, 1) OF CHAR;
  18999. END Test.
  19000. negative: indirect binary length of array as its size
  19001. MODULE Test;
  19002. CONST Length0 = LEN (array, 0); Length1 = LEN (array, 1)
  19003. VAR array: ARRAY Length0, Length1 OF CHAR;
  19004. END Test.
  19005. positive: binary length of array as size of another array
  19006. MODULE Test;
  19007. VAR a: ARRAY 10, 20 OF CHAR; b: ARRAY LEN (a, 0), LEN (a, 1) OF CHAR;
  19008. BEGIN a := b;
  19009. END Test.
  19010. positive: indirect binary array as size of another array
  19011. MODULE Test;
  19012. CONST Length0 = LEN (a, 0); Length1 = LEN (a, 1)
  19013. VAR a: ARRAY 10, 20 OF CHAR; b: ARRAY Length0, Length1 OF CHAR;
  19014. BEGIN a := b;
  19015. END Test.
  19016. positive: array length constants
  19017. MODULE Test;
  19018. CONST
  19019. ls1=LEN(s1,0);
  19020. ls20=LEN(s2,0);
  19021. ls21=LEN(s2,1);
  19022. lp1=LEN(p1);
  19023. lp20=LEN(p2,0);
  19024. lp21=LEN(p2,1);
  19025. lp31=LEN(p3,1);
  19026. lp32=LEN(p3,2);
  19027. VAR
  19028. s1: ARRAY 2 OF CHAR;
  19029. s2: ARRAY 2 OF ARRAY 12 OF CHAR;
  19030. p1: POINTER TO ARRAY 2 OF CHAR;
  19031. p2: POINTER TO ARRAY 2 OF ARRAY 12 OF CHAR;
  19032. p3: POINTER TO ARRAY OF ARRAY 2 OF ARRAY 12 OF CHAR;
  19033. BEGIN
  19034. ASSERT(ls1=2);
  19035. ASSERT(ls20=2);
  19036. ASSERT(ls21=12);
  19037. ASSERT(lp1=2);
  19038. ASSERT(lp20=2);
  19039. ASSERT(lp21=12);
  19040. ASSERT(lp31=2);
  19041. ASSERT(lp32=12);
  19042. END Test.
  19043. positive: binary length of variable open array
  19044. MODULE Test;
  19045. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19046. VAR result: LONGINT;
  19047. BEGIN result := LEN (array, 0);
  19048. END Procedure;
  19049. END Test.
  19050. negative: binary length of variable open array as short integer
  19051. MODULE Test;
  19052. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19053. VAR result: SHORTINT;
  19054. BEGIN result := LEN (array, 0);
  19055. END Procedure;
  19056. END Test.
  19057. negative: binary length of variable open array as integer
  19058. MODULE Test;
  19059. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19060. VAR result: INTEGER;
  19061. BEGIN result := LEN (array, 0);
  19062. END Procedure;
  19063. END Test.
  19064. positive: binary length of variable open array as long integer
  19065. MODULE Test;
  19066. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19067. VAR result: LONGINT;
  19068. BEGIN result := LEN (array);
  19069. END Procedure;
  19070. END Test.
  19071. positive: binary length of variable open array as huge integer
  19072. MODULE Test;
  19073. PROCEDURE Procedure (array: ARRAY OF CHAR);
  19074. VAR result: HUGEINT;
  19075. BEGIN result := LEN (array);
  19076. END Procedure;
  19077. END Test.
  19078. positive: indexing variable boolean array
  19079. MODULE Test;
  19080. VAR array: ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  19081. BEGIN result := array[0]
  19082. END Test.
  19083. positive: indexing temporary boolean array
  19084. MODULE Test;
  19085. VAR array: PROCEDURE (): ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  19086. BEGIN result := array()[0]
  19087. END Test.
  19088. negative: changing indexed temporary boolean array
  19089. MODULE Test;
  19090. VAR array: PROCEDURE (): ARRAY 10 OF BOOLEAN;
  19091. BEGIN array()[0] := TRUE;
  19092. END Test.
  19093. positive: indexing variable character array
  19094. MODULE Test;
  19095. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  19096. BEGIN result := array[0]
  19097. END Test.
  19098. positive: indexing temporary character array
  19099. MODULE Test;
  19100. VAR array: PROCEDURE (): ARRAY 10 OF CHAR; result: CHAR;
  19101. BEGIN result := array()[0]
  19102. END Test.
  19103. negative: changing indexed temporary character array
  19104. MODULE Test;
  19105. VAR array: PROCEDURE (): ARRAY 10 OF CHAR;
  19106. BEGIN array()[0] := '0';
  19107. END Test.
  19108. positive: indexing variable integer array
  19109. MODULE Test;
  19110. VAR array: ARRAY 10 OF INTEGER; result: INTEGER;
  19111. BEGIN result := array[0]
  19112. END Test.
  19113. positive: indexing temporary integer array
  19114. MODULE Test;
  19115. VAR array: PROCEDURE (): ARRAY 10 OF INTEGER; result: INTEGER;
  19116. BEGIN result := array()[0]
  19117. END Test.
  19118. negative: changing indexed temporary integer array
  19119. MODULE Test;
  19120. VAR array: PROCEDURE (): ARRAY 10 OF INTEGER;
  19121. BEGIN array()[0] := 5;
  19122. END Test.
  19123. positive: indexing variable real array
  19124. MODULE Test;
  19125. VAR array: ARRAY 10 OF REAL; result: REAL;
  19126. BEGIN result := array[0]
  19127. END Test.
  19128. positive: indexing temporary real array
  19129. MODULE Test;
  19130. VAR array: PROCEDURE (): ARRAY 10 OF REAL; result: REAL;
  19131. BEGIN result := array()[0]
  19132. END Test.
  19133. negative: changing indexed temporary real array
  19134. MODULE Test;
  19135. VAR array: PROCEDURE (): ARRAY 10 OF REAL;
  19136. BEGIN array()[0] := 5.0;
  19137. END Test.
  19138. positive: indexing variable set array
  19139. MODULE Test;
  19140. VAR array: ARRAY 10 OF SET; result: SET;
  19141. BEGIN result := array[0]
  19142. END Test.
  19143. positive: indexing temporary set array
  19144. MODULE Test;
  19145. VAR array: PROCEDURE (): ARRAY 10 OF SET; result: SET;
  19146. BEGIN result := array()[0]
  19147. END Test.
  19148. negative: changing indexed temporary set array
  19149. MODULE Test;
  19150. VAR array: PROCEDURE (): ARRAY 10 OF SET;
  19151. BEGIN array()[0] := {5};
  19152. END Test.
  19153. positive: indexing variable array of array
  19154. MODULE Test;
  19155. VAR array: ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  19156. BEGIN result := array[0]
  19157. END Test.
  19158. positive: indexing temporary array of array
  19159. MODULE Test;
  19160. VAR array: PROCEDURE (): ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  19161. BEGIN result := array()[0]
  19162. END Test.
  19163. negative: changing indexed temporary array of array
  19164. MODULE Test;
  19165. VAR array: PROCEDURE (): ARRAY 10 OF ARRAY 10 OF CHAR; value: ARRAY 10 OF CHAR;
  19166. BEGIN array()[0] := value;
  19167. END Test.
  19168. positive: indexing variable record array
  19169. MODULE Test;
  19170. TYPE Record = RECORD END;
  19171. VAR array: ARRAY 10 OF Record; result: Record;
  19172. BEGIN result := array[0]
  19173. END Test.
  19174. positive: indexing temporary record array
  19175. MODULE Test;
  19176. TYPE Record = RECORD END;
  19177. VAR array: PROCEDURE (): ARRAY 10 OF Record; result: Record;
  19178. BEGIN result := array()[0]
  19179. END Test.
  19180. negative: changing indexed temporary record array
  19181. MODULE Test;
  19182. TYPE Record = RECORD END;
  19183. VAR array: PROCEDURE (): ARRAY 10 OF Record; value: Record;
  19184. BEGIN array()[0] := value;
  19185. END Test.
  19186. negative: changing member of indexed temporary record array
  19187. MODULE Test;
  19188. TYPE Record = RECORD i: INTEGER END;
  19189. VAR array: PROCEDURE (): ARRAY 10 OF Record;
  19190. BEGIN array()[0].i := 5;
  19191. END Test.
  19192. positive: indexing variable object array
  19193. MODULE Test;
  19194. TYPE Object = OBJECT END Object;
  19195. VAR array: ARRAY 10 OF Object; result: Object;
  19196. BEGIN result := array[0]
  19197. END Test.
  19198. positive: indexing temporary object array
  19199. MODULE Test;
  19200. TYPE Object = OBJECT END Object;
  19201. VAR array: PROCEDURE (): ARRAY 10 OF Object; result: Object;
  19202. BEGIN result := array()[0]
  19203. END Test.
  19204. negative: changing indexed temporary object array
  19205. MODULE Test;
  19206. TYPE Object = OBJECT END Object;
  19207. VAR array: PROCEDURE (): ARRAY 10 OF Object; value: Object;
  19208. BEGIN array()[0] := value;
  19209. END Test.
  19210. positive: changing member of indexed temporary object array
  19211. MODULE Test;
  19212. TYPE Object = OBJECT VAR i: INTEGER END Object;
  19213. VAR array: PROCEDURE (): ARRAY 10 OF Object;
  19214. BEGIN array()[0].i := 5;
  19215. END Test.
  19216. positive: indexing variable base object array
  19217. MODULE Test;
  19218. VAR array: ARRAY 10 OF OBJECT; result: OBJECT;
  19219. BEGIN result := array[0]
  19220. END Test.
  19221. positive: indexing temporary base object array
  19222. MODULE Test;
  19223. VAR array: PROCEDURE (): ARRAY 10 OF OBJECT; result: OBJECT;
  19224. BEGIN result := array()[0]
  19225. END Test.
  19226. negative: changing indexed temporary base object array
  19227. MODULE Test;
  19228. VAR array: PROCEDURE (): ARRAY 10 OF OBJECT; value: OBJECT;
  19229. BEGIN array()[0] := value;
  19230. END Test.
  19231. positive: indexing variable pointer to array array
  19232. MODULE Test;
  19233. VAR array: ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  19234. BEGIN result := array[0]
  19235. END Test.
  19236. positive: indexing temporary pointer to array array
  19237. MODULE Test;
  19238. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  19239. BEGIN result := array()[0]
  19240. END Test.
  19241. negative: changing indexed temporary pointer to array array
  19242. MODULE Test;
  19243. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; value: POINTER TO ARRAY 10 OF CHAR;
  19244. BEGIN array()[0] := value;
  19245. END Test.
  19246. positive: changing element of indexed temporary pointer to array array
  19247. MODULE Test;
  19248. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR;
  19249. BEGIN array()[0][0] := 'f';
  19250. END Test.
  19251. positive: indexing variable array of pointer to record
  19252. MODULE Test;
  19253. TYPE Record = RECORD END;
  19254. VAR array: ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  19255. BEGIN result := array[0]
  19256. END Test.
  19257. positive: indexing temporary array of pointer to record
  19258. MODULE Test;
  19259. TYPE Record = RECORD END;
  19260. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  19261. BEGIN result := array()[0]
  19262. END Test.
  19263. negative: changing indexed temporary array of pointer to record
  19264. MODULE Test;
  19265. TYPE Record = RECORD END;
  19266. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO Record; value: POINTER TO Record;
  19267. BEGIN array()[0] := value;
  19268. END Test.
  19269. positive: changing element of indexed temporary array of pointer to record
  19270. MODULE Test;
  19271. VAR array: PROCEDURE (): ARRAY 10 OF POINTER TO RECORD i: INTEGER END;
  19272. BEGIN array()[0].i := 5;
  19273. END Test.
  19274. positive: indexing variable procedure array
  19275. MODULE Test;
  19276. VAR array: ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  19277. BEGIN result := array[0]
  19278. END Test.
  19279. positive: indexing temporary procedure array
  19280. MODULE Test;
  19281. VAR array: PROCEDURE (): ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  19282. BEGIN result := array()[0]
  19283. END Test.
  19284. negative: changing indexed temporary procedure array
  19285. MODULE Test;
  19286. VAR array: PROCEDURE (): ARRAY 10 OF PROCEDURE; value: PROCEDURE;
  19287. BEGIN array()[0] := value;
  19288. END Test.
  19289. negative: variable array as index
  19290. MODULE Test;
  19291. VAR array: ARRAY 10 OF CHAR; result: CHAR;
  19292. BEGIN result := array[array]
  19293. END Test.
  19294. negative: member selection on variable array
  19295. MODULE Test;
  19296. VAR array, result: ARRAY 10 OF CHAR;
  19297. BEGIN result := array.member
  19298. END Test.
  19299. negative: calling variable array
  19300. MODULE Test;
  19301. VAR array: ARRAY 10 OF CHAR;
  19302. BEGIN array
  19303. END Test.
  19304. # variable records
  19305. negative: arithmetic negation on variable record
  19306. MODULE Test;
  19307. VAR record, result: RECORD END;
  19308. BEGIN result := -record;
  19309. END Test.
  19310. negative: logical negation on variable record
  19311. MODULE Test;
  19312. VAR record, result: RECORD END;
  19313. BEGIN result := ~record;
  19314. END Test.
  19315. negative: dereferencing variable record
  19316. MODULE Test;
  19317. VAR record, result: RECORD END;
  19318. BEGIN result := record^;
  19319. END Test.
  19320. negative: addition on variable records
  19321. MODULE Test;
  19322. VAR record, result: RECORD END;
  19323. BEGIN result := record + record;
  19324. END Test.
  19325. negative: subtraction on variable records
  19326. MODULE Test;
  19327. VAR record, result: RECORD END;
  19328. BEGIN result := record - record
  19329. END Test.
  19330. negative: multiplication on variable records
  19331. MODULE Test;
  19332. VAR record, result: RECORD END;
  19333. BEGIN result := record * record
  19334. END Test.
  19335. negative: integer division on variable records
  19336. MODULE Test;
  19337. VAR record: RECORD END; result: INTEGER;
  19338. BEGIN result := record DIV record
  19339. END Test.
  19340. negative: real division on variable records
  19341. MODULE Test;
  19342. VAR record: RECORD END; result: REAL;
  19343. BEGIN result := record / record
  19344. END Test.
  19345. negative: modulo on variable records
  19346. MODULE Test;
  19347. VAR record: RECORD END; result: INTEGER;
  19348. BEGIN result := record MOD record
  19349. END Test.
  19350. negative: equal relation on variable records
  19351. MODULE Test;
  19352. VAR record: RECORD END; result: BOOLEAN;
  19353. BEGIN result := record = record
  19354. END Test.
  19355. negative: unequal relation on variable records
  19356. MODULE Test;
  19357. VAR record: RECORD END; result: BOOLEAN;
  19358. BEGIN result := record # record
  19359. END Test.
  19360. negative: less relation on variable records
  19361. MODULE Test;
  19362. VAR record: RECORD END; result: BOOLEAN;
  19363. BEGIN result := record < record
  19364. END Test.
  19365. negative: less or equal relation on variable records
  19366. MODULE Test;
  19367. VAR record: RECORD END; result: BOOLEAN;
  19368. BEGIN result := record <= record
  19369. END Test.
  19370. negative: greater relation on variable records
  19371. MODULE Test;
  19372. VAR record: RECORD END; result: BOOLEAN;
  19373. BEGIN result := record > record
  19374. END Test.
  19375. negative: greater or equal relation on variable records
  19376. MODULE Test;
  19377. VAR record: RECORD END; result: BOOLEAN;
  19378. BEGIN result := record >= record
  19379. END Test.
  19380. negative: set membership on variable records
  19381. MODULE Test;
  19382. VAR record: RECORD END; result: BOOLEAN;
  19383. BEGIN result := record IN record
  19384. END Test.
  19385. negative: type test on variable records
  19386. MODULE Test;
  19387. VAR record: RECORD END; result: BOOLEAN;
  19388. BEGIN result := record IS record
  19389. END Test.
  19390. negative: type test on variable record
  19391. MODULE Test;
  19392. VAR record: RECORD END; result: BOOLEAN;
  19393. BEGIN result := record IS RECORD END
  19394. END Test.
  19395. positive: type test on same record type
  19396. MODULE Test;
  19397. TYPE Type = RECORD END;
  19398. VAR record: Type; result: BOOLEAN;
  19399. BEGIN result := record IS Type
  19400. END Test.
  19401. positive: type test on extending record type
  19402. MODULE Test;
  19403. TYPE Record = RECORD END; Type = RECORD (Record) END;
  19404. VAR record: Record; result: BOOLEAN;
  19405. BEGIN result := record IS Type
  19406. END Test.
  19407. negative: type test on extended record type
  19408. MODULE Test;
  19409. TYPE Record = RECORD END; Type = Record;
  19410. VAR record: RECORD (Record) END; result: BOOLEAN;
  19411. BEGIN result := record IS Type
  19412. END Test.
  19413. negative: type test on incompatible record type
  19414. MODULE Test;
  19415. TYPE Type = RECORD END;
  19416. VAR record: RECORD END; result: BOOLEAN;
  19417. BEGIN result := record IS Type
  19418. END Test.
  19419. negative: type guard on variable records
  19420. MODULE Test;
  19421. PROCEDURE Procedure (VAR record, result: RECORD END);
  19422. BEGIN result := record(record)
  19423. END Procedure;
  19424. END Test.
  19425. negative: type guard on variable record
  19426. MODULE Test;
  19427. PROCEDURE Procedure (VAR record, result: RECORD END);
  19428. BEGIN result := record(RECORD END)
  19429. END Procedure;
  19430. END Test.
  19431. positive: type guard on same record type
  19432. MODULE Test;
  19433. TYPE Type = RECORD END;
  19434. PROCEDURE Procedure (VAR record, result: Type);
  19435. BEGIN result := record(Type)
  19436. END Procedure;
  19437. END Test.
  19438. positive: type guard on extending record type
  19439. MODULE Test;
  19440. TYPE Record = RECORD END; Type = RECORD (Record) END;
  19441. PROCEDURE Procedure (VAR record: Record; result: Type);
  19442. BEGIN result := record(Type)
  19443. END Procedure;
  19444. END Test.
  19445. negative: type guard on static extending record type
  19446. MODULE Test;
  19447. TYPE Record = RECORD END; Type = RECORD (Record) END;
  19448. VAR record: Record; result: Type;
  19449. BEGIN result := record(Type)
  19450. END Test.
  19451. negative: type guard on extended record type
  19452. MODULE Test;
  19453. TYPE Record = RECORD END; Type = Record;
  19454. PROCEDURE Procedure (VAR record: RECORD (Record) END; result: Type);
  19455. BEGIN result := record(Type)
  19456. END Procedure;
  19457. END Test.
  19458. negative: type guard on incompatible record type
  19459. MODULE Test;
  19460. TYPE Type = RECORD END;
  19461. PROCEDURE Procedure (VAR record: RECORD END; result: Type);
  19462. BEGIN result := record(Type)
  19463. END Procedure;
  19464. END Test.
  19465. negative: logical and on variable records
  19466. MODULE Test;
  19467. VAR record, result: RECORD END;
  19468. BEGIN result := record & record
  19469. END Test.
  19470. negative: logical or on variable records
  19471. MODULE Test;
  19472. VAR record, result: RECORD END;
  19473. BEGIN result := record OR record
  19474. END Test.
  19475. negative: ordinal value of variable record
  19476. MODULE Test;
  19477. VAR record: RECORD END; result: INTEGER;
  19478. BEGIN result := ORD (record)
  19479. END Test.
  19480. negative: character value of variable record
  19481. MODULE Test;
  19482. VAR record: RECORD END; result: CHAR;
  19483. BEGIN result := CHR (record)
  19484. END Test.
  19485. negative: absolute value of variable record
  19486. MODULE Test;
  19487. VAR record, result: RECORD END;
  19488. BEGIN result := ABS (record)
  19489. END Test.
  19490. negative: odd test on variable record
  19491. MODULE Test;
  19492. VAR record: RECORD END; result: BOOLEAN;
  19493. BEGIN result := ODD (record)
  19494. END Test.
  19495. negative: capital letter of variable record
  19496. MODULE Test;
  19497. VAR record: RECORD END; result: CHAR;
  19498. BEGIN result := CAP (record)
  19499. END Test.
  19500. negative: arithmetic shift of variable records
  19501. MODULE Test;
  19502. VAR record, result: RECORD END;
  19503. BEGIN result := ASH (record, record)
  19504. END Test.
  19505. negative: short on variable record
  19506. MODULE Test;
  19507. VAR record, result: RECORD END;
  19508. BEGIN result := SHORT (record)
  19509. END Test.
  19510. negative: long on variable record
  19511. MODULE Test;
  19512. VAR record, result: RECORD END;
  19513. BEGIN result := LONG (record)
  19514. END Test.
  19515. negative: entier on variable record
  19516. MODULE Test;
  19517. VAR record, result: RECORD END;
  19518. BEGIN result := ENTIER (record)
  19519. END Test.
  19520. negative: unary length of variable record
  19521. MODULE Test;
  19522. VAR record: RECORD END; result: LONGINT;
  19523. BEGIN result := LEN (record)
  19524. END Test.
  19525. negative: binary length of variable record
  19526. MODULE Test;
  19527. VAR record: RECORD END; result: LONGINT;
  19528. BEGIN result := LEN (record, 0)
  19529. END Test.
  19530. negative: indexing variable record
  19531. MODULE Test;
  19532. VAR record: RECORD END; result: CHAR;
  19533. BEGIN result := record[0]
  19534. END Test.
  19535. negative: variable record as index
  19536. MODULE Test;
  19537. VAR array: ARRAY 10 OF CHAR; result: CHAR; record: RECORD END;
  19538. BEGIN result := array[record]
  19539. END Test.
  19540. positive: member selection on variable record
  19541. MODULE Test;
  19542. VAR record: RECORD member: SET END; result: SET;
  19543. BEGIN result := record.member
  19544. END Test.
  19545. positive: member modification on variable record
  19546. MODULE Test;
  19547. VAR record: RECORD member: SET END; value: SET;
  19548. BEGIN record.member := value
  19549. END Test.
  19550. positive: member selection on temporary record
  19551. MODULE Test;
  19552. VAR record: PROCEDURE (): RECORD member: SET END; result: SET;
  19553. BEGIN result := record ().member
  19554. END Test.
  19555. negative: member modification on temporary record
  19556. MODULE Test;
  19557. VAR record: PROCEDURE (): RECORD member: SET END; value: SET;
  19558. BEGIN record ().member := value
  19559. END Test.
  19560. negative: calling variable record
  19561. MODULE Test;
  19562. VAR record: RECORD END;
  19563. BEGIN record
  19564. END Test.
  19565. # variable objects
  19566. negative: arithmetic negation on variable object
  19567. MODULE Test;
  19568. VAR object, result: OBJECT END;
  19569. BEGIN result := -object;
  19570. END Test.
  19571. negative: logical negation on variable object
  19572. MODULE Test;
  19573. VAR object, result: OBJECT END;
  19574. BEGIN result := ~object;
  19575. END Test.
  19576. negative: dereferencing variable object
  19577. MODULE Test;
  19578. VAR object, result: OBJECT END;
  19579. BEGIN result := object^;
  19580. END Test.
  19581. negative: addition on variable objects
  19582. MODULE Test;
  19583. VAR object, result: OBJECT END;
  19584. BEGIN result := object + object;
  19585. END Test.
  19586. negative: subtraction on variable objects
  19587. MODULE Test;
  19588. VAR object, result: OBJECT END;
  19589. BEGIN result := object - object
  19590. END Test.
  19591. negative: multiplication on variable objects
  19592. MODULE Test;
  19593. VAR object, result: OBJECT END;
  19594. BEGIN result := object * object
  19595. END Test.
  19596. negative: integer division on variable objects
  19597. MODULE Test;
  19598. VAR object: OBJECT END; result: INTEGER;
  19599. BEGIN result := object DIV object
  19600. END Test.
  19601. negative: real division on variable objects
  19602. MODULE Test;
  19603. VAR object: OBJECT END; result: REAL;
  19604. BEGIN result := object / object
  19605. END Test.
  19606. negative: modulo on variable objects
  19607. MODULE Test;
  19608. VAR object: OBJECT END; result: INTEGER;
  19609. BEGIN result := object MOD object
  19610. END Test.
  19611. positive: equal relation on variable objects
  19612. MODULE Test;
  19613. VAR object: OBJECT END; result: BOOLEAN;
  19614. BEGIN result := object = object
  19615. END Test.
  19616. positive: equal relation on compatible variable objects
  19617. MODULE Test;
  19618. TYPE Object = OBJECT END Object;
  19619. VAR object1: Object; object2: OBJECT (Object) END; result: BOOLEAN;
  19620. BEGIN result := (object1 = object1) OR (object2 = object1)
  19621. END Test.
  19622. negative: equal relation on incompatible variable objects
  19623. MODULE Test;
  19624. VAR object1: OBJECT END; object2: OBJECT END; result: BOOLEAN;
  19625. BEGIN result := (object1 = object1) OR (object2 = object1)
  19626. END Test.
  19627. positive: unequal relation on variable objects
  19628. MODULE Test;
  19629. VAR object: OBJECT END; result: BOOLEAN;
  19630. BEGIN result := object # object
  19631. END Test.
  19632. positive: unequal relation on compatible variable objects
  19633. MODULE Test;
  19634. TYPE Object = OBJECT END Object;
  19635. VAR object1: Object; object2: OBJECT (Object) END; result: BOOLEAN;
  19636. BEGIN result := (object1 # object1) OR (object2 # object1)
  19637. END Test.
  19638. negative: unequal relation on incompatible variable objects
  19639. MODULE Test;
  19640. VAR object1: OBJECT END; object2: OBJECT END; result: BOOLEAN;
  19641. BEGIN result := (object1 # object1) OR (object2 # object1)
  19642. END Test.
  19643. negative: less relation on variable objects
  19644. MODULE Test;
  19645. VAR object: OBJECT END; result: BOOLEAN;
  19646. BEGIN result := object < object
  19647. END Test.
  19648. negative: less or equal relation on variable objects
  19649. MODULE Test;
  19650. VAR object: OBJECT END; result: BOOLEAN;
  19651. BEGIN result := object <= object
  19652. END Test.
  19653. negative: greater relation on variable objects
  19654. MODULE Test;
  19655. VAR object: OBJECT END; result: BOOLEAN;
  19656. BEGIN result := object > object
  19657. END Test.
  19658. negative: greater or equal relation on variable objects
  19659. MODULE Test;
  19660. VAR object: OBJECT END; result: BOOLEAN;
  19661. BEGIN result := object >= object
  19662. END Test.
  19663. negative: set membership on variable objects
  19664. MODULE Test;
  19665. VAR object: OBJECT END; result: BOOLEAN;
  19666. BEGIN result := object IN object
  19667. END Test.
  19668. negative: type test on variable objects
  19669. MODULE Test;
  19670. VAR object: OBJECT END; result: BOOLEAN;
  19671. BEGIN result := object IS object
  19672. END Test.
  19673. negative: type test on variable object
  19674. MODULE Test;
  19675. VAR object: OBJECT END; result: BOOLEAN;
  19676. BEGIN result := object IS OBJECT;
  19677. END Test.
  19678. positive: type test on same object type
  19679. MODULE Test;
  19680. TYPE Type = OBJECT END Type;
  19681. VAR object: Type; result: BOOLEAN;
  19682. BEGIN result := object IS Type
  19683. END Test.
  19684. positive: type test on extending object type
  19685. MODULE Test;
  19686. TYPE Object = OBJECT END Object; Type = OBJECT (Object) END Type;
  19687. VAR object: Object; result: BOOLEAN;
  19688. BEGIN result := object IS Type
  19689. END Test.
  19690. negative: type test on extended object type
  19691. MODULE Test;
  19692. TYPE Object = OBJECT END Object; Type = Object;
  19693. VAR object: OBJECT (Object) END; result: BOOLEAN;
  19694. BEGIN result := object IS Type
  19695. END Test.
  19696. negative: type test on incompatible object type
  19697. MODULE Test;
  19698. TYPE Type = OBJECT END Type;
  19699. VAR object: OBJECT END; result: BOOLEAN;
  19700. BEGIN result := object IS Type
  19701. END Test.
  19702. positive: type test on self and same object type
  19703. MODULE Test;
  19704. TYPE Object = OBJECT
  19705. VAR result: BOOLEAN;
  19706. BEGIN result := SELF IS Type
  19707. END Object;
  19708. TYPE Type = Object;
  19709. END Test.
  19710. positive: type test on self and extending object type
  19711. MODULE Test;
  19712. TYPE Object = OBJECT
  19713. VAR result: BOOLEAN;
  19714. BEGIN result := SELF IS Type
  19715. END Object;
  19716. TYPE Type = OBJECT (Object) END Type;
  19717. END Test.
  19718. negative: type test on self and extended object type
  19719. MODULE Test;
  19720. TYPE Object = OBJECT (Type)
  19721. VAR result: BOOLEAN;
  19722. BEGIN result := SELF IS Type
  19723. END Object;
  19724. TYPE Type = OBJECT END Type;
  19725. END Test.
  19726. negative: type guard on variable objects
  19727. MODULE Test;
  19728. VAR object, result: OBJECT END;
  19729. BEGIN result := object(object)
  19730. END Test.
  19731. negative: type guard on variable object
  19732. MODULE Test;
  19733. TYPE Type = OBJECT;
  19734. VAR object, result: OBJECT END;
  19735. BEGIN result := object(Type)
  19736. END Test.
  19737. positive: type guard on same object type
  19738. MODULE Test;
  19739. TYPE Type = OBJECT END Type;
  19740. VAR object, result: Type;
  19741. BEGIN result := object(Type)
  19742. END Test.
  19743. positive: type guard on extending object type
  19744. MODULE Test;
  19745. TYPE Object = OBJECT END Object; Type = OBJECT (Object) END Type;
  19746. VAR object: Object; result: Type;
  19747. BEGIN result := object(Type)
  19748. END Test.
  19749. negative: type guard on extended object type
  19750. MODULE Test;
  19751. TYPE Object = OBJECT END Object; Type = Object;
  19752. VAR object: OBJECT (Object) END; result: Type;
  19753. BEGIN result := object(Type)
  19754. END Test.
  19755. negative: type guard on incompatible object type
  19756. MODULE Test;
  19757. TYPE Type = OBJECT END Type;
  19758. VAR object: OBJECT END; result: Type;
  19759. BEGIN result := object(Type)
  19760. END Test.
  19761. positive: type guard on self and same object type
  19762. MODULE Test;
  19763. TYPE Object = OBJECT
  19764. VAR result: Type;
  19765. BEGIN result := SELF(Type)
  19766. END Object;
  19767. TYPE Type = Object;
  19768. END Test.
  19769. positive: type guard on self and extending object type
  19770. MODULE Test;
  19771. TYPE Object = OBJECT
  19772. VAR result: Type;
  19773. BEGIN result := SELF(Type)
  19774. END Object;
  19775. TYPE Type = OBJECT (Object) END Type;
  19776. END Test.
  19777. negative: type guard on self and extended object type
  19778. MODULE Test;
  19779. TYPE Object = OBJECT (Type)
  19780. VAR result: Type;
  19781. BEGIN result := SELF(Type)
  19782. END Object;
  19783. TYPE Type = OBJECT END Type;
  19784. END Test.
  19785. negative: logical and on variable objects
  19786. MODULE Test;
  19787. VAR object, result: OBJECT END;
  19788. BEGIN result := object & object
  19789. END Test.
  19790. negative: logical or on variable objects
  19791. MODULE Test;
  19792. VAR object, result: OBJECT END;
  19793. BEGIN result := object OR object
  19794. END Test.
  19795. negative: ordinal value of variable object
  19796. MODULE Test;
  19797. VAR object: OBJECT END; result: INTEGER;
  19798. BEGIN result := ORD (object)
  19799. END Test.
  19800. negative: character value of variable object
  19801. MODULE Test;
  19802. VAR object: OBJECT END; result: CHAR;
  19803. BEGIN result := CHR (object)
  19804. END Test.
  19805. negative: absolute value of variable object
  19806. MODULE Test;
  19807. VAR object, result: OBJECT END;
  19808. BEGIN result := ABS (object)
  19809. END Test.
  19810. negative: odd test on variable object
  19811. MODULE Test;
  19812. VAR object: OBJECT END; result: BOOLEAN;
  19813. BEGIN result := ODD (object)
  19814. END Test.
  19815. negative: capital letter of variable object
  19816. MODULE Test;
  19817. VAR object: OBJECT END; result: CHAR;
  19818. BEGIN result := CAP (object)
  19819. END Test.
  19820. negative: arithmetic shift of variable objects
  19821. MODULE Test;
  19822. VAR object, result: OBJECT END;
  19823. BEGIN result := ASH (object, object)
  19824. END Test.
  19825. negative: short on variable object
  19826. MODULE Test;
  19827. VAR object, result: OBJECT END;
  19828. BEGIN result := SHORT (object)
  19829. END Test.
  19830. negative: long on variable object
  19831. MODULE Test;
  19832. VAR object, result: OBJECT END;
  19833. BEGIN result := LONG (object)
  19834. END Test.
  19835. negative: entier on variable object
  19836. MODULE Test;
  19837. VAR object, result: OBJECT END;
  19838. BEGIN result := ENTIER (object)
  19839. END Test.
  19840. negative: unary length of variable object
  19841. MODULE Test;
  19842. VAR object: OBJECT END; result: LONGINT;
  19843. BEGIN result := LEN (object)
  19844. END Test.
  19845. negative: binary length of variable object
  19846. MODULE Test;
  19847. VAR object: OBJECT END; result: LONGINT;
  19848. BEGIN result := LEN (object, 0)
  19849. END Test.
  19850. negative: indexing variable object
  19851. MODULE Test;
  19852. VAR object: OBJECT END; result: CHAR;
  19853. BEGIN result := object[0]
  19854. END Test.
  19855. negative: variable object as index
  19856. MODULE Test;
  19857. VAR array: ARRAY 10 OF CHAR; result: CHAR; object: OBJECT END;
  19858. BEGIN result := array[object]
  19859. END Test.
  19860. positive: member selection on variable object
  19861. MODULE Test;
  19862. VAR object: OBJECT VAR member: SET END; result: SET;
  19863. BEGIN result := object.member
  19864. END Test.
  19865. positive: member modification on variable object
  19866. MODULE Test;
  19867. VAR object: OBJECT VAR member: SET END; value: SET;
  19868. BEGIN object.member := value
  19869. END Test.
  19870. positive: member selection on temporary object
  19871. MODULE Test;
  19872. VAR object: PROCEDURE (): OBJECT VAR member: SET END; result: SET;
  19873. BEGIN result := object ().member
  19874. END Test.
  19875. positive: member modification on temporary object
  19876. MODULE Test;
  19877. VAR record: PROCEDURE (): OBJECT VAR member: SET END; value: SET;
  19878. BEGIN record ().member := value
  19879. END Test.
  19880. negative: calling variable object
  19881. MODULE Test;
  19882. VAR object: OBJECT END;
  19883. BEGIN object
  19884. END Test.
  19885. # variable base objects
  19886. negative: arithmetic negation on variable base object
  19887. MODULE Test;
  19888. VAR object, result: OBJECT;
  19889. BEGIN result := -object;
  19890. END Test.
  19891. negative: logical negation on variable base object
  19892. MODULE Test;
  19893. VAR object, result: OBJECT;
  19894. BEGIN result := ~object;
  19895. END Test.
  19896. negative: dereferencing variable base object
  19897. MODULE Test;
  19898. VAR object, result: OBJECT;
  19899. BEGIN result := object^;
  19900. END Test.
  19901. negative: addition on variable base objects
  19902. MODULE Test;
  19903. VAR object, result: OBJECT;
  19904. BEGIN result := object + object;
  19905. END Test.
  19906. negative: subtraction on variable base objects
  19907. MODULE Test;
  19908. VAR object, result: OBJECT;
  19909. BEGIN result := object - object
  19910. END Test.
  19911. negative: multiplication on variable base objects
  19912. MODULE Test;
  19913. VAR object, result: OBJECT;
  19914. BEGIN result := object * object
  19915. END Test.
  19916. negative: integer division on variable base objects
  19917. MODULE Test;
  19918. VAR object: OBJECT; result: INTEGER;
  19919. BEGIN result := object DIV object
  19920. END Test.
  19921. negative: real division on variable base objects
  19922. MODULE Test;
  19923. VAR object: OBJECT; result: REAL;
  19924. BEGIN result := object / object
  19925. END Test.
  19926. negative: modulo on variable base objects
  19927. MODULE Test;
  19928. VAR object: OBJECT; result: INTEGER;
  19929. BEGIN result := object MOD object
  19930. END Test.
  19931. positive: equal relation on variable base objects
  19932. MODULE Test;
  19933. VAR object: OBJECT; result: BOOLEAN;
  19934. BEGIN result := object = object
  19935. END Test.
  19936. positive: equal relation on compatible variable base objects
  19937. MODULE Test;
  19938. VAR object1: OBJECT; object2: OBJECT END; result: BOOLEAN;
  19939. BEGIN result := (object1 = object1) OR (object2 = object1)
  19940. END Test.
  19941. positive: unequal relation on variable base objects
  19942. MODULE Test;
  19943. VAR object: OBJECT; result: BOOLEAN;
  19944. BEGIN result := object # object
  19945. END Test.
  19946. positive: unequal relation on compatible variable base objects
  19947. MODULE Test;
  19948. VAR object1: OBJECT; object2: OBJECT END; result: BOOLEAN;
  19949. BEGIN result := (object1 # object1) OR (object2 # object1)
  19950. END Test.
  19951. negative: less relation on variable base objects
  19952. MODULE Test;
  19953. VAR object: OBJECT; result: BOOLEAN;
  19954. BEGIN result := object < object
  19955. END Test.
  19956. negative: less or equal relation on variable base objects
  19957. MODULE Test;
  19958. VAR object: OBJECT; result: BOOLEAN;
  19959. BEGIN result := object <= object
  19960. END Test.
  19961. negative: greater relation on variable base objects
  19962. MODULE Test;
  19963. VAR object: OBJECT; result: BOOLEAN;
  19964. BEGIN result := object > object
  19965. END Test.
  19966. negative: greater or equal relation on variable base objects
  19967. MODULE Test;
  19968. VAR object: OBJECT; result: BOOLEAN;
  19969. BEGIN result := object >= object
  19970. END Test.
  19971. negative: set membership on variable base objects
  19972. MODULE Test;
  19973. VAR object: OBJECT; result: BOOLEAN;
  19974. BEGIN result := object IN object
  19975. END Test.
  19976. negative: type test on variable base objects
  19977. MODULE Test;
  19978. VAR object: OBJECT; result: BOOLEAN;
  19979. BEGIN result := object IS object
  19980. END Test.
  19981. negative: type test on variable base object
  19982. MODULE Test;
  19983. VAR object: OBJECT; result: BOOLEAN;
  19984. BEGIN result := object IS OBJECT;
  19985. END Test.
  19986. positive: type test on base object type
  19987. MODULE Test;
  19988. TYPE Type = OBJECT;
  19989. VAR object: Type; result: BOOLEAN;
  19990. BEGIN result := object IS Type
  19991. END Test.
  19992. positive: type test on extending base object type
  19993. MODULE Test;
  19994. TYPE Type = OBJECT END Type;
  19995. VAR object: OBJECT; result: BOOLEAN;
  19996. BEGIN result := object IS Type
  19997. END Test.
  19998. negative: type test on extended base object type
  19999. MODULE Test;
  20000. TYPE Type = OBJECT;
  20001. VAR object: OBJECT END; result: BOOLEAN;
  20002. BEGIN result := object IS Type
  20003. END Test.
  20004. negative: type guard on variable base objects
  20005. MODULE Test;
  20006. VAR object, result: OBJECT;
  20007. BEGIN result := object(object)
  20008. END Test.
  20009. negative: type guard on variable base object
  20010. MODULE Test;
  20011. VAR object, result: OBJECT;
  20012. BEGIN result := object(OBJECT);
  20013. END Test.
  20014. positive: type guard on base object type
  20015. MODULE Test;
  20016. TYPE Type = OBJECT;
  20017. VAR object, result: Type;
  20018. BEGIN result := object(Type)
  20019. END Test.
  20020. positive: type guard on extending base object type
  20021. MODULE Test;
  20022. TYPE Type = OBJECT END Type;
  20023. VAR object: OBJECT; result: Type;
  20024. BEGIN result := object(Type)
  20025. END Test.
  20026. negative: type guard on extended base object type
  20027. MODULE Test;
  20028. TYPE Type = OBJECT;
  20029. VAR object: OBJECT END; result: Type;
  20030. BEGIN result := object(Type)
  20031. END Test.
  20032. negative: logical and on variable base objects
  20033. MODULE Test;
  20034. VAR object, result: OBJECT;
  20035. BEGIN result := object & object
  20036. END Test.
  20037. negative: logical or on variable base objects
  20038. MODULE Test;
  20039. VAR object, result: OBJECT;
  20040. BEGIN result := object OR object
  20041. END Test.
  20042. negative: ordinal value of variable base object
  20043. MODULE Test;
  20044. VAR object: OBJECT; result: INTEGER;
  20045. BEGIN result := ORD (object)
  20046. END Test.
  20047. negative: character value of variable base object
  20048. MODULE Test;
  20049. VAR object: OBJECT; result: CHAR;
  20050. BEGIN result := CHR (object)
  20051. END Test.
  20052. negative: absolute value of variable base object
  20053. MODULE Test;
  20054. VAR object, result: OBJECT;
  20055. BEGIN result := ABS (object)
  20056. END Test.
  20057. negative: odd test on variable base object
  20058. MODULE Test;
  20059. VAR object: OBJECT; result: BOOLEAN;
  20060. BEGIN result := ODD (object)
  20061. END Test.
  20062. negative: capital letter of variable base object
  20063. MODULE Test;
  20064. VAR object: OBJECT; result: CHAR;
  20065. BEGIN result := CAP (object)
  20066. END Test.
  20067. negative: arithmetic shift of variable base objects
  20068. MODULE Test;
  20069. VAR object, result: OBJECT;
  20070. BEGIN result := ASH (object, object)
  20071. END Test.
  20072. negative: short on variable base object
  20073. MODULE Test;
  20074. VAR object, result: OBJECT;
  20075. BEGIN result := SHORT (object)
  20076. END Test.
  20077. negative: long on variable base object
  20078. MODULE Test;
  20079. VAR object, result: OBJECT;
  20080. BEGIN result := LONG (object)
  20081. END Test.
  20082. negative: entier on variable base object
  20083. MODULE Test;
  20084. VAR object, result: OBJECT;
  20085. BEGIN result := ENTIER (object)
  20086. END Test.
  20087. negative: unary length of variable base object
  20088. MODULE Test;
  20089. VAR object: OBJECT; result: LONGINT;
  20090. BEGIN result := LEN (object)
  20091. END Test.
  20092. negative: binary length of variable base object
  20093. MODULE Test;
  20094. VAR object: OBJECT; result: LONGINT;
  20095. BEGIN result := LEN (object, 0)
  20096. END Test.
  20097. negative: indexing variable base object
  20098. MODULE Test;
  20099. VAR object: OBJECT; result: CHAR;
  20100. BEGIN result := object[0]
  20101. END Test.
  20102. negative: variable base object as index
  20103. MODULE Test;
  20104. VAR array: ARRAY 10 OF CHAR; result: CHAR; object: OBJECT;
  20105. BEGIN result := array[object]
  20106. END Test.
  20107. negative: member selection on variable base object
  20108. MODULE Test;
  20109. VAR object, result: OBJECT;
  20110. BEGIN result := object.member
  20111. END Test.
  20112. negative: calling variable base object
  20113. MODULE Test;
  20114. VAR object: OBJECT;
  20115. BEGIN object
  20116. END Test.
  20117. # variable pointers to record
  20118. negative: arithmetic negation on variable pointer to record
  20119. MODULE Test;
  20120. VAR pointer, result: POINTER TO RECORD END;
  20121. BEGIN result := -pointer;
  20122. END Test.
  20123. negative: logical negation on variable pointer to record
  20124. MODULE Test;
  20125. VAR pointer, result: POINTER TO RECORD END;
  20126. BEGIN result := ~pointer;
  20127. END Test.
  20128. positive: dereferencing variable pointer to record
  20129. MODULE Test;
  20130. TYPE Record = RECORD END;
  20131. VAR pointer: POINTER TO Record; result: Record;
  20132. BEGIN result := pointer^;
  20133. END Test.
  20134. negative: addition on variable pointers to record
  20135. MODULE Test;
  20136. VAR pointer, result: POINTER TO RECORD END;
  20137. BEGIN result := pointer + pointer;
  20138. END Test.
  20139. negative: subtraction on variable pointers to record
  20140. MODULE Test;
  20141. VAR pointer, result: POINTER TO RECORD END;
  20142. BEGIN result := pointer - pointer
  20143. END Test.
  20144. negative: multiplication on variable pointers to record
  20145. MODULE Test;
  20146. VAR pointer, result: POINTER TO RECORD END;
  20147. BEGIN result := pointer * pointer
  20148. END Test.
  20149. negative: integer division on variable pointers to record
  20150. MODULE Test;
  20151. VAR pointer: POINTER TO RECORD END; result: INTEGER;
  20152. BEGIN result := pointer DIV pointer
  20153. END Test.
  20154. negative: real division on variable pointers to record
  20155. MODULE Test;
  20156. VAR pointer: POINTER TO RECORD END; result: REAL;
  20157. BEGIN result := pointer / pointer
  20158. END Test.
  20159. negative: modulo on variable pointers to record
  20160. MODULE Test;
  20161. VAR pointer: POINTER TO RECORD END; result: INTEGER;
  20162. BEGIN result := pointer MOD pointer
  20163. END Test.
  20164. positive: equal relation on variable pointers to record
  20165. MODULE Test;
  20166. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20167. BEGIN result := pointer = pointer
  20168. END Test.
  20169. positive: equal relation on compatible variable pointers to record
  20170. MODULE Test;
  20171. TYPE Record = RECORD END;
  20172. VAR pointer1: POINTER TO Record; pointer2: POINTER TO RECORD (Record) END; result: BOOLEAN;
  20173. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20174. END Test.
  20175. negative: equal relation on incompatible variable pointers to record
  20176. MODULE Test;
  20177. VAR pointer1: POINTER TO RECORD END; pointer2: POINTER TO RECORD END; result: BOOLEAN;
  20178. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20179. END Test.
  20180. negative: equal relation on incompatible variable pointers to record and array
  20181. MODULE Test;
  20182. VAR pointer1: POINTER TO RECORD END; pointer2: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20183. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20184. END Test.
  20185. positive: unequal relation on variable pointers to record
  20186. MODULE Test;
  20187. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20188. BEGIN result := pointer # pointer
  20189. END Test.
  20190. positive: unequal relation on compatible variable pointers to record
  20191. MODULE Test;
  20192. TYPE Record = RECORD END;
  20193. VAR pointer1: POINTER TO Record; pointer2: POINTER TO RECORD (Record) END; result: BOOLEAN;
  20194. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20195. END Test.
  20196. negative: unequal relation on incompatible variable pointers to record
  20197. MODULE Test;
  20198. VAR pointer1: POINTER TO RECORD END; pointer2: POINTER TO RECORD END; result: BOOLEAN;
  20199. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20200. END Test.
  20201. negative: unequal relation on incompatible variable pointers to record and array
  20202. MODULE Test;
  20203. VAR pointer1: POINTER TO RECORD END; pointer2: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20204. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20205. END Test.
  20206. negative: less relation on variable pointers to record
  20207. MODULE Test;
  20208. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20209. BEGIN result := pointer < pointer
  20210. END Test.
  20211. negative: less or equal relation on variable pointers to record
  20212. MODULE Test;
  20213. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20214. BEGIN result := pointer <= pointer
  20215. END Test.
  20216. negative: greater relation on variable pointers to record
  20217. MODULE Test;
  20218. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20219. BEGIN result := pointer > pointer
  20220. END Test.
  20221. negative: greater or equal relation on variable pointers to record
  20222. MODULE Test;
  20223. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20224. BEGIN result := pointer >= pointer
  20225. END Test.
  20226. negative: set membership on variable pointers to record
  20227. MODULE Test;
  20228. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20229. BEGIN result := pointer IN pointer
  20230. END Test.
  20231. negative: type test on variable pointers to record
  20232. MODULE Test;
  20233. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20234. BEGIN result := pointer IS pointer
  20235. END Test.
  20236. negative: type test on variable pointer to record
  20237. MODULE Test;
  20238. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20239. BEGIN result := pointer IS POINTER TO RECORD END
  20240. END Test.
  20241. positive: type test on same pointer to record type
  20242. MODULE Test;
  20243. TYPE Type = POINTER TO RECORD END;
  20244. VAR pointer: Type; result: BOOLEAN;
  20245. BEGIN result := pointer IS Type
  20246. END Test.
  20247. positive: type test on extending pointer to record type
  20248. MODULE Test;
  20249. TYPE Record = RECORD END; Type = POINTER TO RECORD (Record) END;
  20250. VAR pointer: POINTER TO Record; result: BOOLEAN;
  20251. BEGIN result := pointer IS Type
  20252. END Test.
  20253. negative: type test on extended pointer to record type
  20254. MODULE Test;
  20255. TYPE Record = RECORD END; Type = POINTER TO Record;
  20256. VAR pointer: POINTER TO RECORD (Record) END; result: BOOLEAN;
  20257. BEGIN result := pointer IS Type
  20258. END Test.
  20259. negative: type test on incompatible pointer to record type
  20260. MODULE Test;
  20261. TYPE Type = POINTER TO RECORD END;
  20262. VAR record: POINTER TO RECORD END; result: BOOLEAN;
  20263. BEGIN result := record IS Type
  20264. END Test.
  20265. negative: type guard on variable pointers to record
  20266. MODULE Test;
  20267. VAR pointer, result: POINTER TO RECORD END;
  20268. BEGIN result := pointer(pointer)
  20269. END Test.
  20270. negative: type guard on variable pointer to record
  20271. MODULE Test;
  20272. VAR pointer, result: POINTER TO RECORD END;
  20273. BEGIN result := pointer(POINTER TO RECORD END)
  20274. END Test.
  20275. positive: type guard on same pointer to record type
  20276. MODULE Test;
  20277. TYPE Type = POINTER TO RECORD END;
  20278. VAR pointer, result: Type;
  20279. BEGIN result := pointer(Type)
  20280. END Test.
  20281. positive: type guard on extending pointer to record type
  20282. MODULE Test;
  20283. TYPE Record = RECORD END; Type = POINTER TO RECORD (Record) END;
  20284. VAR pointer: POINTER TO Record; result: Type;
  20285. BEGIN result := pointer(Type)
  20286. END Test.
  20287. negative: type guard on extended pointer to record type
  20288. MODULE Test;
  20289. TYPE Record = RECORD END; Type = POINTER TO Record;
  20290. VAR pointer: POINTER TO RECORD (Record) END; result: Type;
  20291. BEGIN result := pointer(Type)
  20292. END Test.
  20293. negative: type guard on incompatible pointer to record type
  20294. MODULE Test;
  20295. TYPE Type = POINTER TO RECORD END;
  20296. VAR record: POINTER TO RECORD END; result: Type;
  20297. BEGIN result := record(Type)
  20298. END Test.
  20299. negative: logical and on variable pointers to record
  20300. MODULE Test;
  20301. VAR pointer, result: POINTER TO RECORD END;
  20302. BEGIN result := pointer & pointer
  20303. END Test.
  20304. negative: logical or on variable pointers to record
  20305. MODULE Test;
  20306. VAR pointer, result: POINTER TO RECORD END;
  20307. BEGIN result := pointer OR pointer
  20308. END Test.
  20309. negative: ordinal value of variable pointer to record
  20310. MODULE Test;
  20311. VAR pointer: POINTER TO RECORD END; result: INTEGER;
  20312. BEGIN result := ORD (pointer)
  20313. END Test.
  20314. negative: character value of variable pointer to record
  20315. MODULE Test;
  20316. VAR pointer: POINTER TO RECORD END; result: CHAR;
  20317. BEGIN result := CHR (pointer)
  20318. END Test.
  20319. negative: absolute value of variable pointer to record
  20320. MODULE Test;
  20321. VAR pointer, result: POINTER TO RECORD END;
  20322. BEGIN result := ABS (pointer)
  20323. END Test.
  20324. negative: odd test on variable pointer to record
  20325. MODULE Test;
  20326. VAR pointer: POINTER TO RECORD END; result: BOOLEAN;
  20327. BEGIN result := ODD (pointer)
  20328. END Test.
  20329. negative: capital letter of variable pointer to record
  20330. MODULE Test;
  20331. VAR pointer: POINTER TO RECORD END; result: CHAR;
  20332. BEGIN result := CAP (pointer)
  20333. END Test.
  20334. negative: arithmetic shift of variable pointers to record
  20335. MODULE Test;
  20336. VAR pointer, result: POINTER TO RECORD END;
  20337. BEGIN result := ASH (pointer, pointer)
  20338. END Test.
  20339. negative: short on variable pointer to record
  20340. MODULE Test;
  20341. VAR pointer, result: POINTER TO RECORD END;
  20342. BEGIN result := SHORT (pointer)
  20343. END Test.
  20344. negative: long on variable pointer to record
  20345. MODULE Test;
  20346. VAR pointer, result: POINTER TO RECORD END;
  20347. BEGIN result := LONG (pointer)
  20348. END Test.
  20349. negative: entier on variable pointer to record
  20350. MODULE Test;
  20351. VAR pointer, result: POINTER TO RECORD END;
  20352. BEGIN result := ENTIER (pointer)
  20353. END Test.
  20354. negative: unary length of variable pointer to record
  20355. MODULE Test;
  20356. VAR pointer: POINTER TO RECORD END; result: LONGINT;
  20357. BEGIN result := LEN (pointer)
  20358. END Test.
  20359. negative: binary length of variable pointer to record
  20360. MODULE Test;
  20361. VAR pointer: POINTER TO RECORD END; result: LONGINT;
  20362. BEGIN result := LEN (pointer, 0)
  20363. END Test.
  20364. negative: indexing variable pointer to record
  20365. MODULE Test;
  20366. VAR pointer: POINTER TO RECORD END; result: CHAR;
  20367. BEGIN result := pointer[0]
  20368. END Test.
  20369. negative: variable pointer to record as index
  20370. MODULE Test;
  20371. VAR array: ARRAY 10 OF CHAR; result: CHAR; pointer: POINTER TO RECORD END;
  20372. BEGIN result := array[pointer]
  20373. END Test.
  20374. positive: member selection on variable pointer to record
  20375. MODULE Test;
  20376. VAR pointer: POINTER TO RECORD member: SET END; result: SET;
  20377. BEGIN result := pointer.member
  20378. END Test.
  20379. positive: member modification on variable pointer to record
  20380. MODULE Test;
  20381. VAR pointer: POINTER TO RECORD member: SET END; value: SET;
  20382. BEGIN pointer.member := value
  20383. END Test.
  20384. positive: member selection on temporary pointer to record
  20385. MODULE Test;
  20386. VAR pointer: PROCEDURE (): POINTER TO RECORD member: SET END; result: SET;
  20387. BEGIN result := pointer ().member
  20388. END Test.
  20389. positive: member modification on temporary pointer to record
  20390. MODULE Test;
  20391. VAR pointer: PROCEDURE (): POINTER TO RECORD member: SET END; value: SET;
  20392. BEGIN pointer ().member := value
  20393. END Test.
  20394. positive: member selection on dereferenced variable pointer to record
  20395. MODULE Test;
  20396. VAR pointer: POINTER TO RECORD member: SET END; result: SET;
  20397. BEGIN result := pointer^.member
  20398. END Test.
  20399. positive: member modification on dereferenced variable pointer to record
  20400. MODULE Test;
  20401. VAR pointer: POINTER TO RECORD member: SET END; value: SET;
  20402. BEGIN pointer^.member := value
  20403. END Test.
  20404. positive: member selection on dereferenced temporary pointer to record
  20405. MODULE Test;
  20406. VAR pointer: PROCEDURE (): POINTER TO RECORD member: SET END; result: SET;
  20407. BEGIN result := pointer ()^.member
  20408. END Test.
  20409. positive: member modification on dereferenced temporary pointer to record
  20410. MODULE Test;
  20411. VAR pointer: PROCEDURE (): POINTER TO RECORD member: SET END; value: SET;
  20412. BEGIN pointer ()^.member := value
  20413. END Test.
  20414. negative: calling variable pointer to record
  20415. MODULE Test;
  20416. VAR pointer: POINTER TO RECORD END;
  20417. BEGIN pointer
  20418. END Test.
  20419. # variable pointers to array
  20420. negative: arithmetic negation on variable pointer to array
  20421. MODULE Test;
  20422. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20423. BEGIN result := -pointer;
  20424. END Test.
  20425. negative: logical negation on variable pointer to array
  20426. MODULE Test;
  20427. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20428. BEGIN result := ~pointer;
  20429. END Test.
  20430. positive: dereferencing variable pointer to array
  20431. MODULE Test;
  20432. TYPE Array = ARRAY 10 OF CHAR;
  20433. VAR pointer: POINTER TO Array; result: Array;
  20434. BEGIN result := pointer^;
  20435. END Test.
  20436. negative: addition on variable pointers to array
  20437. MODULE Test;
  20438. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20439. BEGIN result := pointer + pointer;
  20440. END Test.
  20441. negative: subtraction on variable pointers to array
  20442. MODULE Test;
  20443. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20444. BEGIN result := pointer - pointer
  20445. END Test.
  20446. negative: multiplication on variable pointers to array
  20447. MODULE Test;
  20448. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20449. BEGIN result := pointer * pointer
  20450. END Test.
  20451. negative: integer division on variable pointers to array
  20452. MODULE Test;
  20453. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: INTEGER;
  20454. BEGIN result := pointer DIV pointer
  20455. END Test.
  20456. negative: real division on variable pointers to array
  20457. MODULE Test;
  20458. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: REAL;
  20459. BEGIN result := pointer / pointer
  20460. END Test.
  20461. negative: modulo on variable pointers to array
  20462. MODULE Test;
  20463. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: INTEGER;
  20464. BEGIN result := pointer MOD pointer
  20465. END Test.
  20466. positive: equal relation on variable pointers to array
  20467. MODULE Test;
  20468. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20469. BEGIN result := pointer = pointer
  20470. END Test.
  20471. positive: equal relation on compatible variable pointers to array
  20472. MODULE Test;
  20473. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20474. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20475. END Test.
  20476. negative: equal relation on incompatible variable pointers to array
  20477. MODULE Test;
  20478. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: POINTER TO ARRAY 20 OF CHAR; result: BOOLEAN;
  20479. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20480. END Test.
  20481. negative: equal relation on incompatible variable pointers to array and record
  20482. MODULE Test;
  20483. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: RECORD END; result: BOOLEAN;
  20484. BEGIN result := (pointer1 = pointer2) OR (pointer2 = pointer1)
  20485. END Test.
  20486. positive: unequal relation on variable pointers to array
  20487. MODULE Test;
  20488. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20489. BEGIN result := pointer # pointer
  20490. END Test.
  20491. positive: unequal relation on compatible variable pointers to array
  20492. MODULE Test;
  20493. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20494. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20495. END Test.
  20496. negative: unequal relation on incompatible variable pointers to array
  20497. MODULE Test;
  20498. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: POINTER TO ARRAY 20 OF CHAR; result: BOOLEAN;
  20499. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20500. END Test.
  20501. negative: unequal relation on incompatible variable pointers to array and record
  20502. MODULE Test;
  20503. VAR pointer1: POINTER TO ARRAY 10 OF CHAR; pointer2: RECORD END; result: BOOLEAN;
  20504. BEGIN result := (pointer1 # pointer2) OR (pointer2 # pointer1)
  20505. END Test.
  20506. negative: less relation on variable pointers to array
  20507. MODULE Test;
  20508. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20509. BEGIN result := pointer < pointer
  20510. END Test.
  20511. negative: less or equal relation on variable pointers to array
  20512. MODULE Test;
  20513. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20514. BEGIN result := pointer <= pointer
  20515. END Test.
  20516. negative: greater relation on variable pointers to array
  20517. MODULE Test;
  20518. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20519. BEGIN result := pointer > pointer
  20520. END Test.
  20521. negative: greater or equal relation on variable pointers to array
  20522. MODULE Test;
  20523. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20524. BEGIN result := pointer >= pointer
  20525. END Test.
  20526. negative: set membership on variable pointers to array
  20527. MODULE Test;
  20528. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20529. BEGIN result := pointer IN pointer
  20530. END Test.
  20531. negative: type test on variable pointers to array
  20532. MODULE Test;
  20533. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20534. BEGIN result := pointer IS pointer
  20535. END Test.
  20536. negative: type test on variable pointer to array
  20537. MODULE Test;
  20538. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20539. BEGIN result := pointer IS POINTER TO ARRAY 10 OF CHAR
  20540. END Test.
  20541. negative: type test on pointer to array type
  20542. MODULE Test;
  20543. TYPE Type = POINTER TO ARRAY 10 OF CHAR;
  20544. VAR pointer: Type; result: BOOLEAN;
  20545. BEGIN result := pointer IS Type
  20546. END Test.
  20547. negative: type guard on variable pointers to array
  20548. MODULE Test;
  20549. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20550. BEGIN result := pointer(pointer)
  20551. END Test.
  20552. negative: type guard on variable pointer to array
  20553. MODULE Test;
  20554. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20555. BEGIN result := pointer(POINTER TO ARRAY 10 OF CHAR)
  20556. END Test.
  20557. negative: type guard on pointer to array type
  20558. MODULE Test;
  20559. TYPE Type = POINTER TO ARRAY 10 OF CHAR;
  20560. VAR pointer: Type; result: Type;
  20561. BEGIN result := pointer(Type)
  20562. END Test.
  20563. negative: logical and on variable pointers to array
  20564. MODULE Test;
  20565. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20566. BEGIN result := pointer & pointer
  20567. END Test.
  20568. negative: logical or on variable pointers to array
  20569. MODULE Test;
  20570. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20571. BEGIN result := pointer OR pointer
  20572. END Test.
  20573. negative: ordinal value of variable pointer to array
  20574. MODULE Test;
  20575. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: INTEGER;
  20576. BEGIN result := ORD (pointer)
  20577. END Test.
  20578. negative: character value of variable pointer to array
  20579. MODULE Test;
  20580. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20581. BEGIN result := CHR (pointer)
  20582. END Test.
  20583. negative: absolute value of variable pointer to array
  20584. MODULE Test;
  20585. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20586. BEGIN result := ABS (pointer)
  20587. END Test.
  20588. negative: odd test on variable pointer to array
  20589. MODULE Test;
  20590. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: BOOLEAN;
  20591. BEGIN result := ODD (pointer)
  20592. END Test.
  20593. negative: capital letter of variable pointer to array
  20594. MODULE Test;
  20595. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20596. BEGIN result := CAP (pointer)
  20597. END Test.
  20598. negative: arithmetic shift of variable pointers to array
  20599. MODULE Test;
  20600. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20601. BEGIN result := ASH (pointer, pointer)
  20602. END Test.
  20603. negative: short on variable pointer to array
  20604. MODULE Test;
  20605. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20606. BEGIN result := SHORT (pointer)
  20607. END Test.
  20608. negative: long on variable pointer to array
  20609. MODULE Test;
  20610. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20611. BEGIN result := LONG (pointer)
  20612. END Test.
  20613. negative: entier on variable pointer to array
  20614. MODULE Test;
  20615. VAR pointer, result: POINTER TO ARRAY 10 OF CHAR;
  20616. BEGIN result := ENTIER (pointer)
  20617. END Test.
  20618. positive: unary length of variable pointer to array
  20619. MODULE Test;
  20620. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: LONGINT;
  20621. BEGIN result := LEN (pointer)
  20622. END Test.
  20623. positive: binary length of variable pointer to array
  20624. MODULE Test;
  20625. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: LONGINT;
  20626. BEGIN result := LEN (pointer, 0)
  20627. END Test.
  20628. positive: indexing variable pointer to boolean array
  20629. MODULE Test;
  20630. VAR array: POINTER TO ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  20631. BEGIN result := array[0]
  20632. END Test.
  20633. positive: indexing temporary pointer to boolean array
  20634. MODULE Test;
  20635. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  20636. BEGIN result := array()[0]
  20637. END Test.
  20638. positive: changing indexed temporary pointer to boolean array
  20639. MODULE Test;
  20640. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF BOOLEAN;
  20641. BEGIN array()[0] := TRUE;
  20642. END Test.
  20643. positive: indexing dereferenced variable pointer to boolean array
  20644. MODULE Test;
  20645. VAR array: POINTER TO ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  20646. BEGIN result := array^[0]
  20647. END Test.
  20648. positive: indexing dereferenced temporary pointer to boolean array
  20649. MODULE Test;
  20650. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF BOOLEAN; result: BOOLEAN;
  20651. BEGIN result := array()^[0]
  20652. END Test.
  20653. positive: changing dereferenced indexed temporary pointer to boolean array
  20654. MODULE Test;
  20655. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF BOOLEAN;
  20656. BEGIN array()^[0] := TRUE;
  20657. END Test.
  20658. positive: indexing variable pointer to character array
  20659. MODULE Test;
  20660. VAR array: POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20661. BEGIN result := array[0]
  20662. END Test.
  20663. positive: indexing temporary pointer to character array
  20664. MODULE Test;
  20665. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20666. BEGIN result := array()[0]
  20667. END Test.
  20668. positive: changing indexed temporary pointer to character array
  20669. MODULE Test;
  20670. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR;
  20671. BEGIN array()[0] := '0';
  20672. END Test.
  20673. positive: indexing dereferenced variable pointer to character array
  20674. MODULE Test;
  20675. VAR array: POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20676. BEGIN result := array^[0]
  20677. END Test.
  20678. positive: indexing dereferenced temporary pointer to character array
  20679. MODULE Test;
  20680. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR; result: CHAR;
  20681. BEGIN result := array()^[0]
  20682. END Test.
  20683. positive: changing dereferenced indexed temporary pointer to character array
  20684. MODULE Test;
  20685. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR;
  20686. BEGIN array()^[0] := '0';
  20687. END Test.
  20688. positive: indexing variable pointer to integer array
  20689. MODULE Test;
  20690. VAR array: POINTER TO ARRAY 10 OF INTEGER; result: INTEGER;
  20691. BEGIN result := array[0]
  20692. END Test.
  20693. positive: indexing temporary pointer to integer array
  20694. MODULE Test;
  20695. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF INTEGER; result: INTEGER;
  20696. BEGIN result := array()[0]
  20697. END Test.
  20698. positive: changing indexed temporary pointer to integer array
  20699. MODULE Test;
  20700. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF INTEGER;
  20701. BEGIN array()[0] := 5;
  20702. END Test.
  20703. positive: indexing dereferenced variable pointer to integer array
  20704. MODULE Test;
  20705. VAR array: POINTER TO ARRAY 10 OF INTEGER; result: INTEGER;
  20706. BEGIN result := array^[0]
  20707. END Test.
  20708. positive: indexing dereferenced temporary pointer to integer array
  20709. MODULE Test;
  20710. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF INTEGER; result: INTEGER;
  20711. BEGIN result := array()^[0]
  20712. END Test.
  20713. positive: changing dereferenced indexed temporary pointer to integer array
  20714. MODULE Test;
  20715. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF INTEGER;
  20716. BEGIN array()^[0] := 5;
  20717. END Test.
  20718. positive: indexing variable pointer to real array
  20719. MODULE Test;
  20720. VAR array: POINTER TO ARRAY 10 OF REAL; result: REAL;
  20721. BEGIN result := array[0]
  20722. END Test.
  20723. positive: indexing temporary pointer to real array
  20724. MODULE Test;
  20725. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF REAL; result: REAL;
  20726. BEGIN result := array()[0]
  20727. END Test.
  20728. positive: changing indexed temporary pointer to real array
  20729. MODULE Test;
  20730. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF REAL;
  20731. BEGIN array()[0] := 5.0;
  20732. END Test.
  20733. positive: indexing dereferenced variable pointer to real array
  20734. MODULE Test;
  20735. VAR array: POINTER TO ARRAY 10 OF REAL; result: REAL;
  20736. BEGIN result := array^[0]
  20737. END Test.
  20738. positive: indexing dereferenced temporary pointer to real array
  20739. MODULE Test;
  20740. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF REAL; result: REAL;
  20741. BEGIN result := array()^[0]
  20742. END Test.
  20743. positive: changing dereferenced indexed temporary pointer to real array
  20744. MODULE Test;
  20745. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF REAL;
  20746. BEGIN array()^[0] := 5.0;
  20747. END Test.
  20748. positive: indexing variable pointer to set array
  20749. MODULE Test;
  20750. VAR array: POINTER TO ARRAY 10 OF SET; result: SET;
  20751. BEGIN result := array[0]
  20752. END Test.
  20753. positive: indexing temporary pointer to set array
  20754. MODULE Test;
  20755. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF SET; result: SET;
  20756. BEGIN result := array()[0]
  20757. END Test.
  20758. positive: changing indexed temporary pointer to set array
  20759. MODULE Test;
  20760. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF SET;
  20761. BEGIN array()[0] := {5};
  20762. END Test.
  20763. positive: indexing dereferenced variable pointer to set array
  20764. MODULE Test;
  20765. VAR array: POINTER TO ARRAY 10 OF SET; result: SET;
  20766. BEGIN result := array^[0]
  20767. END Test.
  20768. positive: indexing dereferenced temporary pointer to set array
  20769. MODULE Test;
  20770. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF SET; result: SET;
  20771. BEGIN result := array()^[0]
  20772. END Test.
  20773. positive: changing dereferenced indexed temporary pointer to set array
  20774. MODULE Test;
  20775. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF SET;
  20776. BEGIN array()^[0] := {5};
  20777. END Test.
  20778. positive: indexing variable pointer to array of array
  20779. MODULE Test;
  20780. VAR array: POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  20781. BEGIN result := array[0]
  20782. END Test.
  20783. positive: indexing temporary pointer to array of array
  20784. MODULE Test;
  20785. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  20786. BEGIN result := array()[0]
  20787. END Test.
  20788. positive: changing indexed temporary pointer to array of array
  20789. MODULE Test;
  20790. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; value: ARRAY 10 OF CHAR;
  20791. BEGIN array()[0] := value;
  20792. END Test.
  20793. positive: indexing dereferenced variable pointer to array of array
  20794. MODULE Test;
  20795. VAR array: POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  20796. BEGIN result := array^[0]
  20797. END Test.
  20798. positive: indexing dereferenced temporary pointer to array of array
  20799. MODULE Test;
  20800. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  20801. BEGIN result := array()^[0]
  20802. END Test.
  20803. positive: changing dereferenced indexed temporary pointer to array of array
  20804. MODULE Test;
  20805. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF ARRAY 10 OF CHAR; value: ARRAY 10 OF CHAR;
  20806. BEGIN array()^[0] := value;
  20807. END Test.
  20808. positive: indexing variable pointer to record array
  20809. MODULE Test;
  20810. TYPE Record = RECORD END;
  20811. VAR array: POINTER TO ARRAY 10 OF Record; result: Record;
  20812. BEGIN result := array[0]
  20813. END Test.
  20814. positive: indexing temporary pointer to record array
  20815. MODULE Test;
  20816. TYPE Record = RECORD END;
  20817. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record; result: Record;
  20818. BEGIN result := array()[0]
  20819. END Test.
  20820. positive: changing indexed temporary pointer to record array
  20821. MODULE Test;
  20822. TYPE Record = RECORD END;
  20823. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record; value: Record;
  20824. BEGIN array()[0] := value;
  20825. END Test.
  20826. positive: changing member of indexed temporary pointer to record array
  20827. MODULE Test;
  20828. TYPE Record = RECORD i: INTEGER END;
  20829. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record;
  20830. BEGIN array()[0].i := 5;
  20831. END Test.
  20832. positive: indexing dereferenced variable pointer to array of record
  20833. MODULE Test;
  20834. TYPE Record = RECORD END;
  20835. VAR array: POINTER TO ARRAY 10 OF Record; result: Record;
  20836. BEGIN result := array^[0]
  20837. END Test.
  20838. positive: indexing dereferenced temporary pointer to array of record
  20839. MODULE Test;
  20840. TYPE Record = RECORD END;
  20841. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record; result: Record;
  20842. BEGIN result := array()^[0]
  20843. END Test.
  20844. positive: changing dereferenced indexed temporary pointer to array of record
  20845. MODULE Test;
  20846. TYPE Record = RECORD END;
  20847. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record; value: Record;
  20848. BEGIN array()^[0] := value;
  20849. END Test.
  20850. positive: changing member of dereferenced indexed temporary pointer to array of record
  20851. MODULE Test;
  20852. TYPE Record = RECORD i: INTEGER END;
  20853. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Record;
  20854. BEGIN array()^[0].i := 5;
  20855. END Test.
  20856. positive: indexing variable pointer to object array
  20857. MODULE Test;
  20858. TYPE Object = OBJECT END Object;
  20859. VAR array: POINTER TO ARRAY 10 OF Object; result: Object;
  20860. BEGIN result := array[0]
  20861. END Test.
  20862. positive: indexing temporary pointer to object array
  20863. MODULE Test;
  20864. TYPE Object = OBJECT END Object;
  20865. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object; result: Object;
  20866. BEGIN result := array()[0]
  20867. END Test.
  20868. positive: changing indexed temporary pointer to object array
  20869. MODULE Test;
  20870. TYPE Object = OBJECT END Object;
  20871. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object; value: Object;
  20872. BEGIN array()[0] := value;
  20873. END Test.
  20874. positive: changing member of indexed temporary pointer to object array
  20875. MODULE Test;
  20876. TYPE Object = OBJECT VAR i: INTEGER END Object;
  20877. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object;
  20878. BEGIN array()[0].i := 5;
  20879. END Test.
  20880. positive: indexing dereferenced variable pointer to object array
  20881. MODULE Test;
  20882. TYPE Object = OBJECT END Object;
  20883. VAR array: POINTER TO ARRAY 10 OF Object; result: Object;
  20884. BEGIN result := array^[0]
  20885. END Test.
  20886. positive: indexing dereferenced temporary pointer to object array
  20887. MODULE Test;
  20888. TYPE Object = OBJECT END Object;
  20889. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object; result: Object;
  20890. BEGIN result := array()^[0]
  20891. END Test.
  20892. positive: changing dereferenced indexed temporary pointer to object array
  20893. MODULE Test;
  20894. TYPE Object = OBJECT END Object;
  20895. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object; value: Object;
  20896. BEGIN array()^[0] := value;
  20897. END Test.
  20898. positive: changing member of dereferenced indexed temporary pointer to object array
  20899. MODULE Test;
  20900. TYPE Object = OBJECT VAR i: INTEGER END Object;
  20901. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF Object;
  20902. BEGIN array()^[0].i := 5;
  20903. END Test.
  20904. positive: indexing variable pointer to base object array
  20905. MODULE Test;
  20906. VAR array: POINTER TO ARRAY 10 OF OBJECT; result: OBJECT;
  20907. BEGIN result := array[0]
  20908. END Test.
  20909. positive: indexing temporary pointer to base object array
  20910. MODULE Test;
  20911. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF OBJECT; result: OBJECT;
  20912. BEGIN result := array()[0]
  20913. END Test.
  20914. positive: changing indexed temporary pointer to base object array
  20915. MODULE Test;
  20916. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF OBJECT; value: OBJECT;
  20917. BEGIN array()[0] := value;
  20918. END Test.
  20919. positive: indexing dereferenced variable pointer to base object array
  20920. MODULE Test;
  20921. VAR array: POINTER TO ARRAY 10 OF OBJECT; result: OBJECT;
  20922. BEGIN result := array^[0]
  20923. END Test.
  20924. positive: indexing dereferenced temporary pointer to base object array
  20925. MODULE Test;
  20926. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF OBJECT; result: OBJECT;
  20927. BEGIN result := array()^[0]
  20928. END Test.
  20929. positive: changing dereferenced indexed temporary pointer to base object array
  20930. MODULE Test;
  20931. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF OBJECT; value: OBJECT;
  20932. BEGIN array()^[0] := value;
  20933. END Test.
  20934. positive: indexing variable pointer to pointer to array array
  20935. MODULE Test;
  20936. VAR array: POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  20937. BEGIN result := array[0]
  20938. END Test.
  20939. positive: indexing temporary pointer to pointer to array array
  20940. MODULE Test;
  20941. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  20942. BEGIN result := array()[0]
  20943. END Test.
  20944. positive: changing indexed temporary pointer to pointer to array array
  20945. MODULE Test;
  20946. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; value: POINTER TO ARRAY 10 OF CHAR;
  20947. BEGIN array()[0] := value;
  20948. END Test.
  20949. positive: changing element of indexed temporary pointer to pointer to array array
  20950. MODULE Test;
  20951. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR;
  20952. BEGIN array()[0][0] := 'f';
  20953. END Test.
  20954. positive: indexing dereferenced variable pointer to pointer to array array
  20955. MODULE Test;
  20956. VAR array: POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  20957. BEGIN result := array^[0]
  20958. END Test.
  20959. positive: indexing dereferenced temporary pointer to pointer to array array
  20960. MODULE Test;
  20961. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; result: POINTER TO ARRAY 10 OF CHAR;
  20962. BEGIN result := array()^[0]
  20963. END Test.
  20964. positive: changing dereferenced indexed temporary pointer to pointer to array array
  20965. MODULE Test;
  20966. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR; value: POINTER TO ARRAY 10 OF CHAR;
  20967. BEGIN array()^[0] := value;
  20968. END Test.
  20969. positive: changing element of dereferenced indexed temporary pointer to pointer to array array
  20970. MODULE Test;
  20971. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO ARRAY 10 OF CHAR;
  20972. BEGIN array()^[0][0] := 'f';
  20973. END Test.
  20974. positive: indexing variable pointer to pointer to record array
  20975. MODULE Test;
  20976. TYPE Record = RECORD END;
  20977. VAR array: POINTER TO ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  20978. BEGIN result := array[0]
  20979. END Test.
  20980. positive: indexing temporary pointer to pointer to record array
  20981. MODULE Test;
  20982. TYPE Record = RECORD END;
  20983. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  20984. BEGIN result := array()[0]
  20985. END Test.
  20986. positive: changing indexed temporary pointer to pointer to record array
  20987. MODULE Test;
  20988. TYPE Record = RECORD END;
  20989. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO Record; value: POINTER TO Record;
  20990. BEGIN array()[0] := value;
  20991. END Test.
  20992. positive: changing element of indexed temporary pointer to pointer to record array
  20993. MODULE Test;
  20994. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO RECORD i: INTEGER END;
  20995. BEGIN array()[0].i := 5;
  20996. END Test.
  20997. positive: indexing dereferenced variable pointer to record array
  20998. MODULE Test;
  20999. TYPE Record = RECORD END;
  21000. VAR array: POINTER TO ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  21001. BEGIN result := array^[0]
  21002. END Test.
  21003. positive: indexing dereferenced temporary pointer to pointer to record array
  21004. MODULE Test;
  21005. TYPE Record = RECORD END;
  21006. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO Record; result: POINTER TO Record;
  21007. BEGIN result := array()^[0]
  21008. END Test.
  21009. positive: changing dereferenced indexed temporary pointer to pointer to record array
  21010. MODULE Test;
  21011. TYPE Record = RECORD END;
  21012. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO Record; value: POINTER TO Record;
  21013. BEGIN array()^[0] := value;
  21014. END Test.
  21015. positive: changing element of dereferenced indexed temporary pointer to pointer to record array
  21016. MODULE Test;
  21017. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF POINTER TO RECORD i: INTEGER END;
  21018. BEGIN array()^[0].i := 5;
  21019. END Test.
  21020. positive: indexing variable pointer to procedure array
  21021. MODULE Test;
  21022. VAR array: POINTER TO ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  21023. BEGIN result := array[0]
  21024. END Test.
  21025. positive: indexing temporary pointer to procedure array
  21026. MODULE Test;
  21027. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  21028. BEGIN result := array()[0]
  21029. END Test.
  21030. positive: changing indexed temporary pointer to procedure array
  21031. MODULE Test;
  21032. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF PROCEDURE; value: PROCEDURE;
  21033. BEGIN array()[0] := value;
  21034. END Test.
  21035. positive: indexing dereferenced variable pointer to procedure array
  21036. MODULE Test;
  21037. VAR array: POINTER TO ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  21038. BEGIN result := array^[0]
  21039. END Test.
  21040. positive: indexing dereferenced temporary pointer to procedure array
  21041. MODULE Test;
  21042. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF PROCEDURE; result: PROCEDURE;
  21043. BEGIN result := array()^[0]
  21044. END Test.
  21045. positive: changing dereferenced indexed temporary pointer to procedure array
  21046. MODULE Test;
  21047. VAR array: PROCEDURE (): POINTER TO ARRAY 10 OF PROCEDURE; value: PROCEDURE;
  21048. BEGIN array()^[0] := value;
  21049. END Test.
  21050. negative: variable pointer to array as index
  21051. MODULE Test;
  21052. VAR array: ARRAY 10 OF CHAR; result: CHAR; pointer: POINTER TO ARRAY 10 OF CHAR;
  21053. BEGIN result := array[pointer]
  21054. END Test.
  21055. negative: member selection on variable pointer to array
  21056. MODULE Test;
  21057. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  21058. BEGIN result := pointer.member
  21059. END Test.
  21060. negative: member selection on dereferenced variable pointer to array
  21061. MODULE Test;
  21062. VAR pointer: POINTER TO ARRAY 10 OF CHAR; result: ARRAY 10 OF CHAR;
  21063. BEGIN result := pointer^.member
  21064. END Test.
  21065. negative: calling variable pointer to array
  21066. MODULE Test;
  21067. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  21068. BEGIN pointer
  21069. END Test.
  21070. # variable procedures
  21071. negative: arithmetic negation on variable procedure
  21072. MODULE Test;
  21073. VAR procedure, result: PROCEDURE;
  21074. BEGIN result := -procedure;
  21075. END Test.
  21076. negative: logical negation on variable procedure
  21077. MODULE Test;
  21078. VAR procedure, result: PROCEDURE;
  21079. BEGIN result := ~procedure;
  21080. END Test.
  21081. negative: dereferencing variable pointer to procedure
  21082. MODULE Test;
  21083. VAR procedure, result: PROCEDURE;
  21084. BEGIN result := procedure^;
  21085. END Test.
  21086. negative: addition on variable procedures
  21087. MODULE Test;
  21088. VAR procedure, result: PROCEDURE;
  21089. BEGIN result := procedure + procedure;
  21090. END Test.
  21091. negative: subtraction on variable procedures
  21092. MODULE Test;
  21093. VAR procedure, result: PROCEDURE;
  21094. BEGIN result := procedure - procedure
  21095. END Test.
  21096. negative: multiplication on variable procedures
  21097. MODULE Test;
  21098. VAR procedure, result: PROCEDURE;
  21099. BEGIN result := procedure * procedure
  21100. END Test.
  21101. negative: integer division on variable procedures
  21102. MODULE Test;
  21103. VAR procedure: PROCEDURE; result: INTEGER;
  21104. BEGIN result := procedure DIV procedure
  21105. END Test.
  21106. negative: real division on variable procedures
  21107. MODULE Test;
  21108. VAR procedure: PROCEDURE; result: REAL;
  21109. BEGIN result := procedure / procedure
  21110. END Test.
  21111. negative: modulo on variable procedures
  21112. MODULE Test;
  21113. VAR procedure: PROCEDURE; result: INTEGER;
  21114. BEGIN result := procedure MOD procedure
  21115. END Test.
  21116. positive: equal relation on variable procedures
  21117. MODULE Test;
  21118. VAR procedure: PROCEDURE; result: BOOLEAN;
  21119. BEGIN result := procedure = procedure
  21120. END Test.
  21121. positive: equal relation on compatible variable procedures
  21122. MODULE Test;
  21123. VAR procedure1: PROCEDURE; procedure2: PROCEDURE; result: BOOLEAN;
  21124. BEGIN result := (procedure1 = procedure2) OR (procedure2 = procedure1)
  21125. END Test.
  21126. negative: equal relation on incompatible variable procedures
  21127. MODULE Test;
  21128. VAR procedure1: PROCEDURE; procedure2: PROCEDURE (p: PROCEDURE); result: BOOLEAN;
  21129. BEGIN result := (procedure1 = procedure2) OR (procedure2 = procedure1)
  21130. END Test.
  21131. positive: unequal relation on variable procedures
  21132. MODULE Test;
  21133. VAR procedure: PROCEDURE; result: BOOLEAN;
  21134. BEGIN result := procedure # procedure
  21135. END Test.
  21136. positive: unequal relation on compatible variable procedures
  21137. MODULE Test;
  21138. VAR procedure1: PROCEDURE; procedure2: PROCEDURE; result: BOOLEAN;
  21139. BEGIN result := (procedure1 # procedure2) OR (procedure2 # procedure1)
  21140. END Test.
  21141. negative: unequal relation on incompatible variable procedures
  21142. MODULE Test;
  21143. VAR procedure1: PROCEDURE; procedure2: PROCEDURE (p: PROCEDURE); result: BOOLEAN;
  21144. BEGIN result := (procedure1 # procedure2) OR (procedure2 # procedure1)
  21145. END Test.
  21146. negative: less relation on variable procedures
  21147. MODULE Test;
  21148. VAR procedure: PROCEDURE; result: BOOLEAN;
  21149. BEGIN result := procedure < procedure
  21150. END Test.
  21151. negative: less or equal relation on variable procedures
  21152. MODULE Test;
  21153. VAR procedure: PROCEDURE; result: BOOLEAN;
  21154. BEGIN result := procedure <= procedure
  21155. END Test.
  21156. negative: greater relation on variable procedures
  21157. MODULE Test;
  21158. VAR procedure: PROCEDURE; result: BOOLEAN;
  21159. BEGIN result := procedure > procedure
  21160. END Test.
  21161. negative: greater or equal relation on variable procedures
  21162. MODULE Test;
  21163. VAR procedure: PROCEDURE; result: BOOLEAN;
  21164. BEGIN result := procedure >= procedure
  21165. END Test.
  21166. negative: set membership on variable procedures
  21167. MODULE Test;
  21168. VAR procedure: PROCEDURE; result: BOOLEAN;
  21169. BEGIN result := procedure IN procedure
  21170. END Test.
  21171. negative: type test on variable procedures
  21172. MODULE Test;
  21173. VAR procedure: PROCEDURE; result: BOOLEAN;
  21174. BEGIN result := procedure IS procedure
  21175. END Test.
  21176. negative: type test on variable procedure
  21177. MODULE Test;
  21178. VAR procedure: PROCEDURE; result: BOOLEAN;
  21179. BEGIN result := procedure IS PROCEDURE
  21180. END Test.
  21181. negative: type test on pointer to procedure type
  21182. MODULE Test;
  21183. TYPE Type = PROCEDURE;
  21184. VAR procedure: Type; result: BOOLEAN;
  21185. BEGIN result := procedure IS Type
  21186. END Test.
  21187. negative: type guard on variable procedures
  21188. MODULE Test;
  21189. VAR procedure, result: PROCEDURE;
  21190. BEGIN result := procedure(procedure)
  21191. END Test.
  21192. negative: type guard on variable procedure
  21193. MODULE Test;
  21194. VAR procedure, result: PROCEDURE;
  21195. BEGIN result := procedure(PROCEDURE)
  21196. END Test.
  21197. negative: type guard on pointer to procedure type
  21198. MODULE Test;
  21199. TYPE Type = PROCEDURE;
  21200. VAR procedure: Type; result: Type;
  21201. BEGIN result := procedure(Type)
  21202. END Test.
  21203. negative: logical and on variable procedures
  21204. MODULE Test;
  21205. VAR procedure, result: PROCEDURE;
  21206. BEGIN result := procedure & procedure
  21207. END Test.
  21208. negative: logical or on variable procedures
  21209. MODULE Test;
  21210. VAR procedure, result: PROCEDURE;
  21211. BEGIN result := procedure OR procedure
  21212. END Test.
  21213. negative: ordinal value of variable procedure
  21214. MODULE Test;
  21215. VAR procedure: PROCEDURE; result: INTEGER;
  21216. BEGIN result := ORD (procedure)
  21217. END Test.
  21218. negative: character value of variable procedure
  21219. MODULE Test;
  21220. VAR procedure: PROCEDURE; result: CHAR;
  21221. BEGIN result := CHR (procedure)
  21222. END Test.
  21223. negative: absolute value of variable procedure
  21224. MODULE Test;
  21225. VAR procedure, result: PROCEDURE;
  21226. BEGIN result := ABS (procedure)
  21227. END Test.
  21228. negative: odd test on variable procedure
  21229. MODULE Test;
  21230. VAR procedure: PROCEDURE; result: BOOLEAN;
  21231. BEGIN result := ODD (procedure)
  21232. END Test.
  21233. negative: capital letter of variable procedure
  21234. MODULE Test;
  21235. VAR procedure: PROCEDURE; result: CHAR;
  21236. BEGIN result := CAP (procedure)
  21237. END Test.
  21238. negative: arithmetic shift of variable procedures
  21239. MODULE Test;
  21240. VAR procedure, result: PROCEDURE;
  21241. BEGIN result := ASH (procedure, procedure)
  21242. END Test.
  21243. negative: short on variable procedure
  21244. MODULE Test;
  21245. VAR procedure, result: PROCEDURE;
  21246. BEGIN result := SHORT (procedure)
  21247. END Test.
  21248. negative: long on variable procedure
  21249. MODULE Test;
  21250. VAR procedure, result: PROCEDURE;
  21251. BEGIN result := LONG (procedure)
  21252. END Test.
  21253. negative: entier on variable procedure
  21254. MODULE Test;
  21255. VAR procedure, result: PROCEDURE;
  21256. BEGIN result := ENTIER (procedure)
  21257. END Test.
  21258. negative: unary length of variable procedure
  21259. MODULE Test;
  21260. VAR procedure: PROCEDURE; result: LONGINT;
  21261. BEGIN result := LEN (procedure)
  21262. END Test.
  21263. negative: binary length of variable procedure
  21264. MODULE Test;
  21265. VAR procedure: PROCEDURE; result: LONGINT;
  21266. BEGIN result := LEN (procedure, 0)
  21267. END Test.
  21268. negative: indexing variable procedure
  21269. MODULE Test;
  21270. VAR procedure: PROCEDURE; result: CHAR;
  21271. BEGIN result := procedure[0]
  21272. END Test.
  21273. negative: variable procedure as index
  21274. MODULE Test;
  21275. VAR array: ARRAY 10 OF CHAR; result: CHAR; procedure: PROCEDURE;
  21276. BEGIN result := array[procedure]
  21277. END Test.
  21278. positive: calling variable procedure
  21279. MODULE Test;
  21280. VAR procedure: PROCEDURE;
  21281. BEGIN procedure
  21282. END Test.
  21283. negative: calling variable procedure returning boolean
  21284. MODULE Test;
  21285. VAR procedure: PROCEDURE (): BOOLEAN;
  21286. BEGIN procedure
  21287. END Test.
  21288. negative: calling variable procedure returning character
  21289. MODULE Test;
  21290. VAR procedure: PROCEDURE (): CHAR;
  21291. BEGIN procedure
  21292. END Test.
  21293. negative: calling variable procedure returning integer
  21294. MODULE Test;
  21295. VAR procedure: PROCEDURE (): INTEGER;
  21296. BEGIN procedure
  21297. END Test.
  21298. negative: calling variable procedure returning real
  21299. MODULE Test;
  21300. VAR procedure: PROCEDURE (): REAL;
  21301. BEGIN procedure
  21302. END Test.
  21303. negative: calling variable procedure returning set
  21304. MODULE Test;
  21305. VAR procedure: PROCEDURE (): SET;
  21306. BEGIN procedure
  21307. END Test.
  21308. negative: calling variable procedure returning array
  21309. MODULE Test;
  21310. VAR procedure: PROCEDURE (): ARRAY 10 OF CHAR;
  21311. BEGIN procedure
  21312. END Test.
  21313. negative: calling variable procedure returning record
  21314. MODULE Test;
  21315. VAR procedure: PROCEDURE (): RECORD END;
  21316. BEGIN procedure
  21317. END Test.
  21318. negative: calling variable procedure returning object
  21319. MODULE Test;
  21320. VAR procedure: PROCEDURE (): OBJECT END;
  21321. BEGIN procedure
  21322. END Test.
  21323. negative: calling variable procedure returning base object
  21324. MODULE Test;
  21325. VAR procedure: PROCEDURE (): OBJECT;
  21326. BEGIN procedure
  21327. END Test.
  21328. negative: calling variable procedure returning pointer to array
  21329. MODULE Test;
  21330. VAR procedure: PROCEDURE (): POINTER TO ARRAY 10 OF CHAR;
  21331. BEGIN procedure
  21332. END Test.
  21333. negative: calling variable procedure returning pointer to record
  21334. MODULE Test;
  21335. VAR procedure: PROCEDURE (): POINTER TO ARRAY 10 OF RECORD END;
  21336. BEGIN procedure
  21337. END Test.
  21338. negative: calling variable procedure returning procedure
  21339. MODULE Test;
  21340. VAR procedure: PROCEDURE (): PROCEDURE;
  21341. BEGIN procedure
  21342. END Test.
  21343. # implicit variable conversions
  21344. positive: implicit variable short to integer conversion
  21345. MODULE Test;
  21346. VAR shortint: SHORTINT; integer, result: INTEGER;
  21347. BEGIN result := shortint + integer
  21348. END Test.
  21349. positive: implicit variable short to long integer conversion
  21350. MODULE Test;
  21351. VAR shortint: SHORTINT; longint, result: LONGINT;
  21352. BEGIN result := shortint * longint
  21353. END Test.
  21354. positive: implicit variable short to huge integer conversion
  21355. MODULE Test;
  21356. VAR shortint: SHORTINT; hugeint, result: HUGEINT;
  21357. BEGIN result := hugeint DIV shortint
  21358. END Test.
  21359. positive: implicit variable integer to long integer conversion
  21360. MODULE Test;
  21361. VAR integer: INTEGER; longint, result: LONGINT;
  21362. BEGIN result := integer - longint
  21363. END Test.
  21364. positive: implicit variable integer to huge integer conversion
  21365. MODULE Test;
  21366. VAR integer: INTEGER; hugeint, result: HUGEINT;
  21367. BEGIN result := integer * hugeint
  21368. END Test.
  21369. positive: implicit variable long to huge integer conversion
  21370. MODULE Test;
  21371. VAR longint: INTEGER; hugeint, result: HUGEINT;
  21372. BEGIN result := hugeint + longint
  21373. END Test.
  21374. positive: implicit variable integer to real conversion
  21375. MODULE Test;
  21376. VAR integer: INTEGER; real, result: REAL;
  21377. BEGIN result := real + integer
  21378. END Test.
  21379. positive: implicit variable integer to long real conversion
  21380. MODULE Test;
  21381. VAR integer: INTEGER; longreal, result: LONGREAL;
  21382. BEGIN result := integer / longreal
  21383. END Test.
  21384. positive: implicit variable real to long real conversion
  21385. MODULE Test;
  21386. VAR real: REAL; longreal, result: LONGREAL;
  21387. BEGIN result := longreal * real
  21388. END Test.
  21389. negative: implicit conversion between variable boolean and character
  21390. MODULE Test;
  21391. VAR boolean, result: BOOLEAN; character: CHAR;
  21392. BEGIN result := boolean = character
  21393. END Test.
  21394. negative: implicit conversion between variable boolean and integer
  21395. MODULE Test;
  21396. VAR boolean, result: BOOLEAN; integer: INTEGER;
  21397. BEGIN result := boolean # integer
  21398. END Test.
  21399. negative: implicit conversion between variable boolean and real
  21400. MODULE Test;
  21401. VAR boolean, result: BOOLEAN; real: REAL;
  21402. BEGIN result := boolean = real
  21403. END Test.
  21404. negative: implicit conversion between variable boolean and set
  21405. MODULE Test;
  21406. VAR boolean, result: BOOLEAN; set: SET;
  21407. BEGIN result := boolean = set
  21408. END Test.
  21409. negative: implicit conversion between variable character and integer
  21410. MODULE Test;
  21411. VAR character: CHAR; integer: INTEGER; result: BOOLEAN;
  21412. BEGIN result := character # integer
  21413. END Test.
  21414. negative: implicit conversion between variable character and real
  21415. MODULE Test;
  21416. VAR character: CHAR; real: REAL; result: BOOLEAN;
  21417. BEGIN result := 't' # real
  21418. END Test.
  21419. negative: implicit conversion between variable character and set
  21420. MODULE Test;
  21421. VAR character: CHAR; set: SET; result: BOOLEAN;
  21422. BEGIN result := character = set
  21423. END Test.
  21424. positive: implicit conversion between variable integer and real
  21425. MODULE Test;
  21426. VAR integer: INTEGER; real: REAL; result: BOOLEAN;
  21427. BEGIN result := integer # real
  21428. END Test.
  21429. negative: implicit conversion between variable integer and set
  21430. MODULE Test;
  21431. VAR integer: INTEGER; set: SET; result: BOOLEAN;
  21432. BEGIN result := integer = set
  21433. END Test.
  21434. negative: implicit conversion between variable real and set
  21435. MODULE Test;
  21436. VAR real: REAL; set: SET; result: BOOLEAN;
  21437. BEGIN result := real = set
  21438. END Test.
  21439. # explicit variable conversions
  21440. negative: explicit long conversion on variable short integer
  21441. MODULE Test;
  21442. VAR shortint: SHORTINT;
  21443. BEGIN shortint := LONG (shortint);
  21444. END Test.
  21445. negative: explicit short conversion on variable short integer
  21446. MODULE Test;
  21447. VAR shortint: SHORTINT;
  21448. BEGIN shortint := SHORT (shortint);
  21449. END Test.
  21450. negative: explicit long conversion on variable integer
  21451. MODULE Test;
  21452. VAR integer: INTEGER;
  21453. BEGIN integer := LONG (integer);
  21454. END Test.
  21455. positive: explicit short conversion on variable integer
  21456. MODULE Test;
  21457. VAR integer: INTEGER;
  21458. BEGIN integer := SHORT (integer);
  21459. END Test.
  21460. negative: explicit long conversion on variable long integer
  21461. MODULE Test;
  21462. VAR longint: LONGINT;
  21463. BEGIN longint := LONG (longint);
  21464. END Test.
  21465. positive: explicit short conversion on variable long integer
  21466. MODULE Test;
  21467. VAR longint: LONGINT;
  21468. BEGIN longint := SHORT (longint);
  21469. END Test.
  21470. negative: explicit long conversion on variable huge integer
  21471. MODULE Test;
  21472. VAR hugeint: HUGEINT;
  21473. BEGIN hugeint := LONG (hugeint);
  21474. END Test.
  21475. positive: explicit short conversion on variable huge integer
  21476. MODULE Test;
  21477. VAR hugeint: HUGEINT;
  21478. BEGIN hugeint := SHORT (hugeint);
  21479. END Test.
  21480. positive: explicit variable short integer to integer conversion
  21481. MODULE Test;
  21482. VAR shortint: SHORTINT; integer: INTEGER;
  21483. BEGIN integer := LONG (shortint);
  21484. END Test.
  21485. positive: explicit variable short to long integer conversion
  21486. MODULE Test;
  21487. VAR shortint: SHORTINT; longint: LONGINT;
  21488. BEGIN longint := LONG (LONG (shortint));
  21489. END Test.
  21490. positive: explicit variable short to huge integer conversion
  21491. MODULE Test;
  21492. VAR shortint: SHORTINT; hugeint: HUGEINT;
  21493. BEGIN hugeint := LONG (LONG (LONG (shortint)));
  21494. END Test.
  21495. positive: explicit variable integer to short integer conversion
  21496. MODULE Test;
  21497. VAR integer: INTEGER; shortint: SHORTINT;
  21498. BEGIN integer := SHORT (integer);
  21499. END Test.
  21500. positive: explicit variable integer to long integer conversion
  21501. MODULE Test;
  21502. VAR integer: INTEGER; longint: LONGINT;
  21503. BEGIN longint := LONG (integer);
  21504. END Test.
  21505. positive: explicit variable integer to huge integer conversion
  21506. MODULE Test;
  21507. VAR integer: INTEGER; hugeint: HUGEINT;
  21508. BEGIN hugeint := LONG (LONG (integer));
  21509. END Test.
  21510. positive: explicit variable long to short integer conversion
  21511. MODULE Test;
  21512. VAR longint: LONGINT; shortint: SHORTINT;
  21513. BEGIN shortint := SHORT (SHORT (longint));
  21514. END Test.
  21515. positive: explicit variable long to integer conversion
  21516. MODULE Test;
  21517. VAR longint: LONGINT; integer: INTEGER;
  21518. BEGIN integer := SHORT (longint);
  21519. END Test.
  21520. positive: explicit variable long to huge integer conversion
  21521. MODULE Test;
  21522. VAR longint: LONGINT; hugeint: HUGEINT;
  21523. BEGIN hugeint := LONG (longint);
  21524. END Test.
  21525. positive: explicit variable huge to short integer conversion
  21526. MODULE Test;
  21527. VAR hugeint: HUGEINT; shortint: SHORTINT;
  21528. BEGIN shortint := SHORT (SHORT (SHORT (hugeint)));
  21529. END Test.
  21530. positive: explicit variable huge to integer conversion
  21531. MODULE Test;
  21532. VAR hugeint: HUGEINT; integer: INTEGER;
  21533. BEGIN integer := SHORT (SHORT (hugeint));
  21534. END Test.
  21535. positive: explicit variable huge to long integer conversion
  21536. MODULE Test;
  21537. VAR hugeint: HUGEINT; longint: LONGINT;
  21538. BEGIN hugeint := SHORT (hugeint);
  21539. END Test.
  21540. negative: explicit variable real to short integer conversion
  21541. MODULE Test;
  21542. VAR real: REAL; shortint: SHORTINT;
  21543. BEGIN shortint := ENTIER (real);
  21544. END Test.
  21545. negative: explicit variable real to integer conversion
  21546. MODULE Test;
  21547. VAR real: REAL; integer: INTEGER;
  21548. BEGIN integer := ENTIER (real);
  21549. END Test.
  21550. positive: explicit variable real to long integer conversion
  21551. MODULE Test;
  21552. VAR real: REAL; longint: LONGINT;
  21553. BEGIN longint := ENTIER (real);
  21554. END Test.
  21555. positive: explicit variable real to huge integer conversion
  21556. MODULE Test;
  21557. VAR real: REAL; hugeint: HUGEINT;
  21558. BEGIN hugeint := ENTIER (real);
  21559. END Test.
  21560. negative: explicit variable long real to short integer conversion
  21561. MODULE Test;
  21562. VAR longreal: LONGREAL; shortint: SHORTINT;
  21563. BEGIN shortint := ENTIER (longreal);
  21564. END Test.
  21565. negative: explicit variable long real to integer conversion
  21566. MODULE Test;
  21567. VAR longreal: LONGREAL; integer: INTEGER;
  21568. BEGIN integer := ENTIER (longreal);
  21569. END Test.
  21570. positive: explicit variable long real to long integer conversion
  21571. MODULE Test;
  21572. VAR longreal: LONGREAL; longint: LONGINT;
  21573. BEGIN longint := ENTIER (longreal);
  21574. END Test.
  21575. positive: explicit variable long real to huge integer conversion
  21576. MODULE Test;
  21577. VAR longreal: LONGREAL; hugeint: HUGEINT;
  21578. BEGIN hugeint := ENTIER (longreal);
  21579. END Test.
  21580. # for statement
  21581. negative: for statement with unknown counter
  21582. MODULE Test;
  21583. BEGIN FOR i := 0 TO 10 DO END
  21584. END Test.
  21585. negative: for statement with constant as counter
  21586. MODULE Test;
  21587. CONST i = 0;
  21588. BEGIN FOR i := 0 TO 10 DO END
  21589. END Test.
  21590. negative: for statement with type as counter
  21591. MODULE Test;
  21592. TYPE i = LONGINT;
  21593. BEGIN FOR i := 0 TO 10 DO END
  21594. END Test.
  21595. positive: for statement with variable as counter
  21596. MODULE Test;
  21597. VAR i: INTEGER;
  21598. BEGIN FOR i := 0 TO 10 DO END
  21599. END Test.
  21600. positive: for statement with parameter as counter
  21601. MODULE Test;
  21602. PROCEDURE Procedure (i: INTEGER);
  21603. BEGIN FOR i := 0 TO 10 DO END
  21604. END Procedure;
  21605. END Test.
  21606. negative: for statement with procedure as counter
  21607. MODULE Test;
  21608. PROCEDURE i; END i;
  21609. BEGIN FOR i := 0 TO 10 DO END
  21610. END Test.
  21611. negative: for statement with constant counter
  21612. MODULE Test;
  21613. VAR s, e: INTEGER;
  21614. BEGIN FOR 0 := s TO e DO END
  21615. END Test.
  21616. positive: for statement with constant start counter
  21617. MODULE Test;
  21618. VAR i, e: INTEGER;
  21619. BEGIN FOR i := 0 TO e DO END
  21620. END Test.
  21621. positive: for statement with constant end counter
  21622. MODULE Test;
  21623. VAR i, s: INTEGER;
  21624. BEGIN FOR i := s TO 0 DO END
  21625. END Test.
  21626. positive: for statement with variable counter
  21627. MODULE Test;
  21628. VAR i: INTEGER;
  21629. BEGIN FOR i := 0 TO 10 DO END
  21630. END Test.
  21631. positive: for statement with variable start counter
  21632. MODULE Test;
  21633. VAR i, s: INTEGER;
  21634. BEGIN FOR i := s TO 10 DO END
  21635. END Test.
  21636. positive: for statement with variable end counter
  21637. MODULE Test;
  21638. VAR i, e: INTEGER;
  21639. BEGIN FOR i := 0 TO e DO END
  21640. END Test.
  21641. negative: for statement with variable increment
  21642. MODULE Test;
  21643. VAR i, s: INTEGER;
  21644. BEGIN FOR i := 0 TO 10 BY s DO END
  21645. END Test.
  21646. positive: for statement with parameter counter
  21647. MODULE Test;
  21648. PROCEDURE P (i: INTEGER);
  21649. BEGIN FOR i := 0 TO 10 DO END
  21650. END P;
  21651. END Test.
  21652. positive: for statement with variable parameter counter
  21653. MODULE Test;
  21654. PROCEDURE P (VAR i: INTEGER);
  21655. BEGIN FOR i := 0 TO 10 DO END
  21656. END P;
  21657. END Test.
  21658. negative: for statement with constant parameter counter
  21659. MODULE Test;
  21660. PROCEDURE P (CONST i: INTEGER);
  21661. BEGIN FOR i := 0 TO 10 DO END
  21662. END P;
  21663. END Test.
  21664. positive: for statement with parameter start counter
  21665. MODULE Test;
  21666. VAR i: INTEGER;
  21667. PROCEDURE P (s: INTEGER);
  21668. BEGIN FOR i := s TO 10 DO END
  21669. END P;
  21670. END Test.
  21671. positive: for statement with variable parameter start counter
  21672. MODULE Test;
  21673. VAR i: INTEGER;
  21674. PROCEDURE P (VAR s: INTEGER);
  21675. BEGIN FOR i := s TO 10 DO END
  21676. END P;
  21677. END Test.
  21678. positive: for statement with constant parameter start counter
  21679. MODULE Test;
  21680. VAR i: INTEGER;
  21681. PROCEDURE P (CONST s: INTEGER);
  21682. BEGIN FOR i := s TO 10 DO END
  21683. END P;
  21684. END Test.
  21685. positive: for statement with parameter end counter
  21686. MODULE Test;
  21687. VAR i: INTEGER;
  21688. PROCEDURE P (e: INTEGER);
  21689. BEGIN FOR i := 0 TO e DO END
  21690. END P;
  21691. END Test.
  21692. positive: for statement with variable parameter end counter
  21693. MODULE Test;
  21694. VAR i: INTEGER;
  21695. PROCEDURE P (VAR e: INTEGER);
  21696. BEGIN FOR i := 0 TO e DO END
  21697. END P;
  21698. END Test.
  21699. positive: for statement with constant parameter end counter
  21700. MODULE Test;
  21701. VAR i: INTEGER;
  21702. PROCEDURE P (CONST e: INTEGER);
  21703. BEGIN FOR i := 0 TO e DO END
  21704. END P;
  21705. END Test.
  21706. negative: for statement with parameter increment
  21707. MODULE Test;
  21708. VAR i: INTEGER;
  21709. PROCEDURE P (s: INTEGER);
  21710. BEGIN FOR i := 0 TO 10 BY s DO END
  21711. END P;
  21712. END Test.
  21713. negative: for statement with variable parameter increment
  21714. MODULE Test;
  21715. VAR i: INTEGER;
  21716. PROCEDURE P (VAR s: INTEGER);
  21717. BEGIN FOR i := 0 TO 10 BY s DO END
  21718. END P;
  21719. END Test.
  21720. negative: for statement with constant parameter increment
  21721. MODULE Test;
  21722. VAR i: INTEGER;
  21723. PROCEDURE P (CONST s: INTEGER);
  21724. BEGIN FOR i := 0 TO 10 BY s DO END
  21725. END P;
  21726. END Test.
  21727. positive: for statement with positive constant increment
  21728. MODULE Test;
  21729. VAR i: INTEGER;
  21730. BEGIN FOR i := 0 TO 10 BY 1 DO END
  21731. END Test.
  21732. positive: for statement with negative constant increment
  21733. MODULE Test;
  21734. VAR i: INTEGER;
  21735. BEGIN FOR i := 0 TO 10 BY -1 DO END
  21736. END Test.
  21737. negative: for statement with zero increment
  21738. MODULE Test;
  21739. VAR i: INTEGER;
  21740. BEGIN FOR i := 0 TO 10 BY 0 DO END
  21741. END Test.
  21742. negative: for statement with counter of type boolean
  21743. MODULE Test;
  21744. VAR i, s, e: BOOLEAN;
  21745. BEGIN FOR i := s TO e DO END
  21746. END Test.
  21747. negative: for statement with counter of type character
  21748. MODULE Test;
  21749. VAR i, s, e: CHAR;
  21750. BEGIN FOR i := s TO e DO END
  21751. END Test.
  21752. positive: for statement with counter of type short integer
  21753. MODULE Test;
  21754. VAR i, s, e: SHORTINT;
  21755. BEGIN FOR i := s TO e DO END
  21756. END Test.
  21757. positive: for statement with counter of type integer
  21758. MODULE Test;
  21759. VAR i, s, e: INTEGER;
  21760. BEGIN FOR i := s TO e DO END
  21761. END Test.
  21762. positive: for statement with counter of type long integer
  21763. MODULE Test;
  21764. VAR i, s, e: LONGINT;
  21765. BEGIN FOR i := s TO e DO END
  21766. END Test.
  21767. positive: for statement with counter of type huge integer
  21768. MODULE Test;
  21769. VAR i, s, e: HUGEINT;
  21770. BEGIN FOR i := s TO e DO END
  21771. END Test.
  21772. negative: for statement with counter of type real
  21773. MODULE Test;
  21774. VAR i, s, e: REAL;
  21775. BEGIN FOR i := s TO e DO END
  21776. END Test.
  21777. negative: for statement with counter of type long real
  21778. MODULE Test;
  21779. VAR i, s, e: REAL;
  21780. BEGIN FOR i := s TO e DO END
  21781. END Test.
  21782. negative: for statement with counter of type set
  21783. MODULE Test;
  21784. VAR i, s, e: SET;
  21785. BEGIN FOR i := s TO e DO END
  21786. END Test.
  21787. negative: for statement with counter of type array
  21788. MODULE Test;
  21789. VAR i, s, e: ARRAY 10 OF CHAR;
  21790. BEGIN FOR i := s TO e DO END
  21791. END Test.
  21792. negative: for statement with counter of type record
  21793. MODULE Test;
  21794. VAR i, s, e: RECORD END;
  21795. BEGIN FOR i := s TO e DO END
  21796. END Test.
  21797. negative: for statement with counter of type object
  21798. MODULE Test;
  21799. VAR i, s, e: OBJECT END;
  21800. BEGIN FOR i := s TO e DO END
  21801. END Test.
  21802. negative: for statement with counter of type pointer
  21803. MODULE Test;
  21804. VAR i, s, e: POINTER TO RECORD;
  21805. BEGIN FOR i := s TO e DO END
  21806. END Test.
  21807. negative: for statement with counter of type procedure
  21808. MODULE Test;
  21809. VAR i, s, e: PROCEDURE;
  21810. BEGIN FOR i := s TO e DO END
  21811. END Test.
  21812. positive: for statement with short integer counter and short integer start counter
  21813. MODULE Test;
  21814. VAR i, s: SHORTINT;
  21815. BEGIN FOR i := s TO 10 DO END
  21816. END Test.
  21817. negative: for statement with short integer counter and integer start counter
  21818. MODULE Test;
  21819. VAR i: SHORTINT; s: INTEGER;
  21820. BEGIN FOR i := s TO 10 DO END
  21821. END Test.
  21822. negative: for statement with short integer counter and long integer start counter
  21823. MODULE Test;
  21824. VAR i: SHORTINT; s: LONGINT;
  21825. BEGIN FOR i := s TO 10 DO END
  21826. END Test.
  21827. negative: for statement with short integer counter and huge integer start counter
  21828. MODULE Test;
  21829. VAR i: SHORTINT; s: HUGEINT;
  21830. BEGIN FOR i := s TO 10 DO END
  21831. END Test.
  21832. positive: for statement with integer counter and short integer start counter
  21833. MODULE Test;
  21834. VAR i: INTEGER; s: SHORTINT;
  21835. BEGIN FOR i := s TO 10 DO END
  21836. END Test.
  21837. positive: for statement with integer counter and integer start counter
  21838. MODULE Test;
  21839. VAR i, s: INTEGER;
  21840. BEGIN FOR i := s TO 10 DO END
  21841. END Test.
  21842. negative: for statement with integer counter and long integer start counter
  21843. MODULE Test;
  21844. VAR i: INTEGER; s: LONGINT;
  21845. BEGIN FOR i := s TO 10 DO END
  21846. END Test.
  21847. negative: for statement with integer counter and huge integer start counter
  21848. MODULE Test;
  21849. VAR i: INTEGER; s: HUGEINT;
  21850. BEGIN FOR i := s TO 10 DO END
  21851. END Test.
  21852. positive: for statement with long integer counter and short integer start counter
  21853. MODULE Test;
  21854. VAR i: LONGINT; s: SHORTINT;
  21855. BEGIN FOR i := s TO 10 DO END
  21856. END Test.
  21857. positive: for statement with long integer counter and integer start counter
  21858. MODULE Test;
  21859. VAR i: LONGINT; s: INTEGER;
  21860. BEGIN FOR i := s TO 10 DO END
  21861. END Test.
  21862. positive: for statement with long integer counter and long integer start counter
  21863. MODULE Test;
  21864. VAR i, s: LONGINT;
  21865. BEGIN FOR i := s TO 10 DO END
  21866. END Test.
  21867. negative: for statement with long integer counter and huge integer start counter
  21868. MODULE Test;
  21869. VAR i: LONGINT; s: HUGEINT;
  21870. BEGIN FOR i := s TO 10 DO END
  21871. END Test.
  21872. positive: for statement with huge integer counter and short integer start counter
  21873. MODULE Test;
  21874. VAR i: HUGEINT; s: SHORTINT;
  21875. BEGIN FOR i := s TO 10 DO END
  21876. END Test.
  21877. positive: for statement with huge integer counter and integer start counter
  21878. MODULE Test;
  21879. VAR i: HUGEINT; s: INTEGER;
  21880. BEGIN FOR i := s TO 10 DO END
  21881. END Test.
  21882. positive: for statement with huge integer counter and long integer start counter
  21883. MODULE Test;
  21884. VAR i: HUGEINT; s: LONGINT;
  21885. BEGIN FOR i := s TO 10 DO END
  21886. END Test.
  21887. positive: for statement with huge integer counter and huge integer start counter
  21888. MODULE Test;
  21889. VAR i, s: HUGEINT;
  21890. BEGIN FOR i := s TO 10 DO END
  21891. END Test.
  21892. positive: for statement with short integer counter and short integer end counter
  21893. MODULE Test;
  21894. VAR i, e: SHORTINT;
  21895. BEGIN FOR i := 0 TO e DO END
  21896. END Test.
  21897. negative: for statement with short integer counter and integer end counter
  21898. MODULE Test;
  21899. VAR i: SHORTINT; e: INTEGER;
  21900. BEGIN FOR i := 0 TO e DO END
  21901. END Test.
  21902. negative: for statement with short integer counter and long integer end counter
  21903. MODULE Test;
  21904. VAR i: SHORTINT; e: LONGINT;
  21905. BEGIN FOR i := 0 TO e DO END
  21906. END Test.
  21907. negative: for statement with short integer counter and huge integer end counter
  21908. MODULE Test;
  21909. VAR i: SHORTINT; e: HUGEINT;
  21910. BEGIN FOR i := 0 TO e DO END
  21911. END Test.
  21912. positive: for statement with integer counter and short integer end counter
  21913. MODULE Test;
  21914. VAR i: INTEGER; e: SHORTINT;
  21915. BEGIN FOR i := 0 TO e DO END
  21916. END Test.
  21917. positive: for statement with integer counter and integer end counter
  21918. MODULE Test;
  21919. VAR i, e: INTEGER;
  21920. BEGIN FOR i := 0 TO e DO END
  21921. END Test.
  21922. negative: for statement with integer counter and long integer end counter
  21923. MODULE Test;
  21924. VAR i: INTEGER; e: LONGINT;
  21925. BEGIN FOR i := 0 TO e DO END
  21926. END Test.
  21927. negative: for statement with integer counter and huge integer end counter
  21928. MODULE Test;
  21929. VAR i: INTEGER; e: HUGEINT;
  21930. BEGIN FOR i := 0 TO e DO END
  21931. END Test.
  21932. positive: for statement with long integer counter and short integer end counter
  21933. MODULE Test;
  21934. VAR i: LONGINT; e: SHORTINT;
  21935. BEGIN FOR i := 0 TO e DO END
  21936. END Test.
  21937. positive: for statement with long integer counter and integer end counter
  21938. MODULE Test;
  21939. VAR i: LONGINT; e: INTEGER;
  21940. BEGIN FOR i := 0 TO e DO END
  21941. END Test.
  21942. positive: for statement with long integer counter and long integer end counter
  21943. MODULE Test;
  21944. VAR i, e: LONGINT;
  21945. BEGIN FOR i := 0 TO e DO END
  21946. END Test.
  21947. negative: for statement with long integer counter and huge integer end counter
  21948. MODULE Test;
  21949. VAR i: LONGINT; e: HUGEINT;
  21950. BEGIN FOR i := 0 TO e DO END
  21951. END Test.
  21952. positive: for statement with huge integer counter and short integer end counter
  21953. MODULE Test;
  21954. VAR i: HUGEINT; e: SHORTINT;
  21955. BEGIN FOR i := 0 TO e DO END
  21956. END Test.
  21957. positive: for statement with huge integer counter and integer end counter
  21958. MODULE Test;
  21959. VAR i: HUGEINT; e: INTEGER;
  21960. BEGIN FOR i := 0 TO e DO END
  21961. END Test.
  21962. positive: for statement with huge integer counter and long integer end counter
  21963. MODULE Test;
  21964. VAR i: HUGEINT; e: LONGINT;
  21965. BEGIN FOR i := 0 TO e DO END
  21966. END Test.
  21967. positive: for statement with huge integer counter and huge integer end counter
  21968. MODULE Test;
  21969. VAR i, e: HUGEINT;
  21970. BEGIN FOR i := 0 TO e DO END
  21971. END Test.
  21972. # return statement
  21973. negative: return statement with value in module body
  21974. MODULE Test;
  21975. BEGIN RETURN 0
  21976. END Test.
  21977. positive: return statement without value in module body
  21978. MODULE Test;
  21979. BEGIN RETURN
  21980. END Test.
  21981. negative: return statement with value in object body
  21982. MODULE Test;
  21983. TYPE Object = OBJECT
  21984. BEGIN RETURN 0
  21985. END Object;
  21986. END Test.
  21987. positive: return statement without value in object body
  21988. MODULE Test;
  21989. TYPE Object = OBJECT
  21990. BEGIN RETURN
  21991. END Object;
  21992. END Test.
  21993. positive: return statement with value in procedure with return type
  21994. MODULE Test;
  21995. PROCEDURE Procedure (): INTEGER;
  21996. BEGIN RETURN 0
  21997. END Procedure;
  21998. END Test.
  21999. negative: return statement without value in procedure with return type
  22000. MODULE Test;
  22001. PROCEDURE Procedure (): INTEGER;;
  22002. BEGIN RETURN
  22003. END Procedure;
  22004. END Test.
  22005. negative: return statement with value in procedure without return type
  22006. MODULE Test;
  22007. PROCEDURE Procedure;
  22008. BEGIN RETURN 0
  22009. END Procedure;
  22010. END Test.
  22011. positive: return statement without value in procedure without return type
  22012. MODULE Test;
  22013. PROCEDURE Procedure;
  22014. BEGIN RETURN
  22015. END Procedure;
  22016. END Test.
  22017. positive: procedure with boolean as return type returning boolean
  22018. MODULE Test;
  22019. PROCEDURE Procedure (value: BOOLEAN): BOOLEAN; BEGIN RETURN value END Procedure;
  22020. END Test.
  22021. negative: procedure with boolean as return type returning character
  22022. MODULE Test;
  22023. PROCEDURE Procedure (value: CHAR): BOOLEAN; BEGIN RETURN value END Procedure;
  22024. END Test.
  22025. negative: procedure with boolean as return type returning integer
  22026. MODULE Test;
  22027. PROCEDURE Procedure (value: INTEGER): BOOLEAN; BEGIN RETURN value END Procedure;
  22028. END Test.
  22029. negative: procedure with boolean as return type returning real
  22030. MODULE Test;
  22031. PROCEDURE Procedure (value: REAL): BOOLEAN; BEGIN RETURN value END Procedure;
  22032. END Test.
  22033. negative: procedure with boolean as return type returning set
  22034. MODULE Test;
  22035. PROCEDURE Procedure (value: SET): BOOLEAN; BEGIN RETURN value END Procedure;
  22036. END Test.
  22037. negative: procedure with boolean as return type returning array
  22038. MODULE Test;
  22039. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): BOOLEAN; BEGIN RETURN value END Procedure;
  22040. END Test.
  22041. negative: procedure with boolean as return type returning record
  22042. MODULE Test;
  22043. PROCEDURE Procedure (value: RECORD END): BOOLEAN; BEGIN RETURN value END Procedure;
  22044. END Test.
  22045. negative: procedure with boolean as return type returning object
  22046. MODULE Test;
  22047. PROCEDURE Procedure (value: OBJECT END): BOOLEAN; BEGIN RETURN value END Procedure;
  22048. END Test.
  22049. negative: procedure with boolean as return type returning base object
  22050. MODULE Test;
  22051. PROCEDURE Procedure (value: OBJECT): BOOLEAN; BEGIN RETURN value END Procedure;
  22052. END Test.
  22053. negative: procedure with boolean as return type returning pointer to array
  22054. MODULE Test;
  22055. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): BOOLEAN; BEGIN RETURN value END Procedure;
  22056. END Test.
  22057. negative: procedure with boolean as return type returning pointer to record
  22058. MODULE Test;
  22059. PROCEDURE Procedure (value: POINTER TO RECORD END): BOOLEAN; BEGIN RETURN value END Procedure;
  22060. END Test.
  22061. negative: procedure with boolean as return type returning procedure
  22062. MODULE Test;
  22063. PROCEDURE Procedure (value: PROCEDURE): BOOLEAN; BEGIN RETURN value END Procedure;
  22064. END Test.
  22065. negative: procedure with character as return type returning boolean
  22066. MODULE Test;
  22067. PROCEDURE Procedure (value: BOOLEAN): CHAR; BEGIN RETURN value END Procedure;
  22068. END Test.
  22069. positive: procedure with character as return type returning character
  22070. MODULE Test;
  22071. PROCEDURE Procedure (value: CHAR): CHAR; BEGIN RETURN value END Procedure;
  22072. END Test.
  22073. negative: procedure with character as return type returning integer
  22074. MODULE Test;
  22075. PROCEDURE Procedure (value: INTEGER): CHAR; BEGIN RETURN value END Procedure;
  22076. END Test.
  22077. negative: procedure with character as return type returning real
  22078. MODULE Test;
  22079. PROCEDURE Procedure (value: REAL): CHAR; BEGIN RETURN value END Procedure;
  22080. END Test.
  22081. negative: procedure with character as return type returning set
  22082. MODULE Test;
  22083. PROCEDURE Procedure (value: SET): CHAR; BEGIN RETURN value END Procedure;
  22084. END Test.
  22085. negative: procedure with character as return type returning array
  22086. MODULE Test;
  22087. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): CHAR; BEGIN RETURN value END Procedure;
  22088. END Test.
  22089. negative: procedure with character as return type returning record
  22090. MODULE Test;
  22091. PROCEDURE Procedure (value: RECORD END): CHAR; BEGIN RETURN value END Procedure;
  22092. END Test.
  22093. negative: procedure with character as return type returning object
  22094. MODULE Test;
  22095. PROCEDURE Procedure (value: OBJECT END): CHAR; BEGIN RETURN value END Procedure;
  22096. END Test.
  22097. negative: procedure with character as return type returning base object
  22098. MODULE Test;
  22099. PROCEDURE Procedure (value: OBJECT): CHAR; BEGIN RETURN value END Procedure;
  22100. END Test.
  22101. negative: procedure with character as return type returning pointer to array
  22102. MODULE Test;
  22103. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): CHAR; BEGIN RETURN value END Procedure;
  22104. END Test.
  22105. negative: procedure with character as return type returning pointer to record
  22106. MODULE Test;
  22107. PROCEDURE Procedure (value: POINTER TO RECORD END): CHAR; BEGIN RETURN value END Procedure;
  22108. END Test.
  22109. negative: procedure with character as return type returning procedure
  22110. MODULE Test;
  22111. PROCEDURE Procedure (value: PROCEDURE): CHAR; BEGIN RETURN value END Procedure;
  22112. END Test.
  22113. negative: procedure with short integer as return type returning boolean
  22114. MODULE Test;
  22115. PROCEDURE Procedure (value: BOOLEAN): SHORTINT; BEGIN RETURN value END Procedure;
  22116. END Test.
  22117. negative: procedure with short integer as return type returning character
  22118. MODULE Test;
  22119. PROCEDURE Procedure (value: CHAR): SHORTINT; BEGIN RETURN value END Procedure;
  22120. END Test.
  22121. positive: procedure with short integer as return type returning short integer
  22122. MODULE Test;
  22123. PROCEDURE Procedure (value: SHORTINT): SHORTINT; BEGIN RETURN value END Procedure;
  22124. END Test.
  22125. negative: procedure with short integer as return type returning integer
  22126. MODULE Test;
  22127. PROCEDURE Procedure (value: INTEGER): SHORTINT; BEGIN RETURN value END Procedure;
  22128. END Test.
  22129. negative: procedure with short integer as return type returning long integer
  22130. MODULE Test;
  22131. PROCEDURE Procedure (value: LONGINT): SHORTINT; BEGIN RETURN value END Procedure;
  22132. END Test.
  22133. negative: procedure with short integer as return type returning huge integer
  22134. MODULE Test;
  22135. PROCEDURE Procedure (value: HUGEINT): SHORTINT; BEGIN RETURN value END Procedure;
  22136. END Test.
  22137. negative: procedure with short integer as return type returning real
  22138. MODULE Test;
  22139. PROCEDURE Procedure (value: REAL): SHORTINT; BEGIN RETURN value END Procedure;
  22140. END Test.
  22141. negative: procedure with short integer as return type returning set
  22142. MODULE Test;
  22143. PROCEDURE Procedure (value: SET): SHORTINT; BEGIN RETURN value END Procedure;
  22144. END Test.
  22145. negative: procedure with short integer as return type returning array
  22146. MODULE Test;
  22147. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): SHORTINT; BEGIN RETURN value END Procedure;
  22148. END Test.
  22149. negative: procedure with short integer as return type returning record
  22150. MODULE Test;
  22151. PROCEDURE Procedure (value: RECORD END): SHORTINT; BEGIN RETURN value END Procedure;
  22152. END Test.
  22153. negative: procedure with short integer as return type returning object
  22154. MODULE Test;
  22155. PROCEDURE Procedure (value: OBJECT END): SHORTINT; BEGIN RETURN value END Procedure;
  22156. END Test.
  22157. negative: procedure with short integer as return type returning base object
  22158. MODULE Test;
  22159. PROCEDURE Procedure (value: OBJECT): SHORTINT; BEGIN RETURN value END Procedure;
  22160. END Test.
  22161. negative: procedure with short integer as return type returning pointer to array
  22162. MODULE Test;
  22163. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): SHORTINT; BEGIN RETURN value END Procedure;
  22164. END Test.
  22165. negative: procedure with short integer as return type returning pointer to record
  22166. MODULE Test;
  22167. PROCEDURE Procedure (value: POINTER TO RECORD END): SHORTINT; BEGIN RETURN value END Procedure;
  22168. END Test.
  22169. negative: procedure with short integer as return type returning procedure
  22170. MODULE Test;
  22171. PROCEDURE Procedure (value: PROCEDURE): SHORTINT; BEGIN RETURN value END Procedure;
  22172. END Test.
  22173. negative: procedure with integer as return type returning boolean
  22174. MODULE Test;
  22175. PROCEDURE Procedure (value: BOOLEAN): INTEGER; BEGIN RETURN value END Procedure;
  22176. END Test.
  22177. negative: procedure with integer as return type returning character
  22178. MODULE Test;
  22179. PROCEDURE Procedure (value: CHAR): INTEGER; BEGIN RETURN value END Procedure;
  22180. END Test.
  22181. positive: procedure with integer as return type returning short integer
  22182. MODULE Test;
  22183. PROCEDURE Procedure (value: SHORTINT): INTEGER; BEGIN RETURN value END Procedure;
  22184. END Test.
  22185. positive: procedure with integer as return type returning integer
  22186. MODULE Test;
  22187. PROCEDURE Procedure (value: INTEGER): INTEGER; BEGIN RETURN value END Procedure;
  22188. END Test.
  22189. negative: procedure with integer as return type returning long integer
  22190. MODULE Test;
  22191. PROCEDURE Procedure (value: LONGINT): INTEGER; BEGIN RETURN value END Procedure;
  22192. END Test.
  22193. negative: procedure with integer as return type returning huge integer
  22194. MODULE Test;
  22195. PROCEDURE Procedure (value: HUGEINT): INTEGER; BEGIN RETURN value END Procedure;
  22196. END Test.
  22197. negative: procedure with integer as return type returning real
  22198. MODULE Test;
  22199. PROCEDURE Procedure (value: REAL): INTEGER; BEGIN RETURN value END Procedure;
  22200. END Test.
  22201. negative: procedure with integer as return type returning set
  22202. MODULE Test;
  22203. PROCEDURE Procedure (value: SET): INTEGER; BEGIN RETURN value END Procedure;
  22204. END Test.
  22205. negative: procedure with integer as return type returning array
  22206. MODULE Test;
  22207. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): INTEGER; BEGIN RETURN value END Procedure;
  22208. END Test.
  22209. negative: procedure with integer as return type returning record
  22210. MODULE Test;
  22211. PROCEDURE Procedure (value: RECORD END): INTEGER; BEGIN RETURN value END Procedure;
  22212. END Test.
  22213. negative: procedure with integer as return type returning object
  22214. MODULE Test;
  22215. PROCEDURE Procedure (value: OBJECT END): INTEGER; BEGIN RETURN value END Procedure;
  22216. END Test.
  22217. negative: procedure with integer as return type returning base object
  22218. MODULE Test;
  22219. PROCEDURE Procedure (value: OBJECT): INTEGER; BEGIN RETURN value END Procedure;
  22220. END Test.
  22221. negative: procedure with integer as return type returning pointer to array
  22222. MODULE Test;
  22223. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): INTEGER; BEGIN RETURN value END Procedure;
  22224. END Test.
  22225. negative: procedure with integer as return type returning pointer to record
  22226. MODULE Test;
  22227. PROCEDURE Procedure (value: POINTER TO RECORD END): INTEGER; BEGIN RETURN value END Procedure;
  22228. END Test.
  22229. negative: procedure with integer as return type returning procedure
  22230. MODULE Test;
  22231. PROCEDURE Procedure (value: PROCEDURE): INTEGER; BEGIN RETURN value END Procedure;
  22232. END Test.
  22233. negative: procedure with long integer as return type returning boolean
  22234. MODULE Test;
  22235. PROCEDURE Procedure (value: BOOLEAN): LONGINT; BEGIN RETURN value END Procedure;
  22236. END Test.
  22237. negative: procedure with long integer as return type returning character
  22238. MODULE Test;
  22239. PROCEDURE Procedure (value: CHAR): LONGINT; BEGIN RETURN value END Procedure;
  22240. END Test.
  22241. positive: procedure with long integer as return type returning short integer
  22242. MODULE Test;
  22243. PROCEDURE Procedure (value: SHORTINT): LONGINT; BEGIN RETURN value END Procedure;
  22244. END Test.
  22245. positive: procedure with long integer as return type returning integer
  22246. MODULE Test;
  22247. PROCEDURE Procedure (value: INTEGER): LONGINT; BEGIN RETURN value END Procedure;
  22248. END Test.
  22249. positive: procedure with long integer as return type returning long integer
  22250. MODULE Test;
  22251. PROCEDURE Procedure (value: LONGINT): LONGINT; BEGIN RETURN value END Procedure;
  22252. END Test.
  22253. negative: procedure with long integer as return type returning huge integer
  22254. MODULE Test;
  22255. PROCEDURE Procedure (value: HUGEINT): LONGINT; BEGIN RETURN value END Procedure;
  22256. END Test.
  22257. negative: procedure with long integer as return type returning real
  22258. MODULE Test;
  22259. PROCEDURE Procedure (value: REAL): LONGINT; BEGIN RETURN value END Procedure;
  22260. END Test.
  22261. negative: procedure with long integer as return type returning set
  22262. MODULE Test;
  22263. PROCEDURE Procedure (value: SET): LONGINT; BEGIN RETURN value END Procedure;
  22264. END Test.
  22265. negative: procedure with long integer as return type returning array
  22266. MODULE Test;
  22267. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): LONGINT; BEGIN RETURN value END Procedure;
  22268. END Test.
  22269. negative: procedure with long integer as return type returning record
  22270. MODULE Test;
  22271. PROCEDURE Procedure (value: RECORD END): LONGINT; BEGIN RETURN value END Procedure;
  22272. END Test.
  22273. negative: procedure with long integer as return type returning object
  22274. MODULE Test;
  22275. PROCEDURE Procedure (value: OBJECT END): LONGINT; BEGIN RETURN value END Procedure;
  22276. END Test.
  22277. negative: procedure with long integer as return type returning base object
  22278. MODULE Test;
  22279. PROCEDURE Procedure (value: OBJECT): LONGINT; BEGIN RETURN value END Procedure;
  22280. END Test.
  22281. negative: procedure with long integer as return type returning pointer to array
  22282. MODULE Test;
  22283. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): LONGINT; BEGIN RETURN value END Procedure;
  22284. END Test.
  22285. negative: procedure with long integer as return type returning pointer to record
  22286. MODULE Test;
  22287. PROCEDURE Procedure (value: POINTER TO RECORD END): LONGINT; BEGIN RETURN value END Procedure;
  22288. END Test.
  22289. negative: procedure with long integer as return type returning procedure
  22290. MODULE Test;
  22291. PROCEDURE Procedure (value: PROCEDURE): LONGINT; BEGIN RETURN value END Procedure;
  22292. END Test.
  22293. negative: procedure with huge integer as return type returning boolean
  22294. MODULE Test;
  22295. PROCEDURE Procedure (value: BOOLEAN): HUGEINT; BEGIN RETURN value END Procedure;
  22296. END Test.
  22297. negative: procedure with huge integer as return type returning character
  22298. MODULE Test;
  22299. PROCEDURE Procedure (value: CHAR): HUGEINT; BEGIN RETURN value END Procedure;
  22300. END Test.
  22301. positive: procedure with huge integer as return type returning short integer
  22302. MODULE Test;
  22303. PROCEDURE Procedure (value: SHORTINT): HUGEINT; BEGIN RETURN value END Procedure;
  22304. END Test.
  22305. positive: procedure with huge integer as return type returning integer
  22306. MODULE Test;
  22307. PROCEDURE Procedure (value: INTEGER): HUGEINT; BEGIN RETURN value END Procedure;
  22308. END Test.
  22309. positive: procedure with huge integer as return type returning long integer
  22310. MODULE Test;
  22311. PROCEDURE Procedure (value: LONGINT): HUGEINT; BEGIN RETURN value END Procedure;
  22312. END Test.
  22313. positive: procedure with huge integer as return type returning huge integer
  22314. MODULE Test;
  22315. PROCEDURE Procedure (value: HUGEINT): HUGEINT; BEGIN RETURN value END Procedure;
  22316. END Test.
  22317. negative: procedure with huge integer as return type returning real
  22318. MODULE Test;
  22319. PROCEDURE Procedure (value: REAL): HUGEINT; BEGIN RETURN value END Procedure;
  22320. END Test.
  22321. negative: procedure with huge integer as return type returning set
  22322. MODULE Test;
  22323. PROCEDURE Procedure (value: SET): HUGEINT; BEGIN RETURN value END Procedure;
  22324. END Test.
  22325. negative: procedure with huge integer as return type returning array
  22326. MODULE Test;
  22327. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): HUGEINT; BEGIN RETURN value END Procedure;
  22328. END Test.
  22329. negative: procedure with huge integer as return type returning record
  22330. MODULE Test;
  22331. PROCEDURE Procedure (value: RECORD END): HUGEINT; BEGIN RETURN value END Procedure;
  22332. END Test.
  22333. negative: procedure with huge integer as return type returning object
  22334. MODULE Test;
  22335. PROCEDURE Procedure (value: OBJECT END): HUGEINT; BEGIN RETURN value END Procedure;
  22336. END Test.
  22337. negative: procedure with huge integer as return type returning base object
  22338. MODULE Test;
  22339. PROCEDURE Procedure (value: OBJECT): HUGEINT; BEGIN RETURN value END Procedure;
  22340. END Test.
  22341. negative: procedure with huge integer as return type returning pointer to array
  22342. MODULE Test;
  22343. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): HUGEINT; BEGIN RETURN value END Procedure;
  22344. END Test.
  22345. negative: procedure with huge integer as return type returning pointer to record
  22346. MODULE Test;
  22347. PROCEDURE Procedure (value: POINTER TO RECORD END): HUGEINT; BEGIN RETURN value END Procedure;
  22348. END Test.
  22349. negative: procedure with huge integer as return type returning procedure
  22350. MODULE Test;
  22351. PROCEDURE Procedure (value: PROCEDURE): HUGEINT; BEGIN RETURN value END Procedure;
  22352. END Test.
  22353. negative: procedure with real as return type returning boolean
  22354. MODULE Test;
  22355. PROCEDURE Procedure (value: BOOLEAN): REAL; BEGIN RETURN value END Procedure;
  22356. END Test.
  22357. negative: procedure with real as return type returning character
  22358. MODULE Test;
  22359. PROCEDURE Procedure (value: CHAR): REAL; BEGIN RETURN value END Procedure;
  22360. END Test.
  22361. positive: procedure with real as return type returning short integer
  22362. MODULE Test;
  22363. PROCEDURE Procedure (value: SHORTINT): REAL; BEGIN RETURN value END Procedure;
  22364. END Test.
  22365. positive: procedure with real as return type returning integer
  22366. MODULE Test;
  22367. PROCEDURE Procedure (value: INTEGER): REAL; BEGIN RETURN value END Procedure;
  22368. END Test.
  22369. positive: procedure with real as return type returning long integer
  22370. MODULE Test;
  22371. PROCEDURE Procedure (value: LONGINT): REAL; BEGIN RETURN value END Procedure;
  22372. END Test.
  22373. positive: procedure with real as return type returning huge integer
  22374. MODULE Test;
  22375. PROCEDURE Procedure (value: HUGEINT): REAL; BEGIN RETURN value END Procedure;
  22376. END Test.
  22377. positive: procedure with real as return type returning real
  22378. MODULE Test;
  22379. PROCEDURE Procedure (value: REAL): REAL; BEGIN RETURN value END Procedure;
  22380. END Test.
  22381. negative: procedure with real as return type returning long real
  22382. MODULE Test;
  22383. PROCEDURE Procedure (value: LONGREAL): REAL; BEGIN RETURN value END Procedure;
  22384. END Test.
  22385. negative: procedure with real as return type returning set
  22386. MODULE Test;
  22387. PROCEDURE Procedure (value: SET): REAL; BEGIN RETURN value END Procedure;
  22388. END Test.
  22389. negative: procedure with real as return type returning array
  22390. MODULE Test;
  22391. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): REAL; BEGIN RETURN value END Procedure;
  22392. END Test.
  22393. negative: procedure with real as return type returning record
  22394. MODULE Test;
  22395. PROCEDURE Procedure (value: RECORD END): REAL; BEGIN RETURN value END Procedure;
  22396. END Test.
  22397. negative: procedure with real as return type returning object
  22398. MODULE Test;
  22399. PROCEDURE Procedure (value: OBJECT END): REAL; BEGIN RETURN value END Procedure;
  22400. END Test.
  22401. negative: procedure with real as return type returning base object
  22402. MODULE Test;
  22403. PROCEDURE Procedure (value: OBJECT): REAL; BEGIN RETURN value END Procedure;
  22404. END Test.
  22405. negative: procedure with real as return type returning pointer to array
  22406. MODULE Test;
  22407. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): REAL; BEGIN RETURN value END Procedure;
  22408. END Test.
  22409. negative: procedure with real as return type returning pointer to record
  22410. MODULE Test;
  22411. PROCEDURE Procedure (value: POINTER TO RECORD END): REAL; BEGIN RETURN value END Procedure;
  22412. END Test.
  22413. negative: procedure with real as return type returning procedure
  22414. MODULE Test;
  22415. PROCEDURE Procedure (value: PROCEDURE): REAL; BEGIN RETURN value END Procedure;
  22416. END Test.
  22417. negative: procedure with long real as return type returning boolean
  22418. MODULE Test;
  22419. PROCEDURE Procedure (value: BOOLEAN): LONGREAL; BEGIN RETURN value END Procedure;
  22420. END Test.
  22421. negative: procedure with long real as return type returning character
  22422. MODULE Test;
  22423. PROCEDURE Procedure (value: CHAR): LONGREAL; BEGIN RETURN value END Procedure;
  22424. END Test.
  22425. positive: procedure with long real as return type returning short integer
  22426. MODULE Test;
  22427. PROCEDURE Procedure (value: SHORTINT): LONGREAL; BEGIN RETURN value END Procedure;
  22428. END Test.
  22429. positive: procedure with long real as return type returning integer
  22430. MODULE Test;
  22431. PROCEDURE Procedure (value: INTEGER): LONGREAL; BEGIN RETURN value END Procedure;
  22432. END Test.
  22433. positive: procedure with long real as return type returning long integer
  22434. MODULE Test;
  22435. PROCEDURE Procedure (value: LONGINT): LONGREAL; BEGIN RETURN value END Procedure;
  22436. END Test.
  22437. positive: procedure with long real as return type returning huge integer
  22438. MODULE Test;
  22439. PROCEDURE Procedure (value: HUGEINT): LONGREAL; BEGIN RETURN value END Procedure;
  22440. END Test.
  22441. positive: procedure with long real as return type returning real
  22442. MODULE Test;
  22443. PROCEDURE Procedure (value: REAL): LONGREAL; BEGIN RETURN value END Procedure;
  22444. END Test.
  22445. positive: procedure with long real as return type returning long real
  22446. MODULE Test;
  22447. PROCEDURE Procedure (value: LONGREAL): LONGREAL; BEGIN RETURN value END Procedure;
  22448. END Test.
  22449. negative: procedure with long real as return type returning set
  22450. MODULE Test;
  22451. PROCEDURE Procedure (value: SET): LONGREAL; BEGIN RETURN value END Procedure;
  22452. END Test.
  22453. negative: procedure with long real as return type returning array
  22454. MODULE Test;
  22455. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): LONGREAL; BEGIN RETURN value END Procedure;
  22456. END Test.
  22457. negative: procedure with long real as return type returning record
  22458. MODULE Test;
  22459. PROCEDURE Procedure (value: RECORD END): LONGREAL; BEGIN RETURN value END Procedure;
  22460. END Test.
  22461. negative: procedure with long real as return type returning object
  22462. MODULE Test;
  22463. PROCEDURE Procedure (value: OBJECT END): LONGREAL; BEGIN RETURN value END Procedure;
  22464. END Test.
  22465. negative: procedure with long real as return type returning base object
  22466. MODULE Test;
  22467. PROCEDURE Procedure (value: OBJECT): LONGREAL; BEGIN RETURN value END Procedure;
  22468. END Test.
  22469. negative: procedure with long real as return type returning pointer to array
  22470. MODULE Test;
  22471. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): LONGREAL; BEGIN RETURN value END Procedure;
  22472. END Test.
  22473. negative: procedure with long real as return type returning pointer to record
  22474. MODULE Test;
  22475. PROCEDURE Procedure (value: POINTER TO RECORD END): LONGREAL; BEGIN RETURN value END Procedure;
  22476. END Test.
  22477. negative: procedure with long real as return type returning procedure
  22478. MODULE Test;
  22479. PROCEDURE Procedure (value: PROCEDURE): LONGREAL; BEGIN RETURN value END Procedure;
  22480. END Test.
  22481. negative: procedure with set as return type returning boolean
  22482. MODULE Test;
  22483. PROCEDURE Procedure (value: BOOLEAN): SET; BEGIN RETURN value END Procedure;
  22484. END Test.
  22485. negative: procedure with set as return type returning character
  22486. MODULE Test;
  22487. PROCEDURE Procedure (value: CHAR): SET; BEGIN RETURN value END Procedure;
  22488. END Test.
  22489. negative: procedure with set as return type returning integer
  22490. MODULE Test;
  22491. PROCEDURE Procedure (value: INTEGER): SET; BEGIN RETURN value END Procedure;
  22492. END Test.
  22493. negative: procedure with set as return type returning real
  22494. MODULE Test;
  22495. PROCEDURE Procedure (value: REAL): SET; BEGIN RETURN value END Procedure;
  22496. END Test.
  22497. positive: procedure with set as return type returning set
  22498. MODULE Test;
  22499. PROCEDURE Procedure (value: SET): SET; BEGIN RETURN value END Procedure;
  22500. END Test.
  22501. negative: procedure with set as return type returning array
  22502. MODULE Test;
  22503. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): SET; BEGIN RETURN value END Procedure;
  22504. END Test.
  22505. negative: procedure with set as return type returning record
  22506. MODULE Test;
  22507. PROCEDURE Procedure (value: RECORD END): SET; BEGIN RETURN value END Procedure;
  22508. END Test.
  22509. negative: procedure with set as return type returning object
  22510. MODULE Test;
  22511. PROCEDURE Procedure (value: OBJECT END): SET; BEGIN RETURN value END Procedure;
  22512. END Test.
  22513. negative: procedure with set as return type returning base object
  22514. MODULE Test;
  22515. PROCEDURE Procedure (value: OBJECT): SET; BEGIN RETURN value END Procedure;
  22516. END Test.
  22517. negative: procedure with set as return type returning pointer to array
  22518. MODULE Test;
  22519. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): SET; BEGIN RETURN value END Procedure;
  22520. END Test.
  22521. negative: procedure with set as return type returning pointer to record
  22522. MODULE Test;
  22523. PROCEDURE Procedure (value: POINTER TO RECORD END): SET; BEGIN RETURN value END Procedure;
  22524. END Test.
  22525. negative: procedure with set as return type returning procedure
  22526. MODULE Test;
  22527. PROCEDURE Procedure (value: PROCEDURE): SET; BEGIN RETURN value END Procedure;
  22528. END Test.
  22529. negative: procedure with array as return type returning boolean
  22530. MODULE Test;
  22531. PROCEDURE Procedure (value: BOOLEAN): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22532. END Test.
  22533. negative: procedure with array as return type returning character
  22534. MODULE Test;
  22535. PROCEDURE Procedure (value: CHAR): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22536. END Test.
  22537. negative: procedure with array as return type returning integer
  22538. MODULE Test;
  22539. PROCEDURE Procedure (value: INTEGER): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22540. END Test.
  22541. negative: procedure with array as return type returning real
  22542. MODULE Test;
  22543. PROCEDURE Procedure (value: REAL): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22544. END Test.
  22545. negative: procedure with array as return type returning set
  22546. MODULE Test;
  22547. PROCEDURE Procedure (value: SET): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22548. END Test.
  22549. positive: procedure with array as return type returning compatible array
  22550. MODULE Test;
  22551. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22552. END Test.
  22553. negative: procedure with array as return type returning incompatible array
  22554. MODULE Test;
  22555. PROCEDURE Procedure (value: ARRAY 10 OF SET): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22556. END Test.
  22557. negative: procedure with array as return type returning open array
  22558. MODULE Test;
  22559. PROCEDURE Procedure (value: ARRAY OF CHAR): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22560. END Test.
  22561. negative: procedure with array as return type returning record
  22562. MODULE Test;
  22563. PROCEDURE Procedure (value: RECORD END): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22564. END Test.
  22565. negative: procedure with array as return type returning object
  22566. MODULE Test;
  22567. PROCEDURE Procedure (value: OBJECT END): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22568. END Test.
  22569. negative: procedure with array as return type returning base object
  22570. MODULE Test;
  22571. PROCEDURE Procedure (value: OBJECT): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22572. END Test.
  22573. negative: procedure with array as return type returning pointer to array
  22574. MODULE Test;
  22575. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22576. END Test.
  22577. negative: procedure with array as return type returning pointer to record
  22578. MODULE Test;
  22579. PROCEDURE Procedure (value: POINTER TO RECORD END): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22580. END Test.
  22581. negative: procedure with array as return type returning procedure
  22582. MODULE Test;
  22583. PROCEDURE Procedure (value: PROCEDURE): ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22584. END Test.
  22585. negative: procedure with record as return type returning boolean
  22586. MODULE Test;
  22587. PROCEDURE Procedure (value: BOOLEAN): RECORD END; BEGIN RETURN value END Procedure;
  22588. END Test.
  22589. negative: procedure with record as return type returning character
  22590. MODULE Test;
  22591. PROCEDURE Procedure (value: CHAR): RECORD END; BEGIN RETURN value END Procedure;
  22592. END Test.
  22593. negative: procedure with record as return type returning integer
  22594. MODULE Test;
  22595. PROCEDURE Procedure (value: INTEGER): RECORD END; BEGIN RETURN value END Procedure;
  22596. END Test.
  22597. negative: procedure with record as return type returning real
  22598. MODULE Test;
  22599. PROCEDURE Procedure (value: REAL): RECORD END; BEGIN RETURN value END Procedure;
  22600. END Test.
  22601. negative: procedure with record as return type returning set
  22602. MODULE Test;
  22603. PROCEDURE Procedure (value: SET): RECORD END; BEGIN RETURN value END Procedure;
  22604. END Test.
  22605. negative: procedure with record as return type returning array
  22606. MODULE Test;
  22607. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): RECORD END; BEGIN RETURN value END Procedure;
  22608. END Test.
  22609. positive: procedure with record as return type returning record
  22610. MODULE Test;
  22611. TYPE Record = RECORD END;
  22612. PROCEDURE Procedure (value: Record): Record; BEGIN RETURN value END Procedure;
  22613. END Test.
  22614. positive: procedure with record as return type returning compatible record
  22615. MODULE Test;
  22616. TYPE Record = RECORD END;
  22617. PROCEDURE Procedure (value: RECORD (Record) END): Record; BEGIN RETURN value END Procedure;
  22618. END Test.
  22619. negative: procedure with record as return type returning incompatible record
  22620. MODULE Test;
  22621. TYPE Record = RECORD END;
  22622. PROCEDURE Procedure (value: Record): RECORD (Record) END; BEGIN RETURN value END Procedure;
  22623. END Test.
  22624. negative: procedure with record as return type returning object
  22625. MODULE Test;
  22626. PROCEDURE Procedure (value: OBJECT END): RECORD END; BEGIN RETURN value END Procedure;
  22627. END Test.
  22628. negative: procedure with record as return type returning base object
  22629. MODULE Test;
  22630. PROCEDURE Procedure (value: OBJECT): RECORD END; BEGIN RETURN value END Procedure;
  22631. END Test.
  22632. negative: procedure with record as return type returning pointer to array
  22633. MODULE Test;
  22634. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): RECORD END; BEGIN RETURN value END Procedure;
  22635. END Test.
  22636. negative: procedure with record as return type returning pointer to record
  22637. MODULE Test;
  22638. PROCEDURE Procedure (value: POINTER TO RECORD END): RECORD END; BEGIN RETURN value END Procedure;
  22639. END Test.
  22640. negative: procedure with record as return type returning procedure
  22641. MODULE Test;
  22642. PROCEDURE Procedure (value: PROCEDURE): RECORD END; BEGIN RETURN value END Procedure;
  22643. END Test.
  22644. negative: procedure with object as return type returning boolean
  22645. MODULE Test;
  22646. PROCEDURE Procedure (value: BOOLEAN): OBJECT END; BEGIN RETURN value END Procedure;
  22647. END Test.
  22648. negative: procedure with object as return type returning character
  22649. MODULE Test;
  22650. PROCEDURE Procedure (value: CHAR): OBJECT END; BEGIN RETURN value END Procedure;
  22651. END Test.
  22652. negative: procedure with object as return type returning integer
  22653. MODULE Test;
  22654. PROCEDURE Procedure (value: INTEGER): OBJECT END; BEGIN RETURN value END Procedure;
  22655. END Test.
  22656. negative: procedure with object as return type returning real
  22657. MODULE Test;
  22658. PROCEDURE Procedure (value: REAL): OBJECT END; BEGIN RETURN value END Procedure;
  22659. END Test.
  22660. negative: procedure with object as return type returning set
  22661. MODULE Test;
  22662. PROCEDURE Procedure (value: SET): OBJECT END; BEGIN RETURN value END Procedure;
  22663. END Test.
  22664. negative: procedure with object as return type returning array
  22665. MODULE Test;
  22666. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): OBJECT END; BEGIN RETURN value END Procedure;
  22667. END Test.
  22668. negative: procedure with object as return type returning record
  22669. MODULE Test;
  22670. PROCEDURE Procedure (value: RECORD END): OBJECT END; BEGIN RETURN value END Procedure;
  22671. END Test.
  22672. positive: procedure with object as return type returning object
  22673. MODULE Test;
  22674. TYPE Object = OBJECT END Object;
  22675. PROCEDURE Procedure (value: Object): Object; BEGIN RETURN value END Procedure;
  22676. END Test.
  22677. positive: procedure with object as return type returning compatible object
  22678. MODULE Test;
  22679. TYPE Object = OBJECT END Object;
  22680. PROCEDURE Procedure (value: OBJECT (Object) END): Object; BEGIN RETURN value END Procedure;
  22681. END Test.
  22682. negative: procedure with object as return type returning incompatible object
  22683. MODULE Test;
  22684. TYPE Object = OBJECT END Object;
  22685. PROCEDURE Procedure (value: Object): OBJECT (Object) END; BEGIN RETURN value END Procedure;
  22686. END Test.
  22687. negative: procedure with object as return type returning base object
  22688. MODULE Test;
  22689. PROCEDURE Procedure (value: OBJECT): OBJECT END; BEGIN RETURN value END Procedure;
  22690. END Test.
  22691. negative: procedure with object as return type returning pointer to array
  22692. MODULE Test;
  22693. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): OBJECT END; BEGIN RETURN value END Procedure;
  22694. END Test.
  22695. negative: procedure with object as return type returning pointer to record
  22696. MODULE Test;
  22697. PROCEDURE Procedure (value: POINTER TO RECORD END): OBJECT END; BEGIN RETURN value END Procedure;
  22698. END Test.
  22699. negative: procedure with object as return type returning procedure
  22700. MODULE Test;
  22701. PROCEDURE Procedure (value: PROCEDURE): OBJECT END; BEGIN RETURN value END Procedure;
  22702. END Test.
  22703. positive: procedure with object as return type returning nil pointer
  22704. MODULE Test;
  22705. PROCEDURE Procedure (): OBJECT END; BEGIN RETURN NIL END Procedure;
  22706. END Test.
  22707. negative: procedure with base object as return type returning boolean
  22708. MODULE Test;
  22709. PROCEDURE Procedure (value: BOOLEAN): OBJECT; BEGIN RETURN value END Procedure;
  22710. END Test.
  22711. negative: procedure with base object as return type returning character
  22712. MODULE Test;
  22713. PROCEDURE Procedure (value: CHAR): OBJECT; BEGIN RETURN value END Procedure;
  22714. END Test.
  22715. negative: procedure with base object as return type returning integer
  22716. MODULE Test;
  22717. PROCEDURE Procedure (value: INTEGER): OBJECT; BEGIN RETURN value END Procedure;
  22718. END Test.
  22719. negative: procedure with base object as return type returning real
  22720. MODULE Test;
  22721. PROCEDURE Procedure (value: REAL): OBJECT; BEGIN RETURN value END Procedure;
  22722. END Test.
  22723. negative: procedure with base object as return type returning set
  22724. MODULE Test;
  22725. PROCEDURE Procedure (value: SET): OBJECT; BEGIN RETURN value END Procedure;
  22726. END Test.
  22727. negative: procedure with base object as return type returning array
  22728. MODULE Test;
  22729. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): OBJECT; BEGIN RETURN value END Procedure;
  22730. END Test.
  22731. negative: procedure with base object as return type returning record
  22732. MODULE Test;
  22733. PROCEDURE Procedure (value: RECORD END): OBJECT; BEGIN RETURN value END Procedure;
  22734. END Test.
  22735. positive: procedure with base object as return type returning object
  22736. MODULE Test;
  22737. PROCEDURE Procedure (value: OBJECT END): OBJECT; BEGIN RETURN value END Procedure;
  22738. END Test.
  22739. positive: procedure with base object as return type returning base object
  22740. MODULE Test;
  22741. PROCEDURE Procedure (value: OBJECT): OBJECT; BEGIN RETURN value END Procedure;
  22742. END Test.
  22743. negative: procedure with base object as return type returning pointer to array
  22744. MODULE Test;
  22745. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): OBJECT; BEGIN RETURN value END Procedure;
  22746. END Test.
  22747. negative: procedure with base object as return type returning procedure
  22748. MODULE Test;
  22749. PROCEDURE Procedure (value: PROCEDURE): OBJECT; BEGIN RETURN value END Procedure;
  22750. END Test.
  22751. positive: procedure with base object as return type returning pointer to record
  22752. MODULE Test;
  22753. PROCEDURE Procedure (value: POINTER TO RECORD END): OBJECT; BEGIN RETURN value END Procedure;
  22754. END Test.
  22755. positive: procedure with base object as return type returning nil pointer
  22756. MODULE Test;
  22757. PROCEDURE Procedure (): OBJECT; BEGIN RETURN NIL END Procedure;
  22758. END Test.
  22759. negative: procedure with pointer to array as return type returning boolean
  22760. MODULE Test;
  22761. PROCEDURE Procedure (value: BOOLEAN): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22762. END Test.
  22763. negative: procedure with pointer to array as return type returning character
  22764. MODULE Test;
  22765. PROCEDURE Procedure (value: CHAR): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22766. END Test.
  22767. negative: procedure with pointer to array as return type returning integer
  22768. MODULE Test;
  22769. PROCEDURE Procedure (value: INTEGER): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22770. END Test.
  22771. negative: procedure with pointer to array as return type returning real
  22772. MODULE Test;
  22773. PROCEDURE Procedure (value: REAL): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22774. END Test.
  22775. negative: procedure with pointer to array as return type returning set
  22776. MODULE Test;
  22777. PROCEDURE Procedure (value: SET): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22778. END Test.
  22779. negative: procedure with pointer to array as return type returning array
  22780. MODULE Test;
  22781. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22782. END Test.
  22783. negative: procedure with pointer to array as return type returning record
  22784. MODULE Test;
  22785. PROCEDURE Procedure (value: RECORD END): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22786. END Test.
  22787. negative: procedure with pointer to array as return type returning object
  22788. MODULE Test;
  22789. PROCEDURE Procedure (value: OBJECT END): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22790. END Test.
  22791. negative: procedure with pointer to array as return type returning base object
  22792. MODULE Test;
  22793. PROCEDURE Procedure (value: OBJECT): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22794. END Test.
  22795. positive: procedure with pointer to array as return type returning compatible pointer to array
  22796. MODULE Test;
  22797. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22798. END Test.
  22799. negative: procedure with pointer to array as return type returning incompatible pointer to array
  22800. MODULE Test;
  22801. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF SET): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22802. END Test.
  22803. negative: procedure with pointer to array as return type returning pointer to record
  22804. MODULE Test;
  22805. PROCEDURE Procedure (value: POINTER TO RECORD END): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22806. END Test.
  22807. negative: procedure with pointer to array as return type returning procedure
  22808. MODULE Test;
  22809. PROCEDURE Procedure (value: PROCEDURE): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN value END Procedure;
  22810. END Test.
  22811. positive: procedure with pointer to array as return type returning nil pointer
  22812. MODULE Test;
  22813. PROCEDURE Procedure (): POINTER TO ARRAY 10 OF CHAR; BEGIN RETURN NIL END Procedure;
  22814. END Test.
  22815. negative: procedure with pointer to record as return type returning boolean
  22816. MODULE Test;
  22817. PROCEDURE Procedure (value: BOOLEAN): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22818. END Test.
  22819. negative: procedure with pointer to record as return type returning character
  22820. MODULE Test;
  22821. PROCEDURE Procedure (value: CHAR): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22822. END Test.
  22823. negative: procedure with pointer to record as return type returning integer
  22824. MODULE Test;
  22825. PROCEDURE Procedure (value: INTEGER): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22826. END Test.
  22827. negative: procedure with pointer to record as return type returning real
  22828. MODULE Test;
  22829. PROCEDURE Procedure (value: REAL): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22830. END Test.
  22831. negative: procedure with pointer to record as return type returning set
  22832. MODULE Test;
  22833. PROCEDURE Procedure (value: SET): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22834. END Test.
  22835. negative: procedure with pointer to record as return type returning array
  22836. MODULE Test;
  22837. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22838. END Test.
  22839. negative: procedure with pointer to record as return type returning record
  22840. MODULE Test;
  22841. PROCEDURE Procedure (value: RECORD END): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22842. END Test.
  22843. negative: procedure with pointer to record as return type returning object
  22844. MODULE Test;
  22845. PROCEDURE Procedure (value: OBJECT END): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22846. END Test.
  22847. negative: procedure with pointer to record as return type returning base object
  22848. MODULE Test;
  22849. PROCEDURE Procedure (value: OBJECT): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22850. END Test.
  22851. negative: procedure with pointer to record as return type returning pointer to array
  22852. MODULE Test;
  22853. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22854. END Test.
  22855. positive: procedure with pointer to record as return type returning pointer to record
  22856. MODULE Test;
  22857. TYPE Record = RECORD END;
  22858. PROCEDURE Procedure (value: POINTER TO Record): POINTER TO Record; BEGIN RETURN value END Procedure;
  22859. END Test.
  22860. positive: procedure with pointer to record as return type returning compatible pointer to record
  22861. MODULE Test;
  22862. TYPE Record = RECORD END;
  22863. PROCEDURE Procedure (value: POINTER TO RECORD (Record) END): POINTER TO Record; BEGIN RETURN value END Procedure;
  22864. END Test.
  22865. negative: procedure with pointer to record as return type returning incompatible pointer to record
  22866. MODULE Test;
  22867. TYPE Record = RECORD END;
  22868. PROCEDURE Procedure (value: POINTER TO Record): POINTER TO RECORD (Record) END; BEGIN RETURN value END Procedure;
  22869. END Test.
  22870. negative: procedure with pointer to record as return type returning procedure
  22871. MODULE Test;
  22872. PROCEDURE Procedure (value: PROCEDURE): POINTER TO RECORD END; BEGIN RETURN value END Procedure;
  22873. END Test.
  22874. positive: procedure with pointer to record as return type returning nil pointer
  22875. MODULE Test;
  22876. PROCEDURE Procedure (): POINTER TO RECORD END; BEGIN RETURN NIL END Procedure;
  22877. END Test.
  22878. negative: procedure with procedure as return type returning boolean
  22879. MODULE Test;
  22880. PROCEDURE Procedure (value: BOOLEAN): PROCEDURE; BEGIN RETURN value END Procedure;
  22881. END Test.
  22882. negative: procedure with procedure as return type returning character
  22883. MODULE Test;
  22884. PROCEDURE Procedure (value: CHAR): PROCEDURE; BEGIN RETURN value END Procedure;
  22885. END Test.
  22886. negative: procedure with procedure as return type returning integer
  22887. MODULE Test;
  22888. PROCEDURE Procedure (value: INTEGER): PROCEDURE; BEGIN RETURN value END Procedure;
  22889. END Test.
  22890. negative: procedure with procedure as return type returning real
  22891. MODULE Test;
  22892. PROCEDURE Procedure (value: REAL): PROCEDURE; BEGIN RETURN value END Procedure;
  22893. END Test.
  22894. negative: procedure with procedure as return type returning set
  22895. MODULE Test;
  22896. PROCEDURE Procedure (value: SET): PROCEDURE; BEGIN RETURN value END Procedure;
  22897. END Test.
  22898. negative: procedure with procedure as return type returning array
  22899. MODULE Test;
  22900. PROCEDURE Procedure (value: ARRAY 10 OF CHAR): PROCEDURE; BEGIN RETURN value END Procedure;
  22901. END Test.
  22902. negative: procedure with procedure as return type returning record
  22903. MODULE Test;
  22904. PROCEDURE Procedure (value: RECORD END): PROCEDURE; BEGIN RETURN value END Procedure;
  22905. END Test.
  22906. negative: procedure with procedure as return type returning object
  22907. MODULE Test;
  22908. PROCEDURE Procedure (value: OBJECT END): PROCEDURE; BEGIN RETURN value END Procedure;
  22909. END Test.
  22910. negative: procedure with procedure as return type returning base object
  22911. MODULE Test;
  22912. PROCEDURE Procedure (value: OBJECT): PROCEDURE; BEGIN RETURN value END Procedure;
  22913. END Test.
  22914. negative: procedure with procedure as return type returning pointer to array
  22915. MODULE Test;
  22916. PROCEDURE Procedure (value: POINTER TO ARRAY 10 OF CHAR): PROCEDURE; BEGIN RETURN value END Procedure;
  22917. END Test.
  22918. negative: procedure with procedure as return type returning pointer to record
  22919. MODULE Test;
  22920. PROCEDURE Procedure (value: POINTER TO RECORD END): PROCEDURE; BEGIN RETURN value END Procedure;
  22921. END Test.
  22922. positive: procedure with procedure as return type returning compatible procedure
  22923. MODULE Test;
  22924. PROCEDURE Procedure (value: PROCEDURE): PROCEDURE; BEGIN RETURN value END Procedure;
  22925. END Test.
  22926. negative: procedure with procedure as return type returning incompatible procedure
  22927. MODULE Test;
  22928. PROCEDURE Procedure (value: PROCEDURE (value: INTEGER)): PROCEDURE; BEGIN RETURN value END Procedure;
  22929. END Test.
  22930. positive: procedure with procedure as return type returning itself
  22931. MODULE Test;
  22932. TYPE Type = PROCEDURE (): Type;
  22933. PROCEDURE Procedure (): Type; BEGIN RETURN Procedure END Procedure;
  22934. END Test.
  22935. positive: procedure with procedure as return type returning nil pointer
  22936. MODULE Test;
  22937. PROCEDURE Procedure (): PROCEDURE; BEGIN RETURN NIL END Procedure;
  22938. END Test.
  22939. # exit statement
  22940. negative: unbounded exit statement
  22941. MODULE Test;
  22942. BEGIN EXIT
  22943. END Test.
  22944. positive: exit statement within loop
  22945. MODULE Test;
  22946. BEGIN LOOP EXIT END
  22947. END Test.
  22948. negative: exit statement before loop
  22949. MODULE Test;
  22950. BEGIN EXIT ; LOOP END
  22951. END Test.
  22952. negative: exit statement after loop
  22953. MODULE Test;
  22954. BEGIN LOOP END ; EXIT
  22955. END Test.
  22956. positive: exit statement within nested loop
  22957. MODULE Test;
  22958. BEGIN LOOP LOOP EXIT END END
  22959. END Test.
  22960. positive: exit statement before nested loop
  22961. MODULE Test;
  22962. BEGIN LOOP EXIT ; LOOP END END
  22963. END Test.
  22964. positive: exit statement after nested loop
  22965. MODULE Test;
  22966. BEGIN LOOP LOOP END ; EXIT END
  22967. END Test.
  22968. # assert statement
  22969. positive: assert statement with constant true condition
  22970. MODULE Test;
  22971. BEGIN ASSERT (TRUE);
  22972. END Test.
  22973. negative: assert statement with constant false condition
  22974. MODULE Test;
  22975. BEGIN ASSERT (FALSE);
  22976. END Test.
  22977. positive: unreachable assert statement with constant false condition
  22978. MODULE Test;
  22979. BEGIN IF FALSE THEN ASSERT (FALSE) END;
  22980. END Test.
  22981. positive: assert statement with positive number
  22982. MODULE Test;
  22983. BEGIN ASSERT (TRUE, 5);
  22984. END Test.
  22985. positive: assert statement with negative number
  22986. MODULE Test;
  22987. BEGIN ASSERT (TRUE, -5);
  22988. END Test.
  22989. positive: assert statement with zero number
  22990. MODULE Test;
  22991. BEGIN ASSERT (TRUE, 0);
  22992. END Test.
  22993. negative: assert statement with constant condition of type character
  22994. MODULE Test;
  22995. BEGIN ASSERT ('a');
  22996. END Test.
  22997. negative: assert statement with constant condition of type integer
  22998. MODULE Test;
  22999. BEGIN ASSERT (5);
  23000. END Test.
  23001. negative: assert statement with constant condition of type real
  23002. MODULE Test;
  23003. BEGIN ASSERT (4.5);
  23004. END Test.
  23005. negative: assert statement with constant condition of type set
  23006. MODULE Test;
  23007. BEGIN ASSERT ({5});
  23008. END Test.
  23009. negative: assert statement with constant condition of type string
  23010. MODULE Test;
  23011. BEGIN ASSERT ("condition");
  23012. END Test.
  23013. negative: assert statement with constant condition of type nil pointer
  23014. MODULE Test;
  23015. BEGIN ASSERT (NIL);
  23016. END Test.
  23017. positive: assert statement with condition of type boolean
  23018. MODULE Test;
  23019. VAR condition: BOOLEAN;
  23020. BEGIN ASSERT (condition);
  23021. END Test.
  23022. negative: assert statement with condition of type character
  23023. MODULE Test;
  23024. VAR condition: CHAR;
  23025. BEGIN ASSERT (condition);
  23026. END Test.
  23027. negative: assert statement with condition of type short integer
  23028. MODULE Test;
  23029. VAR condition: SHORTINT;
  23030. BEGIN ASSERT (condition);
  23031. END Test.
  23032. negative: assert statement with condition of type integer
  23033. MODULE Test;
  23034. VAR condition: INTEGER;
  23035. BEGIN ASSERT (condition);
  23036. END Test.
  23037. negative: assert statement with condition of type long integer
  23038. MODULE Test;
  23039. VAR condition: LONGINT;
  23040. BEGIN ASSERT (condition);
  23041. END Test.
  23042. negative: assert statement with condition of type huge integer
  23043. MODULE Test;
  23044. VAR condition: HUGEINT;
  23045. BEGIN ASSERT (condition);
  23046. END Test.
  23047. negative: assert statement with condition of type real
  23048. MODULE Test;
  23049. VAR condition: REAL;
  23050. BEGIN ASSERT (condition);
  23051. END Test.
  23052. negative: assert statement with condition of type long real
  23053. MODULE Test;
  23054. VAR condition: LONGREAL;
  23055. BEGIN ASSERT (condition);
  23056. END Test.
  23057. negative: assert statement with condition of type set
  23058. MODULE Test;
  23059. VAR condition: SET;
  23060. BEGIN ASSERT (condition);
  23061. END Test.
  23062. negative: assert statement with condition of type array
  23063. MODULE Test;
  23064. VAR condition: ARRAY 10 OF CHAR;
  23065. BEGIN ASSERT (condition);
  23066. END Test.
  23067. negative: assert statement with condition of type record
  23068. MODULE Test;
  23069. VAR condition: RECORD END;
  23070. BEGIN ASSERT (condition);
  23071. END Test.
  23072. negative: assert statement with condition of type object
  23073. MODULE Test;
  23074. VAR condition: OBJECT;
  23075. BEGIN ASSERT (condition);
  23076. END Test.
  23077. negative: assert statement with condition of type pointer
  23078. MODULE Test;
  23079. VAR condition: POINTER TO RECORD END;
  23080. BEGIN ASSERT (condition);
  23081. END Test.
  23082. negative: assert statement with condition of type procedure
  23083. MODULE Test;
  23084. VAR condition: PROCEDURE;
  23085. BEGIN ASSERT (condition);
  23086. END Test.
  23087. negative: assert statement with import as condition
  23088. MODULE Test;
  23089. IMPORT condition := Dummy;
  23090. BEGIN ASSERT (condition);
  23091. END Test.
  23092. negative: assert statement with type as condition
  23093. MODULE Test;
  23094. TYPE condition = BOOLEAN
  23095. BEGIN ASSERT (condition);
  23096. END Test.
  23097. negative: assert statement with constant number of type character
  23098. MODULE Test;
  23099. BEGIN ASSERT (TRUE, 'a');
  23100. END Test.
  23101. positive: assert statement with constant number of type integer
  23102. MODULE Test;
  23103. BEGIN ASSERT (TRUE, 5);
  23104. END Test.
  23105. negative: assert statement with constant number of type real
  23106. MODULE Test;
  23107. BEGIN ASSERT (TRUE, 4.5);
  23108. END Test.
  23109. negative: assert statement with constant number of type set
  23110. MODULE Test;
  23111. BEGIN ASSERT (TRUE, {5});
  23112. END Test.
  23113. negative: assert statement with constant number of type string
  23114. MODULE Test;
  23115. BEGIN ASSERT (TRUE, "number");
  23116. END Test.
  23117. negative: assert statement with constant number of type nil pointer
  23118. MODULE Test;
  23119. BEGIN ASSERT (TRUE, NIL);
  23120. END Test.
  23121. negative: assert statement with number of type boolean
  23122. MODULE Test;
  23123. VAR number: BOOLEAN;
  23124. BEGIN ASSERT (TRUE, number);
  23125. END Test.
  23126. negative: assert statement with number of type character
  23127. MODULE Test;
  23128. VAR number: CHAR;
  23129. BEGIN ASSERT (TRUE, number);
  23130. END Test.
  23131. negative: assert statement with number of type short integer
  23132. MODULE Test;
  23133. VAR number: SHORTINT;
  23134. BEGIN ASSERT (TRUE, number);
  23135. END Test.
  23136. negative: assert statement with number of type integer
  23137. MODULE Test;
  23138. VAR number: INTEGER;
  23139. BEGIN ASSERT (TRUE, number);
  23140. END Test.
  23141. negative: assert statement with number of type long integer
  23142. MODULE Test;
  23143. VAR number: LONGINT;
  23144. BEGIN ASSERT (TRUE, number);
  23145. END Test.
  23146. negative: assert statement with number of type huge integer
  23147. MODULE Test;
  23148. VAR number: HUGEINT;
  23149. BEGIN ASSERT (TRUE, number);
  23150. END Test.
  23151. negative: assert statement with number of type real
  23152. MODULE Test;
  23153. VAR number: REAL;
  23154. BEGIN ASSERT (TRUE, number);
  23155. END Test.
  23156. negative: assert statement with number of type long real
  23157. MODULE Test;
  23158. VAR number: LONGREAL;
  23159. BEGIN ASSERT (TRUE, number);
  23160. END Test.
  23161. negative: assert statement with number of type set
  23162. MODULE Test;
  23163. VAR number: SET;
  23164. BEGIN ASSERT (TRUE, number);
  23165. END Test.
  23166. negative: assert statement with number of type array
  23167. MODULE Test;
  23168. VAR number: ARRAY 10 OF CHAR;
  23169. BEGIN ASSERT (TRUE, number);
  23170. END Test.
  23171. negative: assert statement with number of type record
  23172. MODULE Test;
  23173. VAR number: RECORD END;
  23174. BEGIN ASSERT (TRUE, number);
  23175. END Test.
  23176. negative: assert statement with number of type object
  23177. MODULE Test;
  23178. VAR number: OBJECT;
  23179. BEGIN ASSERT (TRUE, number);
  23180. END Test.
  23181. negative: assert statement with number of type pointer
  23182. MODULE Test;
  23183. VAR number: POINTER TO RECORD END;
  23184. BEGIN ASSERT (TRUE, number);
  23185. END Test.
  23186. negative: assert statement with number of type procedure
  23187. MODULE Test;
  23188. VAR number: PROCEDURE;
  23189. BEGIN ASSERT (TRUE, number);
  23190. END Test.
  23191. negative: assert statement with import as number
  23192. MODULE Test;
  23193. IMPORT number := Dummy;
  23194. BEGIN ASSERT (TRUE, number);
  23195. END Test.
  23196. negative: assert statement with type as number
  23197. MODULE Test;
  23198. TYPE number = INTEGER
  23199. BEGIN ASSERT (TRUE, number);
  23200. END Test.
  23201. # if statement
  23202. positive: if statement with constant true condition
  23203. MODULE Test;
  23204. BEGIN IF TRUE THEN END;
  23205. END Test.
  23206. positive: if statement with constant false condition
  23207. MODULE Test;
  23208. BEGIN IF FALSE THEN END;
  23209. END Test.
  23210. negative: if statement with constant condition of type character
  23211. MODULE Test;
  23212. BEGIN IF 'a' THEN END;
  23213. END Test.
  23214. negative: if statement with constant condition of type integer
  23215. MODULE Test;
  23216. BEGIN IF 5 THEN END;
  23217. END Test.
  23218. negative: if statement with constant condition of type real
  23219. MODULE Test;
  23220. BEGIN IF 4.5 THEN END;
  23221. END Test.
  23222. negative: if statement with constant condition of type set
  23223. MODULE Test;
  23224. BEGIN IF {5} THEN END;
  23225. END Test.
  23226. negative: if statement with constant condition of type string
  23227. MODULE Test;
  23228. BEGIN IF "condition" THEN END;
  23229. END Test.
  23230. negative: if statement with constant condition of type nil pointer
  23231. MODULE Test;
  23232. BEGIN IF NIL THEN END;
  23233. END Test.
  23234. positive: if statement with condition of type boolean
  23235. MODULE Test;
  23236. VAR condition: BOOLEAN;
  23237. BEGIN IF condition THEN END;
  23238. END Test.
  23239. negative: if statement with condition of type character
  23240. MODULE Test;
  23241. VAR condition: CHAR;
  23242. BEGIN IF condition THEN END;
  23243. END Test.
  23244. negative: if statement with condition of type short integer
  23245. MODULE Test;
  23246. VAR condition: SHORTINT;
  23247. BEGIN IF condition THEN END;
  23248. END Test.
  23249. negative: if statement with condition of type integer
  23250. MODULE Test;
  23251. VAR condition: INTEGER;
  23252. BEGIN IF condition THEN END;
  23253. END Test.
  23254. negative: if statement with condition of type long integer
  23255. MODULE Test;
  23256. VAR condition: LONGINT;
  23257. BEGIN IF condition THEN END;
  23258. END Test.
  23259. negative: if statement with condition of type huge integer
  23260. MODULE Test;
  23261. VAR condition: HUGEINT;
  23262. BEGIN IF condition THEN END;
  23263. END Test.
  23264. negative: if statement with condition of type real
  23265. MODULE Test;
  23266. VAR condition: REAL;
  23267. BEGIN IF condition THEN END;
  23268. END Test.
  23269. negative: if statement with condition of type long real
  23270. MODULE Test;
  23271. VAR condition: LONGREAL;
  23272. BEGIN IF condition THEN END;
  23273. END Test.
  23274. negative: if statement with condition of type set
  23275. MODULE Test;
  23276. VAR condition: SET;
  23277. BEGIN IF condition THEN END;
  23278. END Test.
  23279. negative: if statement with condition of type array
  23280. MODULE Test;
  23281. VAR condition: ARRAY 10 OF CHAR;
  23282. BEGIN IF condition THEN END;
  23283. END Test.
  23284. negative: if statement with condition of type record
  23285. MODULE Test;
  23286. VAR condition: RECORD END;
  23287. BEGIN IF condition THEN END;
  23288. END Test.
  23289. negative: if statement with condition of type object
  23290. MODULE Test;
  23291. VAR condition: OBJECT;
  23292. BEGIN IF condition THEN END;
  23293. END Test.
  23294. negative: if statement with condition of type pointer
  23295. MODULE Test;
  23296. VAR condition: POINTER TO RECORD END;
  23297. BEGIN IF condition THEN END;
  23298. END Test.
  23299. negative: if statement with condition of type procedure
  23300. MODULE Test;
  23301. VAR condition: PROCEDURE;
  23302. BEGIN IF condition THEN END;
  23303. END Test.
  23304. negative: if statement with import as condition
  23305. MODULE Test;
  23306. IMPORT condition := Dummy;
  23307. BEGIN IF condition THEN END;
  23308. END Test.
  23309. negative: if statement with type as condition
  23310. MODULE Test;
  23311. TYPE condition = BOOLEAN;
  23312. BEGIN IF condition THEN END;
  23313. END Test.
  23314. positive: else if statement with constant true condition
  23315. MODULE Test;
  23316. BEGIN IF TRUE THEN ELSIF TRUE THEN END;
  23317. END Test.
  23318. positive: else if statement with constant false condition
  23319. MODULE Test;
  23320. BEGIN IF TRUE THEN ELSIF FALSE THEN END;
  23321. END Test.
  23322. negative: else if statement with constant condition of type character
  23323. MODULE Test;
  23324. BEGIN IF TRUE THEN ELSIF 'a' THEN END;
  23325. END Test.
  23326. negative: else if statement with constant condition of type integer
  23327. MODULE Test;
  23328. BEGIN IF TRUE THEN ELSIF 5 THEN END;
  23329. END Test.
  23330. negative: else if statement with constant condition of type real
  23331. MODULE Test;
  23332. BEGIN IF TRUE THEN ELSIF 4.5 THEN END;
  23333. END Test.
  23334. negative: else if statement with constant condition of type set
  23335. MODULE Test;
  23336. BEGIN IF TRUE THEN ELSIF {5} THEN END;
  23337. END Test.
  23338. negative: else if statement with constant condition of type string
  23339. MODULE Test;
  23340. BEGIN IF TRUE THEN ELSIF "condition" THEN END;
  23341. END Test.
  23342. negative: else if statement with constant condition of type nil pointer
  23343. MODULE Test;
  23344. BEGIN IF TRUE THEN ELSIF NIL THEN END;
  23345. END Test.
  23346. positive: else if statement with condition of type boolean
  23347. MODULE Test;
  23348. VAR condition: BOOLEAN;
  23349. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23350. END Test.
  23351. negative: else if statement with condition of type character
  23352. MODULE Test;
  23353. VAR condition: CHAR;
  23354. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23355. END Test.
  23356. negative: else if statement with condition of type short integer
  23357. MODULE Test;
  23358. VAR condition: SHORTINT;
  23359. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23360. END Test.
  23361. negative: else if statement with condition of type integer
  23362. MODULE Test;
  23363. VAR condition: INTEGER;
  23364. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23365. END Test.
  23366. negative: else if statement with condition of type long integer
  23367. MODULE Test;
  23368. VAR condition: LONGINT;
  23369. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23370. END Test.
  23371. negative: else if statement with condition of type huge integer
  23372. MODULE Test;
  23373. VAR condition: HUGEINT;
  23374. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23375. END Test.
  23376. negative: else if statement with condition of type real
  23377. MODULE Test;
  23378. VAR condition: REAL;
  23379. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23380. END Test.
  23381. negative: else if statement with condition of type long real
  23382. MODULE Test;
  23383. VAR condition: LONGREAL;
  23384. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23385. END Test.
  23386. negative: else if statement with condition of type set
  23387. MODULE Test;
  23388. VAR condition: SET;
  23389. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23390. END Test.
  23391. negative: else if statement with condition of type array
  23392. MODULE Test;
  23393. VAR condition: ARRAY 10 OF CHAR;
  23394. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23395. END Test.
  23396. negative: else if statement with condition of type record
  23397. MODULE Test;
  23398. VAR condition: RECORD END;
  23399. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23400. END Test.
  23401. negative: else if statement with condition of type object
  23402. MODULE Test;
  23403. VAR condition: OBJECT;
  23404. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23405. END Test.
  23406. negative: else if statement with condition of type pointer
  23407. MODULE Test;
  23408. VAR condition: POINTER TO RECORD END;
  23409. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23410. END Test.
  23411. negative: else if statement with condition of type procedure
  23412. MODULE Test;
  23413. VAR condition: PROCEDURE;
  23414. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23415. END Test.
  23416. negative: else if statement with import as condition
  23417. MODULE Test;
  23418. IMPORT condition := Dummy;
  23419. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23420. END Test.
  23421. negative: else if statement with type as condition
  23422. MODULE Test;
  23423. TYPE condition = BOOLEAN;
  23424. BEGIN IF TRUE THEN ELSIF condition THEN END;
  23425. END Test.
  23426. # halt statement
  23427. negative: halt statement with constant number of type character
  23428. MODULE Test;
  23429. BEGIN HALT ('a');
  23430. END Test.
  23431. positive: halt statement with constant number of type integer
  23432. MODULE Test;
  23433. BEGIN HALT (105);
  23434. END Test.
  23435. negative: halt statement with constant number of type real
  23436. MODULE Test;
  23437. BEGIN HALT (4.5);
  23438. END Test.
  23439. negative: halt statement with constant number of type set
  23440. MODULE Test;
  23441. BEGIN HALT ({5});
  23442. END Test.
  23443. negative: halt statement with constant number of type string
  23444. MODULE Test;
  23445. BEGIN HALT ("number");
  23446. END Test.
  23447. negative: halt statement with constant number of type nil pointer
  23448. MODULE Test;
  23449. BEGIN HALT (NIL);
  23450. END Test.
  23451. negative: halt statement with number of type boolean
  23452. MODULE Test;
  23453. VAR number: BOOLEAN;
  23454. BEGIN HALT (number);
  23455. END Test.
  23456. negative: halt statement with number of type character
  23457. MODULE Test;
  23458. VAR number: CHAR;
  23459. BEGIN HALT (number);
  23460. END Test.
  23461. negative: halt statement with number of type short integer
  23462. MODULE Test;
  23463. VAR number: SHORTINT;
  23464. BEGIN HALT (number);
  23465. END Test.
  23466. negative: halt statement with number of type integer
  23467. MODULE Test;
  23468. VAR number: INTEGER;
  23469. BEGIN HALT (number);
  23470. END Test.
  23471. negative: halt statement with number of type long integer
  23472. MODULE Test;
  23473. VAR number: LONGINT;
  23474. BEGIN HALT (number);
  23475. END Test.
  23476. negative: halt statement with number of type huge integer
  23477. MODULE Test;
  23478. VAR number: HUGEINT;
  23479. BEGIN HALT (number);
  23480. END Test.
  23481. negative: halt statement with number of type real
  23482. MODULE Test;
  23483. VAR number: REAL;
  23484. BEGIN HALT (number);
  23485. END Test.
  23486. negative: halt statement with number of type long real
  23487. MODULE Test;
  23488. VAR number: LONGREAL;
  23489. BEGIN HALT (number);
  23490. END Test.
  23491. negative: halt statement with number of type set
  23492. MODULE Test;
  23493. VAR number: SET;
  23494. BEGIN HALT (number);
  23495. END Test.
  23496. negative: halt statement with number of type array
  23497. MODULE Test;
  23498. VAR number: ARRAY 10 OF CHAR;
  23499. BEGIN HALT (number);
  23500. END Test.
  23501. negative: halt statement with number of type record
  23502. MODULE Test;
  23503. VAR number: RECORD END;
  23504. BEGIN HALT (number);
  23505. END Test.
  23506. negative: halt statement with number of type object
  23507. MODULE Test;
  23508. VAR number: OBJECT;
  23509. BEGIN HALT (number);
  23510. END Test.
  23511. negative: halt statement with number of type pointer
  23512. MODULE Test;
  23513. VAR number: POINTER TO RECORD END;
  23514. BEGIN HALT (number);
  23515. END Test.
  23516. negative: halt statement with number of type procedure
  23517. MODULE Test;
  23518. VAR number: PROCEDURE;
  23519. BEGIN HALT (number);
  23520. END Test.
  23521. negative: halt statement with import as number
  23522. MODULE Test;
  23523. IMPORT number := Dummy;
  23524. BEGIN HALT (number);
  23525. END Test.
  23526. negative: halt statement with type as number
  23527. MODULE Test;
  23528. TYPE number = INTEGER;
  23529. BEGIN HALT (number);
  23530. END Test.
  23531. # case statement
  23532. negative: case statement with constant boolean value
  23533. MODULE Test;
  23534. BEGIN CASE TRUE OF TRUE: END
  23535. END Test.
  23536. positive: case statement with constant character value
  23537. MODULE Test;
  23538. BEGIN CASE 'a' OF 'a': END
  23539. END Test.
  23540. negative: case statement with constant character value and unmatched case
  23541. MODULE Test;
  23542. BEGIN CASE 't' OF 'y': END
  23543. END Test.
  23544. positive: case statement with constant character value and unmatched case and else
  23545. MODULE Test;
  23546. BEGIN CASE 'e' OF 0X: ELSE END
  23547. END Test.
  23548. positive: case statement with constant short integer value
  23549. MODULE Test;
  23550. BEGIN CASE 10H OF 10H: END
  23551. END Test.
  23552. positive: case statement with constant integer value
  23553. MODULE Test;
  23554. BEGIN CASE 1000H OF 1000H: END
  23555. END Test.
  23556. positive: case statement with constant long integer value
  23557. MODULE Test;
  23558. BEGIN CASE 100000H OF 100000H: END
  23559. END Test.
  23560. positive: case statement with constant huge integer value
  23561. MODULE Test;
  23562. BEGIN CASE 100000000H OF 100000000H: END
  23563. END Test.
  23564. positive: case statement with constant integer value and matched case
  23565. MODULE Test;
  23566. BEGIN CASE 5 OF 5: END
  23567. END Test.
  23568. negative: case statement with constant integer value and unmatched case
  23569. MODULE Test;
  23570. BEGIN CASE 1 OF 2: END
  23571. END Test.
  23572. positive: case statement with constant integer value and unmatched case and else
  23573. MODULE Test;
  23574. BEGIN CASE 9 OF 4: ELSE END
  23575. END Test.
  23576. negative: case statement with constant real value
  23577. MODULE Test;
  23578. BEGIN CASE 1.0 OF 1.0: END
  23579. END Test.
  23580. negative: case statement with constant long real value
  23581. MODULE Test;
  23582. BEGIN CASE 1.D0 OF 1.D0: END
  23583. END Test.
  23584. negative: case statement with constant set value
  23585. MODULE Test;
  23586. BEGIN CASE {} OF {}: END
  23587. END Test.
  23588. negative: case statement with constant string value
  23589. MODULE Test;
  23590. BEGIN CASE "value" OF "value": END
  23591. END Test.
  23592. negative: case statement with nil pointer value
  23593. MODULE Test;
  23594. BEGIN CASE NIL OF NIL: END
  23595. END Test.
  23596. negative: case statement with variable boolean value
  23597. MODULE Test;
  23598. VAR value: BOOLEAN;
  23599. BEGIN CASE value OF TRUE: END
  23600. END Test.
  23601. positive: case statement with variable character value
  23602. MODULE Test;
  23603. VAR value: CHAR;
  23604. BEGIN CASE value OF 3X: END
  23605. END Test.
  23606. positive: case statement with variable short integer value
  23607. MODULE Test;
  23608. VAR value: SHORTINT;
  23609. BEGIN CASE value OF 5: END
  23610. END Test.
  23611. positive: case statement with variable integer value
  23612. MODULE Test;
  23613. VAR value: INTEGER;
  23614. BEGIN CASE value OF 10: END
  23615. END Test.
  23616. positive: case statement with variable long integer value
  23617. MODULE Test;
  23618. VAR value: LONGINT;
  23619. BEGIN CASE value OF 9: END
  23620. END Test.
  23621. positive: case statement with variable huge integer value
  23622. MODULE Test;
  23623. VAR value: HUGEINT;
  23624. BEGIN CASE value OF 6: END
  23625. END Test.
  23626. negative: case statement with variable real value
  23627. MODULE Test;
  23628. VAR value: REAL;
  23629. BEGIN CASE value OF 0.5: END
  23630. END Test.
  23631. negative: case statement with variable long real value
  23632. MODULE Test;
  23633. VAR value: REAL;
  23634. BEGIN CASE value OF 0.D0: END
  23635. END Test.
  23636. negative: case statement with variable set value
  23637. MODULE Test;
  23638. VAR value: SET;
  23639. BEGIN CASE value OF {}: END
  23640. END Test.
  23641. negative: case statement with variable array value
  23642. MODULE Test;
  23643. VAR value: ARRAY 10 OF CHAR;
  23644. BEGIN CASE value OF value: END
  23645. END Test.
  23646. negative: case statement with variable record value
  23647. MODULE Test;
  23648. VAR value: RECORD END;
  23649. BEGIN CASE value OF value: END
  23650. END Test.
  23651. negative: case statement with variable object value
  23652. MODULE Test;
  23653. VAR value: OBJECT END;
  23654. BEGIN CASE value OF value: END
  23655. END Test.
  23656. negative: case statement with variable base object value
  23657. MODULE Test;
  23658. VAR value: OBJECT;
  23659. BEGIN CASE value OF value: END
  23660. END Test.
  23661. negative: case statement with variable pointer to record value
  23662. MODULE Test;
  23663. VAR value: POINTER TO RECORD END;
  23664. BEGIN CASE value OF value: END
  23665. END Test.
  23666. negative: case statement with variable pointer to array value
  23667. MODULE Test;
  23668. VAR value: POINTER TO ARRAY OF CHAR;
  23669. BEGIN CASE value OF value: END
  23670. END Test.
  23671. negative: case statement with variable procedure value
  23672. MODULE Test;
  23673. VAR value: PROCEDURE;
  23674. BEGIN CASE value OF value: END
  23675. END Test.
  23676. negative: case statement with import value
  23677. MODULE Test;
  23678. IMPORT value := Dummy;
  23679. BEGIN CASE value OF value: END
  23680. END Test.
  23681. negative: case statement with type value
  23682. MODULE Test;
  23683. TYPE value = INTEGER;
  23684. BEGIN CASE value OF value: END
  23685. END Test.
  23686. negative: character case statement with constant boolean case
  23687. MODULE Test;
  23688. VAR value: CHAR;
  23689. BEGIN CASE value OF TRUE: END
  23690. END Test.
  23691. positive: character case statement with constant character case
  23692. MODULE Test;
  23693. VAR value: CHAR;
  23694. BEGIN CASE value OF 'a': END
  23695. END Test.
  23696. negative: character case statement with constant short integer case
  23697. MODULE Test;
  23698. VAR value: CHAR;
  23699. BEGIN CASE value OF 10H: END
  23700. END Test.
  23701. negative: character case statement with constant integer case
  23702. MODULE Test;
  23703. VAR value: CHAR;
  23704. BEGIN CASE value OF 1000H: END
  23705. END Test.
  23706. negative: character case statement with constant long integer case
  23707. MODULE Test;
  23708. VAR value: CHAR;
  23709. BEGIN CASE value OF 100000H: END
  23710. END Test.
  23711. negative: character case statement with constant huge integer case
  23712. MODULE Test;
  23713. VAR value: CHAR;
  23714. BEGIN CASE value OF 100000000H: END
  23715. END Test.
  23716. negative: character case statement with constant real case
  23717. MODULE Test;
  23718. VAR value: CHAR;
  23719. BEGIN CASE value OF 1.0: END
  23720. END Test.
  23721. negative: character case statement with constant long real case
  23722. MODULE Test;
  23723. VAR value: CHAR;
  23724. BEGIN CASE value OF 1.D0: END
  23725. END Test.
  23726. negative: character case statement with constant set case
  23727. MODULE Test;
  23728. VAR value: CHAR;
  23729. BEGIN CASE value OF {}: END
  23730. END Test.
  23731. negative: character case statement with constant string case
  23732. MODULE Test;
  23733. VAR value: CHAR;
  23734. BEGIN CASE value OF "value": END
  23735. END Test.
  23736. negative: character case statement with nil pointer case
  23737. MODULE Test;
  23738. VAR value: CHAR;
  23739. BEGIN CASE value OF NIL: END
  23740. END Test.
  23741. negative: character case statement variable boolean case
  23742. MODULE Test;
  23743. VAR value: CHAR; case: BOOLEAN;
  23744. BEGIN CASE value OF case: END
  23745. END Test.
  23746. negative: character case statement with variable character case
  23747. MODULE Test;
  23748. VAR value, case: CHAR;
  23749. BEGIN CASE value OF case: END
  23750. END Test.
  23751. negative: character case statement with variable short integer case
  23752. MODULE Test;
  23753. VAR value: CHAR; case: SHORTINT;
  23754. BEGIN CASE value OF case: END
  23755. END Test.
  23756. negative: character case statement with variable integer case
  23757. MODULE Test;
  23758. VAR value: CHAR; case: INTEGER;
  23759. BEGIN CASE value OF case: END
  23760. END Test.
  23761. negative: character case statement with variable long integer case
  23762. MODULE Test;
  23763. VAR value: CHAR; case: LONGINT;
  23764. BEGIN CASE value OF case: END
  23765. END Test.
  23766. negative: character case statement with variable huge integer case
  23767. MODULE Test;
  23768. VAR value: CHAR; case: HUGEINT;
  23769. BEGIN CASE value OF case: END
  23770. END Test.
  23771. negative: character case statement with variable real case
  23772. MODULE Test;
  23773. VAR value: CHAR; case: REAL;
  23774. BEGIN CASE value OF case: END
  23775. END Test.
  23776. negative: character case statement with variable long real case
  23777. MODULE Test;
  23778. VAR value: CHAR; case: LONGREAL;
  23779. BEGIN CASE value OF case: END
  23780. END Test.
  23781. negative: character case statement with variable set case
  23782. MODULE Test;
  23783. VAR value: CHAR; case: SET;
  23784. BEGIN CASE value OF case: END
  23785. END Test.
  23786. negative: character case statement with variable array case
  23787. MODULE Test;
  23788. VAR value: CHAR; case: ARRAY 10 OF CHAR;
  23789. BEGIN CASE value OF case: END
  23790. END Test.
  23791. negative: character case statement with variable record case
  23792. MODULE Test;
  23793. VAR value: CHAR; case: RECORD END;
  23794. BEGIN CASE value OF case: END
  23795. END Test.
  23796. negative: character case statement with variable object case
  23797. MODULE Test;
  23798. VAR value: CHAR; case: OBJECT END;
  23799. BEGIN CASE value OF case: END
  23800. END Test.
  23801. negative: character case statement with variable base object case
  23802. MODULE Test;
  23803. VAR value: CHAR; case: OBJECT;
  23804. BEGIN CASE value OF case: END
  23805. END Test.
  23806. negative: character case statement with variable pointer to record case
  23807. MODULE Test;
  23808. VAR value: CHAR; case: POINTER TO RECORD END;
  23809. BEGIN CASE value OF case: END
  23810. END Test.
  23811. negative: character case statement with variable pointer to array case
  23812. MODULE Test;
  23813. VAR value: CHAR; case: POINTER TO ARRAY OF CHAR;
  23814. BEGIN CASE value OF case: END
  23815. END Test.
  23816. negative: character case statement with variable procedure case
  23817. MODULE Test;
  23818. VAR value: CHAR; case: PROCEDURE;
  23819. BEGIN CASE value OF case: END
  23820. END Test.
  23821. negative: character case statement with import case
  23822. MODULE Test;
  23823. IMPORT case := Dummy;
  23824. VAR value: CHAR;
  23825. BEGIN CASE value OF case: END
  23826. END Test.
  23827. negative: character case statement with type as case
  23828. MODULE Test;
  23829. TYPE case = INTEGER;
  23830. VAR value: CHAR;
  23831. BEGIN CASE value OF case: END
  23832. END Test.
  23833. negative: short integer case statement with constant boolean case
  23834. MODULE Test;
  23835. VAR value: SHORTINT;
  23836. BEGIN CASE value OF TRUE: END
  23837. END Test.
  23838. negative: short integer case statement with constant character case
  23839. MODULE Test;
  23840. VAR value: SHORTINT;
  23841. BEGIN CASE value OF 'a': END
  23842. END Test.
  23843. positive: short integer case statement with constant short integer case
  23844. MODULE Test;
  23845. VAR value: SHORTINT;
  23846. BEGIN CASE value OF 10H: END
  23847. END Test.
  23848. negative: short integer case statement with constant integer case
  23849. MODULE Test;
  23850. VAR value: SHORTINT;
  23851. BEGIN CASE value OF 1000H: END
  23852. END Test.
  23853. negative: short integer case statement with constant long integer case
  23854. MODULE Test;
  23855. VAR value: SHORTINT;
  23856. BEGIN CASE value OF 100000H: END
  23857. END Test.
  23858. negative: short integer case statement with constant huge integer case
  23859. MODULE Test;
  23860. VAR value: SHORTINT;
  23861. BEGIN CASE value OF 100000000H: END
  23862. END Test.
  23863. negative: short integer case statement with constant real case
  23864. MODULE Test;
  23865. VAR value: SHORTINT;
  23866. BEGIN CASE value OF 1.0: END
  23867. END Test.
  23868. negative: short integer case statement with constant long real case
  23869. MODULE Test;
  23870. VAR value: SHORTINT;
  23871. BEGIN CASE value OF 1.D0: END
  23872. END Test.
  23873. negative: short integer case statement with constant set case
  23874. MODULE Test;
  23875. VAR value: SHORTINT;
  23876. BEGIN CASE value OF {}: END
  23877. END Test.
  23878. negative: short integer case statement with constant string case
  23879. MODULE Test;
  23880. VAR value: SHORTINT;
  23881. BEGIN CASE value OF "value": END
  23882. END Test.
  23883. negative: short integer case statement with nil pointer case
  23884. MODULE Test;
  23885. VAR value: SHORTINT;
  23886. BEGIN CASE value OF NIL: END
  23887. END Test.
  23888. negative: short integer case statement variable boolean case
  23889. MODULE Test;
  23890. VAR value: SHORTINT; case: BOOLEAN;
  23891. BEGIN CASE value OF case: END
  23892. END Test.
  23893. negative: short integer case statement with variable character case
  23894. MODULE Test;
  23895. VAR value: SHORTINT; case: CHAR;
  23896. BEGIN CASE value OF case: END
  23897. END Test.
  23898. negative: short integer case statement with variable short integer case
  23899. MODULE Test;
  23900. VAR value, case: SHORTINT;
  23901. BEGIN CASE value OF case: END
  23902. END Test.
  23903. negative: short integer case statement with variable integer case
  23904. MODULE Test;
  23905. VAR value: SHORTINT; case: INTEGER;
  23906. BEGIN CASE value OF case: END
  23907. END Test.
  23908. negative: short integer case statement with variable long integer case
  23909. MODULE Test;
  23910. VAR value: SHORTINT; case: LONGINT;
  23911. BEGIN CASE value OF case: END
  23912. END Test.
  23913. negative: short integer case statement with variable huge integer case
  23914. MODULE Test;
  23915. VAR value: SHORTINT; case: HUGEINT;
  23916. BEGIN CASE value OF case: END
  23917. END Test.
  23918. negative: short integer case statement with variable real case
  23919. MODULE Test;
  23920. VAR value: SHORTINT; case: REAL;
  23921. BEGIN CASE value OF case: END
  23922. END Test.
  23923. negative: short integer case statement with variable long real case
  23924. MODULE Test;
  23925. VAR value: SHORTINT; case: LONGREAL;
  23926. BEGIN CASE value OF case: END
  23927. END Test.
  23928. negative: short integer case statement with variable set case
  23929. MODULE Test;
  23930. VAR value: SHORTINT; case: SET;
  23931. BEGIN CASE value OF case: END
  23932. END Test.
  23933. negative: short integer case statement with variable array case
  23934. MODULE Test;
  23935. VAR value: SHORTINT; case: ARRAY 10 OF CHAR;
  23936. BEGIN CASE value OF case: END
  23937. END Test.
  23938. negative: short integer case statement with variable record case
  23939. MODULE Test;
  23940. VAR value: SHORTINT; case: RECORD END;
  23941. BEGIN CASE value OF case: END
  23942. END Test.
  23943. negative: short integer case statement with variable object case
  23944. MODULE Test;
  23945. VAR value: SHORTINT; case: OBJECT END;
  23946. BEGIN CASE value OF case: END
  23947. END Test.
  23948. negative: short integer case statement with variable base object case
  23949. MODULE Test;
  23950. VAR value: SHORTINT; case: OBJECT;
  23951. BEGIN CASE value OF case: END
  23952. END Test.
  23953. negative: short integer case statement with variable pointer to record case
  23954. MODULE Test;
  23955. VAR value: SHORTINT; case: POINTER TO RECORD END;
  23956. BEGIN CASE value OF case: END
  23957. END Test.
  23958. negative: short integer case statement with variable pointer to array case
  23959. MODULE Test;
  23960. VAR value: SHORTINT; case: POINTER TO ARRAY OF CHAR;
  23961. BEGIN CASE value OF case: END
  23962. END Test.
  23963. negative: short integer case statement with variable procedure case
  23964. MODULE Test;
  23965. VAR value: SHORTINT; case: PROCEDURE;
  23966. BEGIN CASE value OF case: END
  23967. END Test.
  23968. negative: short integer case statement with import case
  23969. MODULE Test;
  23970. IMPORT case := Dummy; VAR value: SHORTINT;
  23971. BEGIN CASE value OF case: END
  23972. END Test.
  23973. negative: short integer case statement with type as case
  23974. MODULE Test;
  23975. TYPE case = INTEGER; VAR value: case;
  23976. BEGIN CASE value OF case: END
  23977. END Test.
  23978. negative: integer case statement with constant boolean case
  23979. MODULE Test;
  23980. VAR value: INTEGER;
  23981. BEGIN CASE value OF TRUE: END
  23982. END Test.
  23983. negative: integer case statement with constant character case
  23984. MODULE Test;
  23985. VAR value: INTEGER;
  23986. BEGIN CASE value OF 'a': END
  23987. END Test.
  23988. positive: integer case statement with constant short integer case
  23989. MODULE Test;
  23990. VAR value: INTEGER;
  23991. BEGIN CASE value OF 10H: END
  23992. END Test.
  23993. positive: integer case statement with constant integer case
  23994. MODULE Test;
  23995. VAR value: INTEGER;
  23996. BEGIN CASE value OF 1000H: END
  23997. END Test.
  23998. negative: integer case statement with constant long integer case
  23999. MODULE Test;
  24000. VAR value: INTEGER;
  24001. BEGIN CASE value OF 100000H: END
  24002. END Test.
  24003. negative: integer case statement with constant huge integer case
  24004. MODULE Test;
  24005. VAR value: INTEGER;
  24006. BEGIN CASE value OF 100000000H: END
  24007. END Test.
  24008. negative: integer case statement with constant real case
  24009. MODULE Test;
  24010. VAR value: INTEGER;
  24011. BEGIN CASE value OF 1.0: END
  24012. END Test.
  24013. negative: integer case statement with constant long real case
  24014. MODULE Test;
  24015. VAR value: INTEGER;
  24016. BEGIN CASE value OF 1.D0: END
  24017. END Test.
  24018. negative: integer case statement with constant set case
  24019. MODULE Test;
  24020. VAR value: INTEGER;
  24021. BEGIN CASE value OF {}: END
  24022. END Test.
  24023. negative: integer case statement with constant string case
  24024. MODULE Test;
  24025. VAR value: INTEGER;
  24026. BEGIN CASE value OF "value": END
  24027. END Test.
  24028. negative: integer case statement with nil pointer case
  24029. MODULE Test;
  24030. VAR value: INTEGER;
  24031. BEGIN CASE value OF NIL: END
  24032. END Test.
  24033. negative: integer case statement variable boolean case
  24034. MODULE Test;
  24035. VAR value: INTEGER; case: BOOLEAN;
  24036. BEGIN CASE value OF case: END
  24037. END Test.
  24038. negative: integer case statement with variable character case
  24039. MODULE Test;
  24040. VAR value: INTEGER; case: CHAR;
  24041. BEGIN CASE value OF case: END
  24042. END Test.
  24043. negative: integer case statement with variable short integer case
  24044. MODULE Test;
  24045. VAR value: INTEGER; case: SHORTINT;
  24046. BEGIN CASE value OF case: END
  24047. END Test.
  24048. negative: integer case statement with variable integer case
  24049. MODULE Test;
  24050. VAR value, case: INTEGER;
  24051. BEGIN CASE value OF case: END
  24052. END Test.
  24053. negative: integer case statement with variable long integer case
  24054. MODULE Test;
  24055. VAR value: INTEGER; case: LONGINT;
  24056. BEGIN CASE value OF case: END
  24057. END Test.
  24058. negative: integer case statement with variable huge integer case
  24059. MODULE Test;
  24060. VAR value: INTEGER; case: HUGEINT;
  24061. BEGIN CASE value OF case: END
  24062. END Test.
  24063. negative: integer case statement with variable real case
  24064. MODULE Test;
  24065. VAR value: INTEGER; case: REAL;
  24066. BEGIN CASE value OF case: END
  24067. END Test.
  24068. negative: integer case statement with variable long real case
  24069. MODULE Test;
  24070. VAR value: INTEGER; case: LONGREAL;
  24071. BEGIN CASE value OF case: END
  24072. END Test.
  24073. negative: integer case statement with variable set case
  24074. MODULE Test;
  24075. VAR value: INTEGER; case: SET;
  24076. BEGIN CASE value OF case: END
  24077. END Test.
  24078. negative: integer case statement with variable array case
  24079. MODULE Test;
  24080. VAR value: INTEGER; case: ARRAY 10 OF CHAR;
  24081. BEGIN CASE value OF case: END
  24082. END Test.
  24083. negative: integer case statement with variable record case
  24084. MODULE Test;
  24085. VAR value: INTEGER; case: RECORD END;
  24086. BEGIN CASE value OF case: END
  24087. END Test.
  24088. negative: integer case statement with variable object case
  24089. MODULE Test;
  24090. VAR value: INTEGER; case: OBJECT END;
  24091. BEGIN CASE value OF case: END
  24092. END Test.
  24093. negative: integer case statement with variable base object case
  24094. MODULE Test;
  24095. VAR value: INTEGER; case: OBJECT;
  24096. BEGIN CASE value OF case: END
  24097. END Test.
  24098. negative: integer case statement with variable pointer to record case
  24099. MODULE Test;
  24100. VAR value: INTEGER; case: POINTER TO RECORD END;
  24101. BEGIN CASE value OF case: END
  24102. END Test.
  24103. negative: integer case statement with variable pointer to array case
  24104. MODULE Test;
  24105. VAR value: INTEGER; case: POINTER TO ARRAY OF CHAR;
  24106. BEGIN CASE value OF case: END
  24107. END Test.
  24108. negative: integer case statement with variable procedure case
  24109. MODULE Test;
  24110. VAR value: INTEGER; case: PROCEDURE;
  24111. BEGIN CASE value OF case: END
  24112. END Test.
  24113. negative: integer case statement with import case
  24114. MODULE Test;
  24115. IMPORT case := Dummy; VAR value: INTEGER;
  24116. BEGIN CASE value OF case: END
  24117. END Test.
  24118. negative: integer case statement with type as case
  24119. MODULE Test;
  24120. TYPE case = INTEGER; VAR value: case;
  24121. BEGIN CASE value OF case: END
  24122. END Test.
  24123. negative: long integer case statement with constant boolean case
  24124. MODULE Test;
  24125. VAR value: LONGINT;
  24126. BEGIN CASE value OF TRUE: END
  24127. END Test.
  24128. negative: long integer case statement with constant character case
  24129. MODULE Test;
  24130. VAR value: LONGINT;
  24131. BEGIN CASE value OF 'a': END
  24132. END Test.
  24133. positive: long integer case statement with constant short integer case
  24134. MODULE Test;
  24135. VAR value: LONGINT;
  24136. BEGIN CASE value OF 10H: END
  24137. END Test.
  24138. positive: long integer case statement with constant integer case
  24139. MODULE Test;
  24140. VAR value: LONGINT;
  24141. BEGIN CASE value OF 1000H: END
  24142. END Test.
  24143. positive: long integer case statement with constant long integer case
  24144. MODULE Test;
  24145. VAR value: LONGINT;
  24146. BEGIN CASE value OF 100000H: END
  24147. END Test.
  24148. negative: long integer case statement with constant huge integer case
  24149. MODULE Test;
  24150. VAR value: LONGINT;
  24151. BEGIN CASE value OF 100000000H: END
  24152. END Test.
  24153. negative: long integer case statement with constant real case
  24154. MODULE Test;
  24155. VAR value: LONGINT;
  24156. BEGIN CASE value OF 1.0: END
  24157. END Test.
  24158. negative: long integer case statement with constant long real case
  24159. MODULE Test;
  24160. VAR value: LONGINT;
  24161. BEGIN CASE value OF 1.D0: END
  24162. END Test.
  24163. negative: long integer case statement with constant set case
  24164. MODULE Test;
  24165. VAR value: LONGINT;
  24166. BEGIN CASE value OF {}: END
  24167. END Test.
  24168. negative: long integer case statement with constant string case
  24169. MODULE Test;
  24170. VAR value: LONGINT;
  24171. BEGIN CASE value OF "value": END
  24172. END Test.
  24173. negative: long integer case statement with nil pointer case
  24174. MODULE Test;
  24175. VAR value: LONGINT;
  24176. BEGIN CASE value OF NIL: END
  24177. END Test.
  24178. negative: long integer case statement variable boolean case
  24179. MODULE Test;
  24180. VAR value: LONGINT; case: BOOLEAN;
  24181. BEGIN CASE value OF case: END
  24182. END Test.
  24183. negative: long integer case statement with variable character case
  24184. MODULE Test;
  24185. VAR value: LONGINT; case: CHAR;
  24186. BEGIN CASE value OF case: END
  24187. END Test.
  24188. negative: long integer case statement with variable short integer case
  24189. MODULE Test;
  24190. VAR value: LONGINT; case: SHORTINT;
  24191. BEGIN CASE value OF case: END
  24192. END Test.
  24193. negative: long integer case statement with variable integer case
  24194. MODULE Test;
  24195. VAR value: LONGINT; case: INTEGER;
  24196. BEGIN CASE value OF case: END
  24197. END Test.
  24198. negative: long integer case statement with variable long integer case
  24199. MODULE Test;
  24200. VAR value, case: LONGINT;
  24201. BEGIN CASE value OF case: END
  24202. END Test.
  24203. negative: long integer case statement with variable huge integer case
  24204. MODULE Test;
  24205. VAR value: LONGINT; case: HUGEINT;
  24206. BEGIN CASE value OF case: END
  24207. END Test.
  24208. negative: long integer case statement with variable real case
  24209. MODULE Test;
  24210. VAR value: LONGINT; case: REAL;
  24211. BEGIN CASE value OF case: END
  24212. END Test.
  24213. negative: long integer case statement with variable long real case
  24214. MODULE Test;
  24215. VAR value: LONGINT; case: LONGREAL;
  24216. BEGIN CASE value OF case: END
  24217. END Test.
  24218. negative: long integer case statement with variable set case
  24219. MODULE Test;
  24220. VAR value: LONGINT; case: SET;
  24221. BEGIN CASE value OF case: END
  24222. END Test.
  24223. negative: long integer case statement with variable array case
  24224. MODULE Test;
  24225. VAR value: LONGINT; case: ARRAY 10 OF CHAR;
  24226. BEGIN CASE value OF case: END
  24227. END Test.
  24228. negative: long integer case statement with variable record case
  24229. MODULE Test;
  24230. VAR value: LONGINT; case: RECORD END;
  24231. BEGIN CASE value OF case: END
  24232. END Test.
  24233. negative: long integer case statement with variable object case
  24234. MODULE Test;
  24235. VAR value: LONGINT; case: OBJECT END;
  24236. BEGIN CASE value OF case: END
  24237. END Test.
  24238. negative: long integer case statement with variable base object case
  24239. MODULE Test;
  24240. VAR value: LONGINT; case: OBJECT;
  24241. BEGIN CASE value OF case: END
  24242. END Test.
  24243. negative: long integer case statement with variable pointer to record case
  24244. MODULE Test;
  24245. VAR value: LONGINT; case: POINTER TO RECORD END;
  24246. BEGIN CASE value OF case: END
  24247. END Test.
  24248. negative: long integer case statement with variable pointer to array case
  24249. MODULE Test;
  24250. VAR value: LONGINT; case: POINTER TO ARRAY OF CHAR;
  24251. BEGIN CASE value OF case: END
  24252. END Test.
  24253. negative: long integer case statement with variable procedure case
  24254. MODULE Test;
  24255. VAR value: LONGINT; case: PROCEDURE;
  24256. BEGIN CASE value OF case: END
  24257. END Test.
  24258. negative: long integer case statement with import case
  24259. MODULE Test;
  24260. IMPORT case := Dummy; VAR value: LONGINT;
  24261. BEGIN CASE value OF case: END
  24262. END Test.
  24263. negative: long integer case statement with type as case
  24264. MODULE Test;
  24265. TYPE case = LONGINT; VAR value: case;
  24266. BEGIN CASE value OF case: END
  24267. END Test.
  24268. negative: huge integer case statement with constant boolean case
  24269. MODULE Test;
  24270. VAR value: HUGEINT;
  24271. BEGIN CASE value OF TRUE: END
  24272. END Test.
  24273. negative: huge integer case statement with constant character case
  24274. MODULE Test;
  24275. VAR value: HUGEINT;
  24276. BEGIN CASE value OF 'a': END
  24277. END Test.
  24278. positive: huge integer case statement with constant short integer case
  24279. MODULE Test;
  24280. VAR value: HUGEINT;
  24281. BEGIN CASE value OF 10H: END
  24282. END Test.
  24283. positive: huge integer case statement with constant integer case
  24284. MODULE Test;
  24285. VAR value: HUGEINT;
  24286. BEGIN CASE value OF 1000H: END
  24287. END Test.
  24288. positive: huge integer case statement with constant long integer case
  24289. MODULE Test;
  24290. VAR value: HUGEINT;
  24291. BEGIN CASE value OF 100000H: END
  24292. END Test.
  24293. positive: huge integer case statement with constant huge integer case
  24294. MODULE Test;
  24295. VAR value: HUGEINT;
  24296. BEGIN CASE value OF 100000000H: END
  24297. END Test.
  24298. negative: huge integer case statement with constant real case
  24299. MODULE Test;
  24300. VAR value: HUGEINT;
  24301. BEGIN CASE value OF 1.0: END
  24302. END Test.
  24303. negative: huge integer case statement with constant long real case
  24304. MODULE Test;
  24305. VAR value: HUGEINT;
  24306. BEGIN CASE value OF 1.D0: END
  24307. END Test.
  24308. negative: huge integer case statement with constant set case
  24309. MODULE Test;
  24310. VAR value: HUGEINT;
  24311. BEGIN CASE value OF {}: END
  24312. END Test.
  24313. negative: huge integer case statement with constant string case
  24314. MODULE Test;
  24315. VAR value: HUGEINT;
  24316. BEGIN CASE value OF "value": END
  24317. END Test.
  24318. negative: huge integer case statement with nil pointer case
  24319. MODULE Test;
  24320. VAR value: HUGEINT;
  24321. BEGIN CASE value OF NIL: END
  24322. END Test.
  24323. negative: huge integer case statement variable boolean case
  24324. MODULE Test;
  24325. VAR value: HUGEINT; case: BOOLEAN;
  24326. BEGIN CASE value OF case: END
  24327. END Test.
  24328. negative: huge integer case statement with variable character case
  24329. MODULE Test;
  24330. VAR value: HUGEINT; case: CHAR;
  24331. BEGIN CASE value OF case: END
  24332. END Test.
  24333. negative: huge integer case statement with variable short integer case
  24334. MODULE Test;
  24335. VAR value: HUGEINT; case: SHORTINT;
  24336. BEGIN CASE value OF case: END
  24337. END Test.
  24338. negative: huge integer case statement with variable integer case
  24339. MODULE Test;
  24340. VAR value: HUGEINT; case: INTEGER;
  24341. BEGIN CASE value OF case: END
  24342. END Test.
  24343. negative: huge integer case statement with variable long integer case
  24344. MODULE Test;
  24345. VAR value: HUGEINT; case: LONGINT;
  24346. BEGIN CASE value OF case: END
  24347. END Test.
  24348. negative: huge integer case statement with variable huge integer case
  24349. MODULE Test;
  24350. VAR value, case: HUGEINT;
  24351. BEGIN CASE value OF case: END
  24352. END Test.
  24353. negative: huge integer case statement with variable real case
  24354. MODULE Test;
  24355. VAR value: HUGEINT; case: REAL;
  24356. BEGIN CASE value OF case: END
  24357. END Test.
  24358. negative: huge integer case statement with variable long real case
  24359. MODULE Test;
  24360. VAR value: HUGEINT; case: LONGREAL;
  24361. BEGIN CASE value OF case: END
  24362. END Test.
  24363. negative: huge integer case statement with variable set case
  24364. MODULE Test;
  24365. VAR value: HUGEINT; case: SET;
  24366. BEGIN CASE value OF case: END
  24367. END Test.
  24368. negative: huge integer case statement with variable array case
  24369. MODULE Test;
  24370. VAR value: HUGEINT; case: ARRAY 10 OF CHAR;
  24371. BEGIN CASE value OF case: END
  24372. END Test.
  24373. negative: huge integer case statement with variable record case
  24374. MODULE Test;
  24375. VAR value: HUGEINT; case: RECORD END;
  24376. BEGIN CASE value OF case: END
  24377. END Test.
  24378. negative: huge integer case statement with variable object case
  24379. MODULE Test;
  24380. VAR value: HUGEINT; case: OBJECT END;
  24381. BEGIN CASE value OF case: END
  24382. END Test.
  24383. negative: huge integer case statement with variable base object case
  24384. MODULE Test;
  24385. VAR value: HUGEINT; case: OBJECT;
  24386. BEGIN CASE value OF case: END
  24387. END Test.
  24388. negative: huge integer case statement with variable pointer to record case
  24389. MODULE Test;
  24390. VAR value: HUGEINT; case: POINTER TO RECORD END;
  24391. BEGIN CASE value OF case: END
  24392. END Test.
  24393. negative: huge integer case statement with variable pointer to array case
  24394. MODULE Test;
  24395. VAR value: HUGEINT; case: POINTER TO ARRAY OF CHAR;
  24396. BEGIN CASE value OF case: END
  24397. END Test.
  24398. negative: huge integer case statement with variable procedure case
  24399. MODULE Test;
  24400. VAR value: HUGEINT; case: PROCEDURE;
  24401. BEGIN CASE value OF case: END
  24402. END Test.
  24403. negative: huge integer case statement with import case
  24404. MODULE Test;
  24405. IMPORT case := Dummy; VAR value: HUGEINT;
  24406. BEGIN CASE value OF case: END
  24407. END Test.
  24408. negative: huge integer case statement with type as case
  24409. MODULE Test;
  24410. TYPE case = HUGEINT; VAR value: case;
  24411. BEGIN CASE value OF case: END
  24412. END Test.
  24413. positive: character case statement with multiple case range
  24414. MODULE Test;
  24415. VAR value: CHAR;
  24416. BEGIN CASE value OF 0X..10X, 11X..20X: END;
  24417. END Test.
  24418. positive: character case statement with empty case range
  24419. MODULE Test;
  24420. VAR value: CHAR;
  24421. BEGIN CASE value OF 10X..10X: END;
  24422. END Test.
  24423. negative: character case statement with invalid case range
  24424. MODULE Test;
  24425. VAR value: CHAR;
  24426. BEGIN CASE value OF 10X..0X: END;
  24427. END Test.
  24428. negative: character case statement with duplicated cases within same label
  24429. MODULE Test;
  24430. VAR value: CHAR;
  24431. BEGIN CASE value OF 10X, 10X: END;
  24432. END Test.
  24433. negative: character case statement with duplicated case ranges within same label
  24434. MODULE Test;
  24435. VAR value: CHAR;
  24436. BEGIN CASE value OF 0X..10X, 10X..20X: END;
  24437. END Test.
  24438. negative: character case statement with duplicated cases within different label
  24439. MODULE Test;
  24440. VAR value: CHAR;
  24441. BEGIN CASE value OF 10X: | 10X: END;
  24442. END Test.
  24443. negative: character case statement with duplicated case ranges within different label
  24444. MODULE Test;
  24445. VAR value: CHAR;
  24446. BEGIN CASE value OF 0X..10X: | 10X..20X: END;
  24447. END Test.
  24448. positive: character case statement with ascending cases
  24449. MODULE Test;
  24450. VAR value: CHAR;
  24451. BEGIN CASE value OF 0X..5X, 6X, 7X..7X, 8X, 9X: | 10X..20X, 21X: | 22X, 23X..29X, 30X: END;
  24452. END Test.
  24453. positive: character case statement with descending cases
  24454. MODULE Test;
  24455. VAR value: CHAR;
  24456. BEGIN CASE value OF 30X, 23X..29X, 22X: | 21X, 10X..20X: | 0X..5X, 6X, 7X..7X, 8X, 9X: END;
  24457. END Test.
  24458. positive: nested character case statement
  24459. MODULE Test;
  24460. VAR value: CHAR;
  24461. BEGIN CASE value OF 0X..10X: CASE value OF 0X..10X: END END;
  24462. END Test.
  24463. positive: integer case statement with negative case
  24464. MODULE Test;
  24465. VAR value: INTEGER;
  24466. BEGIN CASE value OF -10: END;
  24467. END Test.
  24468. positive: integer case statement with zero case
  24469. MODULE Test;
  24470. VAR value: INTEGER;
  24471. BEGIN CASE value OF 0: END;
  24472. END Test.
  24473. positive: integer case statement with positive case
  24474. MODULE Test;
  24475. VAR value: INTEGER;
  24476. BEGIN CASE value OF 10: END;
  24477. END Test.
  24478. positive: integer case statement with multiple case range
  24479. MODULE Test;
  24480. VAR value: INTEGER;
  24481. BEGIN CASE value OF 0..10, 11..20: END;
  24482. END Test.
  24483. positive: integer case statement with empty case range
  24484. MODULE Test;
  24485. VAR value: INTEGER;
  24486. BEGIN CASE value OF 10..10: END;
  24487. END Test.
  24488. negative: integer case statement with invalid case range
  24489. MODULE Test;
  24490. VAR value: INTEGER;
  24491. BEGIN CASE value OF 10..0: END;
  24492. END Test.
  24493. negative: integer case statement with duplicated cases within same label
  24494. MODULE Test;
  24495. VAR value: INTEGER;
  24496. BEGIN CASE value OF 10, 10: END;
  24497. END Test.
  24498. negative: integer case statement with duplicated case ranges within same label
  24499. MODULE Test;
  24500. VAR value: INTEGER;
  24501. BEGIN CASE value OF 0..10, 10..20: END;
  24502. END Test.
  24503. negative: integer case statement with duplicated cases within different label
  24504. MODULE Test;
  24505. VAR value: INTEGER;
  24506. BEGIN CASE value OF 10: | 10: END;
  24507. END Test.
  24508. negative: integer case statement with duplicated case ranges within different label
  24509. MODULE Test;
  24510. VAR value: INTEGER;
  24511. BEGIN CASE value OF 0..10: | 10..20: END;
  24512. END Test.
  24513. positive: integer case statement with ascending cases
  24514. MODULE Test;
  24515. VAR value: INTEGER;
  24516. BEGIN CASE value OF 0..5, 6, 7..7, 8, 9: | 10..20, 21: | 22, 23..29, 30: END;
  24517. END Test.
  24518. positive: integer case statement with descending cases
  24519. MODULE Test;
  24520. VAR value: INTEGER;
  24521. BEGIN CASE value OF 30, 23..29, 22: | 21, 10..20: | 0..5, 6, 7..7, 8, 9: END;
  24522. END Test.
  24523. positive: nested integer case statement
  24524. MODULE Test;
  24525. VAR value: INTEGER;
  24526. BEGIN CASE value OF 0..10: CASE value OF 0..10: END END;
  24527. END Test.
  24528. # with statement
  24529. negative: with statement with constant boolean value
  24530. MODULE Test;
  24531. BEGIN WITH TRUE : BOOLEAN DO END;
  24532. END Test.
  24533. negative: with statement with constant boolean value type
  24534. MODULE Test;
  24535. TYPE Type = BOOLEAN;
  24536. BEGIN WITH TRUE : Type DO END;
  24537. END Test.
  24538. negative: with statement with indirect constant boolean value
  24539. MODULE Test;
  24540. CONST Constant = TRUE;
  24541. BEGIN WITH Constant : BOOLEAN DO END;
  24542. END Test.
  24543. negative: with statement with indirect constant boolean value type
  24544. MODULE Test;
  24545. CONST Constant = TRUE;
  24546. TYPE Type = BOOLEAN;
  24547. BEGIN WITH Constant : Type DO END;
  24548. END Test.
  24549. negative: with statement with constant character value
  24550. MODULE Test;
  24551. BEGIN WITH '0' : CHAR DO END;
  24552. END Test.
  24553. negative: with statement with constant character value type
  24554. MODULE Test;
  24555. TYPE Type = CHAR;
  24556. BEGIN WITH '0' : Type DO END;
  24557. END Test.
  24558. negative: with statement with indirect constant character value
  24559. MODULE Test;
  24560. CONST Constant = '0';
  24561. BEGIN WITH Constant : CHAR DO END;
  24562. END Test.
  24563. negative: with statement with indirect constant character value type
  24564. MODULE Test;
  24565. CONST Constant = '0';
  24566. TYPE Type = CHAR;
  24567. BEGIN WITH Constant : Type DO END;
  24568. END Test.
  24569. negative: with statement with constant integer value
  24570. MODULE Test;
  24571. BEGIN WITH 0 : INTEGER DO END;
  24572. END Test.
  24573. negative: with statement with constant integer value type
  24574. MODULE Test;
  24575. TYPE Type = INTEGER;
  24576. BEGIN WITH 0 : Type DO END;
  24577. END Test.
  24578. negative: with statement with indirect constant integer value
  24579. MODULE Test;
  24580. CONST Constant = 0;
  24581. BEGIN WITH Constant : INTEGER DO END;
  24582. END Test.
  24583. negative: with statement with indirect constant integer value type
  24584. MODULE Test;
  24585. CONST Constant = 0;
  24586. TYPE Type = INTEGER;
  24587. BEGIN WITH Constant : Type DO END;
  24588. END Test.
  24589. negative: with statement with constant real value
  24590. MODULE Test;
  24591. BEGIN WITH 0.0 : REAL DO END;
  24592. END Test.
  24593. negative: with statement with constant real value type
  24594. MODULE Test;
  24595. TYPE Type = REAL;
  24596. BEGIN WITH 0.0 : Type DO END;
  24597. END Test.
  24598. negative: with statement with indirect constant real value
  24599. MODULE Test;
  24600. CONST Constant = 0.0;
  24601. BEGIN WITH Constant : REAL DO END;
  24602. END Test.
  24603. negative: with statement with indirect constant real value type
  24604. MODULE Test;
  24605. CONST Constant = 0.0;
  24606. TYPE Type = REAL;
  24607. BEGIN WITH Constant : Type DO END;
  24608. END Test.
  24609. negative: with statement with constant set value
  24610. MODULE Test;
  24611. BEGIN WITH {} : SET DO END;
  24612. END Test.
  24613. negative: with statement with constant set value type
  24614. MODULE Test;
  24615. TYPE Type = SET;
  24616. BEGIN WITH {} : Type DO END;
  24617. END Test.
  24618. negative: with statement with indirect constant set value
  24619. MODULE Test;
  24620. CONST Constant = {};
  24621. BEGIN WITH Constant : SET DO END;
  24622. END Test.
  24623. negative: with statement with indirect constant set value type
  24624. MODULE Test;
  24625. CONST Constant = {};
  24626. TYPE Type = SET;
  24627. BEGIN WITH Constant : Type DO END;
  24628. END Test.
  24629. negative: with statement with constant string value
  24630. MODULE Test;
  24631. BEGIN WITH "string" : ARRAY OF CHAR DO END;
  24632. END Test.
  24633. negative: with statement with constant string value type
  24634. MODULE Test;
  24635. TYPE Type = ARRAY OF CHAR;
  24636. BEGIN WITH "string" : Type DO END;
  24637. END Test.
  24638. negative: with statement with indirect constant string value
  24639. MODULE Test;
  24640. CONST Constant = "string";
  24641. BEGIN WITH Constant : ARRAY OF CHAR DO END;
  24642. END Test.
  24643. negative: with statement with indirect constant string value type
  24644. MODULE Test;
  24645. CONST Constant = "string";
  24646. TYPE Type = ARRAY OF CHAR;
  24647. BEGIN WITH Constant : Type DO END;
  24648. END Test.
  24649. negative: with statement with nil pointer value
  24650. MODULE Test;
  24651. BEGIN WITH NIL : OBJECT DO END;
  24652. END Test.
  24653. negative: with statement with nil pointer value type
  24654. MODULE Test;
  24655. TYPE Type = OBJECT;
  24656. BEGIN WITH NIL : Type DO END;
  24657. END Test.
  24658. negative: with statement with indirect nil pointer value
  24659. MODULE Test;
  24660. CONST Constant = NIL;
  24661. TYPE Type = OBJECT;
  24662. BEGIN WITH Constant : Type DO END;
  24663. END Test.
  24664. negative: with statement with indirect nil pointer value type
  24665. MODULE Test;
  24666. TYPE Type = OBJECT;
  24667. CONST Constant = NIL;
  24668. BEGIN WITH Constant : Type DO END;
  24669. END Test.
  24670. negative: with statement with variable boolean value
  24671. MODULE Test;
  24672. VAR value: BOOLEAN;
  24673. BEGIN WITH value : BOOLEAN DO END;
  24674. END Test.
  24675. negative: with statement with variable boolean value type
  24676. MODULE Test;
  24677. TYPE Type = BOOLEAN;
  24678. VAR value: Type;
  24679. BEGIN WITH value : Type DO END;
  24680. END Test.
  24681. negative: with statement with variable character value
  24682. MODULE Test;
  24683. VAR value: CHAR;
  24684. BEGIN WITH value : CHAR DO END;
  24685. END Test.
  24686. negative: with statement with variable character value type
  24687. MODULE Test;
  24688. TYPE Type = CHAR;
  24689. VAR value: Type;
  24690. BEGIN WITH value : Type DO END;
  24691. END Test.
  24692. negative: with statement with variable short integer value
  24693. MODULE Test;
  24694. VAR value: SHORTINT;
  24695. BEGIN WITH value : SHORTINT DO END;
  24696. END Test.
  24697. negative: with statement with variable short integer value type
  24698. MODULE Test;
  24699. TYPE Type = SHORTINT;
  24700. VAR value: Type;
  24701. BEGIN WITH value : Type DO END;
  24702. END Test.
  24703. negative: with statement with variable integer value
  24704. MODULE Test;
  24705. VAR value: INTEGER;
  24706. BEGIN WITH value : INTEGER DO END;
  24707. END Test.
  24708. negative: with statement with variable integer value type
  24709. MODULE Test;
  24710. TYPE Type = INTEGER;
  24711. VAR value: Type;
  24712. BEGIN WITH value : Type DO END;
  24713. END Test.
  24714. negative: with statement with variable long integer value
  24715. MODULE Test;
  24716. VAR value: LONGINT;
  24717. BEGIN WITH value : LONGINT DO END;
  24718. END Test.
  24719. negative: with statement with variable long integer value type
  24720. MODULE Test;
  24721. TYPE Type = LONGINT;
  24722. VAR value: Type;
  24723. BEGIN WITH value : Type DO END;
  24724. END Test.
  24725. negative: with statement with variable huge integer value
  24726. MODULE Test;
  24727. VAR value: HUGEINT;
  24728. BEGIN WITH value : HUGEINT DO END;
  24729. END Test.
  24730. negative: with statement with variable huge integer value type
  24731. MODULE Test;
  24732. TYPE Type = HUGEINT;
  24733. VAR value: Type;
  24734. BEGIN WITH value : Type DO END;
  24735. END Test.
  24736. negative: with statement with variable real value
  24737. MODULE Test;
  24738. VAR value: REAL;
  24739. BEGIN WITH value : REAL DO END;
  24740. END Test.
  24741. negative: with statement with variable real value type
  24742. MODULE Test;
  24743. TYPE Type = REAL;
  24744. VAR value: Type;
  24745. BEGIN WITH value : Type DO END;
  24746. END Test.
  24747. negative: with statement with variable long real value
  24748. MODULE Test;
  24749. VAR value: LONGREAL;
  24750. BEGIN WITH value : LONGREAL DO END;
  24751. END Test.
  24752. negative: with statement with variable long real value type
  24753. MODULE Test;
  24754. TYPE Type = LONGREAL;
  24755. VAR value: Type;
  24756. BEGIN WITH value : Type DO END;
  24757. END Test.
  24758. negative: with statement with variable set value
  24759. MODULE Test;
  24760. VAR value: SET;
  24761. BEGIN WITH value : SET DO END;
  24762. END Test.
  24763. negative: with statement with variable set value type
  24764. MODULE Test;
  24765. TYPE Type = SET;
  24766. VAR value: Type;
  24767. BEGIN WITH value : Type DO END;
  24768. END Test.
  24769. negative: with statement with variable array value
  24770. MODULE Test;
  24771. VAR value: ARRAY 10 OF CHAR;
  24772. BEGIN WITH value : ARRAY 10 OF CHAR DO END;
  24773. END Test.
  24774. negative: with statement with variable array value type
  24775. MODULE Test;
  24776. TYPE Type = ARRAY 10 OF CHAR;
  24777. VAR value: Type;
  24778. BEGIN WITH value : Type DO END;
  24779. END Test.
  24780. negative: with statement with variable record value
  24781. MODULE Test;
  24782. PROCEDURE Procedure (VAR value: RECORD END);
  24783. BEGIN WITH value : RECORD END DO END;
  24784. END Procedure;
  24785. END Test.
  24786. positive: with statement with same record type
  24787. MODULE Test;
  24788. TYPE Type = RECORD check: BOOLEAN END;
  24789. PROCEDURE Procedure (VAR value, check: Type);
  24790. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24791. END Procedure;
  24792. END Test.
  24793. positive: with statement with nested record types
  24794. MODULE Test;
  24795. TYPE A = RECORD a: BOOLEAN END;
  24796. TYPE B = RECORD (A) b: BOOLEAN END;
  24797. TYPE C = RECORD (B) c: BOOLEAN END;
  24798. PROCEDURE Procedure (VAR value: A);
  24799. BEGIN WITH value : B DO WITH value : C DO ASSERT (value.c) END; ASSERT (value.b) END; ASSERT (value.a);
  24800. END Procedure;
  24801. END Test.
  24802. negative: with statement with invalid nested record types
  24803. MODULE Test;
  24804. TYPE A = RECORD END;
  24805. TYPE B = RECORD (A) END;
  24806. TYPE C = RECORD (A) END;
  24807. PROCEDURE Procedure (VAR value: A);
  24808. BEGIN WITH value : B DO WITH value : C DO END END;
  24809. END Procedure;
  24810. END Test.
  24811. positive: with statement with extending record type
  24812. MODULE Test;
  24813. TYPE Record = RECORD END; Type = RECORD (Record) check: BOOLEAN END;
  24814. PROCEDURE Procedure (VAR value: Record; check: Type);
  24815. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24816. END Procedure;
  24817. END Test.
  24818. negative: with statement with static extending record type
  24819. MODULE Test;
  24820. TYPE Record = RECORD END; Type = RECORD (Record) check: BOOLEAN END;
  24821. VAR value: Record; check: Type;
  24822. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24823. END Test.
  24824. negative: with statement with extending record type and invalid assignment
  24825. MODULE Test;
  24826. TYPE Record = RECORD END; Type = RECORD (Record) END;
  24827. PROCEDURE Procedure (VAR value, check: Record);
  24828. BEGIN WITH value : Type DO value := check END;
  24829. END Procedure;
  24830. END Test.
  24831. negative: with statement with extended record type
  24832. MODULE Test;
  24833. TYPE Record = RECORD END; Type = Record;
  24834. PROCEDURE Procedure (VAR value: RECORD (Record) END);
  24835. BEGIN WITH value : Type DO END;
  24836. END Procedure;
  24837. END Test.
  24838. negative: with statement with incompatible record type
  24839. MODULE Test;
  24840. TYPE Type = RECORD END;
  24841. PROCEDURE Procedure (VAR value: RECORD END);
  24842. BEGIN WITH value : Type DO END;
  24843. END Procedure;
  24844. END Test.
  24845. negative: with statement with variable object value
  24846. MODULE Test;
  24847. VAR value: OBJECT END;
  24848. BEGIN WITH value : OBJECT END DO END;
  24849. END Test.
  24850. positive: with statement with same object type
  24851. MODULE Test;
  24852. TYPE Type = OBJECT VAR check: BOOLEAN END Type;
  24853. VAR value, check: Type;
  24854. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24855. END Test.
  24856. positive: with statement with nested object types
  24857. MODULE Test;
  24858. TYPE A = OBJECT VAR a: BOOLEAN END A;
  24859. TYPE B = OBJECT (A) VAR b: BOOLEAN END B;
  24860. TYPE C = OBJECT (B) VAR c: BOOLEAN END C;
  24861. VAR value: A;
  24862. BEGIN WITH value : B DO WITH value : C DO ASSERT (value.c) END; ASSERT (value.b) END; ASSERT (value.a);
  24863. END Test.
  24864. negative: with statement with invalid nested object types
  24865. MODULE Test;
  24866. TYPE A = OBJECT END A;
  24867. TYPE B = OBJECT (A) END B;
  24868. TYPE C = OBJECT (A) END C;
  24869. VAR value: A;
  24870. BEGIN WITH value : B DO WITH value : C DO END END;
  24871. END Test.
  24872. positive: with statement with extending object type
  24873. MODULE Test;
  24874. TYPE Object = OBJECT END Object; Type = OBJECT (Object) VAR check: BOOLEAN END Type;
  24875. VAR value: Object; check: Type;
  24876. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24877. END Test.
  24878. negative: with statement with extending object type and invalid assignment
  24879. MODULE Test;
  24880. TYPE Object = OBJECT END Object; Type = OBJECT (Object) END Type;
  24881. VAR value, check: Object;
  24882. BEGIN WITH value : Type DO value := check END;
  24883. END Test.
  24884. negative: with statement with extended object type
  24885. MODULE Test;
  24886. TYPE Object = OBJECT END Object; Type = Object;
  24887. VAR value: OBJECT (Object) END;
  24888. BEGIN WITH value : Type DO END;
  24889. END Test.
  24890. negative: with statement with incompatible object type
  24891. MODULE Test;
  24892. TYPE Type = OBJECT END Type;
  24893. VAR value: OBJECT END;
  24894. BEGIN WITH value : Type DO END;
  24895. END Test.
  24896. negative: with statement with variable base object value
  24897. MODULE Test;
  24898. VAR value: OBJECT;
  24899. BEGIN WITH value : OBJECT DO END;
  24900. END Test.
  24901. positive: with statement with same base object type
  24902. MODULE Test;
  24903. TYPE Type = OBJECT;
  24904. VAR value, check: Type;
  24905. BEGIN WITH value : Type DO check := value; value := check END;
  24906. END Test.
  24907. positive: with statement with nested base object types
  24908. MODULE Test;
  24909. TYPE A = OBJECT;
  24910. TYPE B = OBJECT (A) VAR b: BOOLEAN END B;
  24911. TYPE C = OBJECT (B) VAR c: BOOLEAN END C;
  24912. VAR value: A;
  24913. BEGIN WITH value : B DO WITH value : C DO ASSERT (value.c) END; ASSERT (value.b) END;
  24914. END Test.
  24915. negative: with statement with invalid nested base object types
  24916. MODULE Test;
  24917. TYPE A = OBJECT;
  24918. TYPE B = OBJECT (A) END B;
  24919. TYPE C = OBJECT (A) END C;
  24920. VAR value: A;
  24921. BEGIN WITH value : B DO WITH value : C DO END END;
  24922. END Test.
  24923. positive: with statement with extending base object type
  24924. MODULE Test;
  24925. TYPE Object = OBJECT; Type = OBJECT (Object) VAR check: BOOLEAN END Type;
  24926. VAR value: Object; check: Type;
  24927. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  24928. END Test.
  24929. negative: with statement with extending base object type and invalid assignment
  24930. MODULE Test;
  24931. TYPE Object = OBJECT; Type = OBJECT (Object) END Type;
  24932. VAR value, check: Object;
  24933. BEGIN WITH value : Type DO value := check END;
  24934. END Test.
  24935. negative: with statement with extended base object type
  24936. MODULE Test;
  24937. TYPE Object = OBJECT; Type = Object;
  24938. VAR value: OBJECT (Object) END;
  24939. BEGIN WITH value : Type DO END;
  24940. END Test.
  24941. negative: with statement with self and same object type
  24942. MODULE Test;
  24943. TYPE Object = OBJECT
  24944. BEGIN WITH SELF : Type DO END;
  24945. END Object;
  24946. TYPE Type = Object;
  24947. END Test.
  24948. negative: with statement with self and extending object type
  24949. MODULE Test;
  24950. TYPE Object = OBJECT
  24951. BEGIN WITH SELF : Type DO END;
  24952. END Object;
  24953. TYPE Type = OBJECT (Object) END Type;
  24954. END Test.
  24955. negative: with statement with self and extended object type
  24956. MODULE Test;
  24957. TYPE Object = OBJECT (Type)
  24958. BEGIN WITH SELF : Type DO END;
  24959. END Object;
  24960. TYPE Type = OBJECT END Type;
  24961. END Test.
  24962. positive: with statement with object variable and self assignment
  24963. MODULE Test;
  24964. TYPE Object = OBJECT
  24965. VAR value: Object;
  24966. BEGIN WITH value : Type DO ASSERT (value.check); value := value END;
  24967. END Object;
  24968. TYPE Type = OBJECT (Object) VAR check: BOOLEAN; END Type;
  24969. END Test.
  24970. positive: with statement with object variable and self assignment using self
  24971. MODULE Test;
  24972. TYPE Object = OBJECT
  24973. VAR value: Object;
  24974. BEGIN WITH value : Type DO ASSERT (value.check); value := SELF.value END;
  24975. END Object;
  24976. TYPE Type = OBJECT (Object) VAR check: BOOLEAN; END Type;
  24977. END Test.
  24978. negative: with statement with object variable and assignment using another object instance
  24979. MODULE Test;
  24980. TYPE Object = OBJECT
  24981. VAR value: Object;
  24982. BEGIN WITH value : Type DO ASSERT (value.check); value := value.value END;
  24983. END Object;
  24984. TYPE Type = OBJECT (Object) VAR check: BOOLEAN; END Type;
  24985. END Test.
  24986. negative: with statement with variable pointer to array value
  24987. MODULE Test;
  24988. VAR value: POINTER TO ARRAY 10 OF CHAR;
  24989. BEGIN WITH value : POINTER TO ARRAY 10 OF CHAR DO END;
  24990. END Test.
  24991. negative: with statement with variable pointer to array value type
  24992. MODULE Test;
  24993. TYPE Type = POINTER TO ARRAY 10 OF CHAR;
  24994. VAR value: Type;
  24995. BEGIN WITH value : Type DO END;
  24996. END Test.
  24997. negative: with statement with variable pointer to record value
  24998. MODULE Test;
  24999. VAR value: POINTER TO RECORD END;
  25000. BEGIN WITH value : POINTER TO RECORD END DO END;
  25001. END Test.
  25002. positive: with statement with same pointer to record type
  25003. MODULE Test;
  25004. TYPE Type = POINTER TO RECORD check: BOOLEAN END;
  25005. VAR value: Type; check: Type;
  25006. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  25007. END Test.
  25008. positive: with statement with nested pointer to record types
  25009. MODULE Test;
  25010. TYPE A = RECORD a: BOOLEAN END; PA = POINTER TO A;
  25011. TYPE B = RECORD (A) b: BOOLEAN END; PB = POINTER TO B;
  25012. TYPE C = RECORD (B) c: BOOLEAN END; PC = POINTER TO C;
  25013. VAR value: PA;
  25014. BEGIN WITH value : PB DO WITH value : PC DO ASSERT (value.c) END; ASSERT (value.b) END; ASSERT (value.a);
  25015. END Test.
  25016. negative: with statement with invalid nested pointer to record types
  25017. MODULE Test;
  25018. TYPE A = RECORD a: BOOLEAN END; PA = POINTER TO A;
  25019. TYPE B = RECORD (A) b: BOOLEAN END; PB = POINTER TO B;
  25020. TYPE C = RECORD (A) c: BOOLEAN END; PC = POINTER TO C;
  25021. VAR value: PA;
  25022. BEGIN WITH value : PB DO WITH value : PC DO END END;
  25023. END Test.
  25024. positive: with statement with extending pointer to record type
  25025. MODULE Test;
  25026. TYPE Record = RECORD END; Type = POINTER TO RECORD (Record) check: BOOLEAN END;
  25027. VAR value: POINTER TO Record; check: Type;
  25028. BEGIN WITH value : Type DO check := value; value := check; ASSERT (value.check) END;
  25029. END Test.
  25030. negative: with statement with extending pointer to record type and invalid assignment
  25031. MODULE Test;
  25032. TYPE Record = RECORD END; Type = POINTER TO RECORD (Record) END;
  25033. VAR value, check: POINTER TO Record;
  25034. BEGIN WITH value : Type DO value := check END;
  25035. END Test.
  25036. negative: with statement with extended pointer to record type
  25037. MODULE Test;
  25038. TYPE Record = RECORD END; Type = POINTER TO Record;
  25039. VAR value: POINTER TO RECORD (Record) END;
  25040. BEGIN WITH value : Type DO END;
  25041. END Test.
  25042. negative: with statement with incompatible pointer to record type
  25043. MODULE Test;
  25044. TYPE Type = POINTER TO RECORD END;
  25045. VAR value: POINTER TO RECORD END;
  25046. BEGIN WITH value : Type DO END;
  25047. END Test.
  25048. negative: with statement with variable procedure value
  25049. MODULE Test;
  25050. VAR value: PROCEDURE;
  25051. BEGIN WITH value : PROCEDURE DO END;
  25052. END Test.
  25053. negative: with statement with variable procedure value type
  25054. MODULE Test;
  25055. TYPE Type = PROCEDURE;
  25056. VAR value: Type;
  25057. BEGIN WITH value : Type DO END;
  25058. END Test.
  25059. # new statement
  25060. negative: new statement on constant boolean
  25061. MODULE Test;
  25062. CONST Constant = TRUE;
  25063. BEGIN NEW (Constant);
  25064. END Test.
  25065. negative: new statement on constant character
  25066. MODULE Test;
  25067. CONST Constant = 'a';
  25068. BEGIN NEW (Constant);
  25069. END Test.
  25070. negative: new statement on constant integer
  25071. MODULE Test;
  25072. CONST Constant = 42;
  25073. BEGIN NEW (Constant);
  25074. END Test.
  25075. negative: new statement on constant real
  25076. MODULE Test;
  25077. CONST Constant = 0.1;
  25078. BEGIN NEW (Constant);
  25079. END Test.
  25080. negative: new statement on constant set
  25081. MODULE Test;
  25082. CONST Constant = {};
  25083. BEGIN NEW (Constant);
  25084. END Test.
  25085. negative: new statement on constant string
  25086. MODULE Test;
  25087. CONST Constant = "string";
  25088. BEGIN NEW (Constant);
  25089. END Test.
  25090. negative: new statement on nil pointer
  25091. MODULE Test;
  25092. CONST Constant = NIL;
  25093. BEGIN NEW (Constant);
  25094. END Test.
  25095. negative: new statement on boolean
  25096. MODULE Test;
  25097. VAR boolean: BOOLEAN;
  25098. BEGIN NEW (boolean);
  25099. END Test.
  25100. negative: new statement on character
  25101. MODULE Test;
  25102. VAR character: CHAR;
  25103. BEGIN NEW (character);
  25104. END Test.
  25105. negative: new statement on integer
  25106. MODULE Test;
  25107. VAR integer: INTEGER;
  25108. BEGIN NEW (integer);
  25109. END Test.
  25110. negative: new statement on real
  25111. MODULE Test;
  25112. VAR real: REAL;
  25113. BEGIN NEW (real);
  25114. END Test.
  25115. negative: new statement on set
  25116. MODULE Test;
  25117. VAR set: SET;
  25118. BEGIN NEW (set);
  25119. END Test.
  25120. negative: new statement on array
  25121. MODULE Test;
  25122. VAR array: ARRAY 10 OF CHAR;
  25123. BEGIN NEW (array);
  25124. END Test.
  25125. negative: new statement on record
  25126. MODULE Test;
  25127. VAR record: RECORD END;
  25128. BEGIN NEW (record);
  25129. END Test.
  25130. positive: new statement on object parameter
  25131. MODULE Test;
  25132. PROCEDURE Procedure (object: OBJECT END);
  25133. BEGIN NEW (object);
  25134. END Procedure;
  25135. END Test.
  25136. positive: new statement on variable object parameter
  25137. MODULE Test;
  25138. PROCEDURE Procedure (VAR object: OBJECT END);
  25139. BEGIN NEW (object);
  25140. END Procedure;
  25141. END Test.
  25142. negative: new statement on constant object parameter
  25143. MODULE Test;
  25144. PROCEDURE Procedure (CONST object: OBJECT END);
  25145. BEGIN NEW (object);
  25146. END Procedure;
  25147. END Test.
  25148. negative: new statement on self
  25149. MODULE Test;
  25150. TYPE Object = OBJECT
  25151. BEGIN NEW (SELF);
  25152. END Object;
  25153. END Test.
  25154. positive: new statement on object without initializer
  25155. MODULE Test;
  25156. VAR object: OBJECT END;
  25157. BEGIN NEW (object);
  25158. END Test.
  25159. negative: new statement on object without initializer and one argument
  25160. MODULE Test;
  25161. VAR object: OBJECT END;
  25162. BEGIN NEW (object, 5);
  25163. END Test.
  25164. positive: new statement on object with simple initializer
  25165. MODULE Test;
  25166. TYPE Object = OBJECT
  25167. PROCEDURE &Initializer; END Initializer;
  25168. END Object;
  25169. VAR object: Object;
  25170. BEGIN NEW (object);
  25171. END Test.
  25172. negative: new statement on object with simple initializer and one argument
  25173. MODULE Test;
  25174. TYPE Object = OBJECT
  25175. PROCEDURE &Initializer; END Initializer;
  25176. END Object;
  25177. VAR object: Object;
  25178. BEGIN NEW (object, 5);
  25179. END Test.
  25180. negative: new statement on object with complex initializer and no argument
  25181. MODULE Test;
  25182. TYPE Object = OBJECT
  25183. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25184. END Object;
  25185. VAR object: Object;
  25186. BEGIN NEW (object);
  25187. END Test.
  25188. positive: new statement on object with complex initializer and one argument
  25189. MODULE Test;
  25190. TYPE Object = OBJECT
  25191. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25192. END Object;
  25193. VAR object: Object;
  25194. BEGIN NEW (object, 5);
  25195. END Test.
  25196. positive: new statement on object with complex initializer and matching arguments
  25197. MODULE Test;
  25198. TYPE Object = OBJECT
  25199. PROCEDURE &Initializer (i, j: INTEGER; b: BOOLEAN); END Initializer;
  25200. END Object;
  25201. VAR object: Object;
  25202. BEGIN NEW (object, 5, 6, TRUE);
  25203. END Test.
  25204. negative: new statement on object with complex initializer and incompatible arguments
  25205. MODULE Test;
  25206. TYPE Object = OBJECT
  25207. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25208. END Object;
  25209. VAR object: Object;
  25210. BEGIN NEW (object, TRUE);
  25211. END Test.
  25212. positive: new statement on object with simple inherited initializer
  25213. MODULE Test;
  25214. TYPE Base = OBJECT
  25215. PROCEDURE &Initializer; END Initializer;
  25216. END Base;
  25217. VAR object: OBJECT (Base) END;
  25218. BEGIN NEW (object);
  25219. END Test.
  25220. negative: new statement on object with simple inherited initializer and one argument
  25221. MODULE Test;
  25222. TYPE Base = OBJECT
  25223. PROCEDURE &Initializer; END Initializer;
  25224. END Base;
  25225. VAR object: OBJECT (Base) END;
  25226. BEGIN NEW (object, 5);
  25227. END Test.
  25228. negative: new statement on object with complex inherited initializer and no argument
  25229. MODULE Test;
  25230. TYPE Base = OBJECT
  25231. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25232. END Base;
  25233. VAR object: OBJECT (Base) END;
  25234. BEGIN NEW (object);
  25235. END Test.
  25236. positive: new statement on object with complex inherited initializer and one argument
  25237. MODULE Test;
  25238. TYPE Base = OBJECT
  25239. PROCEDURE &Initializer (i: INTEGER); END Initializer;
  25240. END Base;
  25241. VAR object: OBJECT (Base) END;
  25242. BEGIN NEW (object, 5);
  25243. END Test.
  25244. positive: new statement on object with complex inherited initializer and matching arguments
  25245. MODULE Test;
  25246. TYPE Base = OBJECT
  25247. PROCEDURE &Initializer(i, j: INTEGER; b: BOOLEAN); END Initializer;
  25248. END Base;
  25249. VAR object: OBJECT (Base) END;
  25250. BEGIN NEW (object, 5, 6, TRUE);
  25251. END Test.
  25252. positive: new statement on object with simple overridden initializer
  25253. MODULE Test;
  25254. TYPE Base = OBJECT
  25255. PROCEDURE &InitBase (i: INTEGER); END InitBase;
  25256. END Base;
  25257. TYPE Object = OBJECT (Base)
  25258. PROCEDURE &InitObject; BEGIN InitBase (5) END InitObject;
  25259. END Object;
  25260. VAR object: Object;
  25261. BEGIN NEW (object);
  25262. END Test.
  25263. negative: new statement on object with simple overridden initializer and one argument
  25264. MODULE Test;
  25265. TYPE Base = OBJECT
  25266. PROCEDURE &InitBase (i: INTEGER); END InitBase;
  25267. END Base;
  25268. TYPE Object = OBJECT (Base)
  25269. PROCEDURE &InitObject; END InitObject;
  25270. END Object;
  25271. VAR object: Object;
  25272. BEGIN NEW (object, 5);
  25273. END Test.
  25274. negative: new statement on object with complex overridden initializer and no argument
  25275. MODULE Test;
  25276. TYPE Base = OBJECT
  25277. PROCEDURE &InitBase; END InitBase;
  25278. END Base;
  25279. TYPE Object = OBJECT (Base)
  25280. PROCEDURE &InitObject (i: INTEGER); END InitObject;
  25281. END Object;
  25282. VAR object: Object;
  25283. BEGIN NEW (object);
  25284. END Test.
  25285. positive: new statement on object with complex overridden initializer and one argument
  25286. MODULE Test;
  25287. TYPE Base = OBJECT
  25288. PROCEDURE &InitBase; END InitBase;
  25289. END Base;
  25290. TYPE Object = OBJECT (Base)
  25291. PROCEDURE &InitObject (i: INTEGER); BEGIN InitBase END InitObject;
  25292. END Object;
  25293. VAR object: Object;
  25294. BEGIN NEW (object, 5);
  25295. END Test.
  25296. positive: new statement on object with complex overridden initializer and matching arguments
  25297. MODULE Test;
  25298. TYPE Base = OBJECT
  25299. PROCEDURE &InitBase (r: REAL; s: SET); END InitBase;
  25300. END Base;
  25301. TYPE Object = OBJECT (Base)
  25302. PROCEDURE &InitObject (i, j: INTEGER; b: BOOLEAN); BEGIN InitBase (0, {}) END InitObject;
  25303. END Object;
  25304. VAR object: Object;
  25305. BEGIN NEW (object, 5, 6, TRUE);
  25306. END Test.
  25307. positive: new statement on pointer to array with no dimension
  25308. MODULE Test;
  25309. VAR array: POINTER TO ARRAY 10 OF CHAR;
  25310. BEGIN NEW (array);
  25311. END Test.
  25312. positive: new statement on pointer to array parameter
  25313. MODULE Test;
  25314. PROCEDURE Procedure (array: POINTER TO ARRAY 10 OF CHAR);
  25315. BEGIN NEW (array);
  25316. END Procedure;
  25317. END Test.
  25318. positive: new statement on variable pointer to array parameter
  25319. MODULE Test;
  25320. PROCEDURE Procedure (VAR array: POINTER TO ARRAY 10 OF CHAR);
  25321. BEGIN NEW (array);
  25322. END Procedure;
  25323. END Test.
  25324. negative: new statement on constant pointer to array parameter
  25325. MODULE Test;
  25326. PROCEDURE Procedure (CONST array: POINTER TO ARRAY 10 OF CHAR);
  25327. BEGIN NEW (array);
  25328. END Procedure;
  25329. END Test.
  25330. negative: new statement on pointer to open array with no dimension
  25331. MODULE Test;
  25332. VAR array: POINTER TO ARRAY OF CHAR;
  25333. BEGIN NEW (array);
  25334. END Test.
  25335. positive: new statement on pointer to open array with one dimension
  25336. MODULE Test;
  25337. VAR array: POINTER TO ARRAY OF CHAR;
  25338. BEGIN NEW (array, 5);
  25339. END Test.
  25340. negative: new statement on pointer to open array with incompatible dimension
  25341. MODULE Test;
  25342. VAR array: POINTER TO ARRAY OF CHAR;
  25343. BEGIN NEW (array, 10X);
  25344. END Test.
  25345. negative: new statement on pointer to open array with negative dimension
  25346. MODULE Test;
  25347. VAR array: POINTER TO ARRAY OF CHAR;
  25348. BEGIN NEW (array, -5);
  25349. END Test.
  25350. positive: new statement on pointer to open array with zero dimension
  25351. MODULE Test;
  25352. VAR array: POINTER TO ARRAY OF CHAR;
  25353. BEGIN NEW (array, 0);
  25354. END Test.
  25355. negative: new statement on pointer to twice open array with no dimension
  25356. MODULE Test;
  25357. VAR array: POINTER TO ARRAY OF ARRAY 10 OF ARRAY OF CHAR;
  25358. BEGIN NEW (array);
  25359. END Test.
  25360. negative: new statement on pointer to twice open array with one dimension
  25361. MODULE Test;
  25362. VAR array: POINTER TO ARRAY OF ARRAY 10 OF ARRAY OF CHAR;
  25363. BEGIN NEW (array, 5);
  25364. END Test.
  25365. positive: new statement on pointer to twice open array with two dimensions
  25366. MODULE Test;
  25367. VAR array: POINTER TO ARRAY OF ARRAY OF ARRAY 10 OF CHAR;
  25368. BEGIN NEW (array, 5, 10);
  25369. END Test.
  25370. positive: new statement on pointer to record
  25371. MODULE Test;
  25372. VAR record: POINTER TO RECORD END;
  25373. BEGIN NEW (record);
  25374. END Test.
  25375. positive: new statement on pointer to record parameter
  25376. MODULE Test;
  25377. PROCEDURE Procedure (record: POINTER TO RECORD END);
  25378. BEGIN NEW (record);
  25379. END Procedure;
  25380. END Test.
  25381. positive: new statement on variable pointer to record parameter
  25382. MODULE Test;
  25383. PROCEDURE Procedure (VAR record: POINTER TO RECORD END);
  25384. BEGIN NEW (record);
  25385. END Procedure;
  25386. END Test.
  25387. negative: new statement on constant pointer to record parameter
  25388. MODULE Test;
  25389. PROCEDURE Procedure (CONST record: POINTER TO RECORD END);
  25390. BEGIN NEW (record);
  25391. END Procedure;
  25392. END Test.
  25393. negative: new statement on pointer to record with argument
  25394. MODULE Test;
  25395. VAR record: POINTER TO RECORD END;
  25396. BEGIN NEW (record, 1);
  25397. END Test.
  25398. negative: new statement on pointer to record with arguments
  25399. MODULE Test;
  25400. VAR record: POINTER TO RECORD END;
  25401. BEGIN NEW (record, 1, 2);
  25402. END Test.
  25403. negative: new statement on procedure
  25404. MODULE Test;
  25405. VAR procedure: PROCEDURE;
  25406. BEGIN NEW (procedure);
  25407. END Test.
  25408. # increment statement
  25409. negative: increment statement on constant boolean
  25410. MODULE Test;
  25411. CONST Constant = TRUE;
  25412. BEGIN INC (Constant);
  25413. END Test.
  25414. negative: increment statement on constant character
  25415. MODULE Test;
  25416. CONST Constant = 'a';
  25417. BEGIN INC (Constant);
  25418. END Test.
  25419. negative: increment statement on constant integer
  25420. MODULE Test;
  25421. CONST Constant = 42;
  25422. BEGIN INC (Constant);
  25423. END Test.
  25424. negative: increment statement on constant real
  25425. MODULE Test;
  25426. CONST Constant = 0.1;
  25427. BEGIN INC (Constant);
  25428. END Test.
  25429. negative: increment statement on constant set
  25430. MODULE Test;
  25431. CONST Constant = {};
  25432. BEGIN INC (Constant);
  25433. END Test.
  25434. negative: increment statement on constant string
  25435. MODULE Test;
  25436. CONST Constant = "string";
  25437. BEGIN INC (Constant);
  25438. END Test.
  25439. negative: increment statement on nil pointer
  25440. MODULE Test;
  25441. CONST Constant = NIL;
  25442. BEGIN INC (Constant);
  25443. END Test.
  25444. negative: increment statement on boolean
  25445. MODULE Test;
  25446. VAR boolean: BOOLEAN;
  25447. BEGIN INC (boolean);
  25448. END Test.
  25449. negative: increment statement on character
  25450. MODULE Test;
  25451. VAR character: CHAR;
  25452. BEGIN INC (character);
  25453. END Test.
  25454. positive: increment statement on short integer
  25455. MODULE Test;
  25456. VAR integer: SHORTINT;
  25457. BEGIN INC (integer);
  25458. END Test.
  25459. positive: increment statement on integer
  25460. MODULE Test;
  25461. VAR integer: INTEGER;
  25462. BEGIN INC (integer);
  25463. END Test.
  25464. positive: increment statement on long integer
  25465. MODULE Test;
  25466. VAR integer: LONGINT;
  25467. BEGIN INC (integer);
  25468. END Test.
  25469. positive: increment statement on huge integer
  25470. MODULE Test;
  25471. VAR integer: HUGEINT;
  25472. BEGIN INC (integer);
  25473. END Test.
  25474. positive: increment statement on integer parameter
  25475. MODULE Test;
  25476. PROCEDURE Procedure (integer: INTEGER);
  25477. BEGIN INC (integer);
  25478. END Procedure;
  25479. END Test.
  25480. positive: increment statement on variable integer parameter
  25481. MODULE Test;
  25482. PROCEDURE Procedure (VAR integer: INTEGER);
  25483. BEGIN INC (integer);
  25484. END Procedure;
  25485. END Test.
  25486. negative: increment statement on constant integer parameter
  25487. MODULE Test;
  25488. PROCEDURE Procedure (CONST integer: INTEGER);
  25489. BEGIN INC (integer);
  25490. END Procedure;
  25491. END Test.
  25492. negative: increment statement on real
  25493. MODULE Test;
  25494. VAR real: REAL;
  25495. BEGIN INC (real);
  25496. END Test.
  25497. negative: increment statement on set
  25498. MODULE Test;
  25499. VAR set: SET;
  25500. BEGIN INC (set);
  25501. END Test.
  25502. negative: increment statement on array
  25503. MODULE Test;
  25504. VAR array: ARRAY 10 OF CHAR;
  25505. BEGIN INC (array);
  25506. END Test.
  25507. negative: increment statement on record
  25508. MODULE Test;
  25509. VAR record: RECORD END;
  25510. BEGIN INC (record);
  25511. END Test.
  25512. negative: increment statement on object
  25513. MODULE Test;
  25514. VAR object: OBJECT END;
  25515. BEGIN INC (object);
  25516. END Test.
  25517. negative: increment statement on pointer to array
  25518. MODULE Test;
  25519. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  25520. BEGIN INC (pointer);
  25521. END Test.
  25522. negative: increment statement on pointer to record
  25523. MODULE Test;
  25524. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  25525. BEGIN INC (pointer);
  25526. END Test.
  25527. negative: increment statement on procedure
  25528. MODULE Test;
  25529. VAR procedure: PROCEDURE;
  25530. BEGIN INC (procedure);
  25531. END Test.
  25532. negative: increment statement with constant boolean as increment
  25533. MODULE Test;
  25534. CONST Constant = TRUE;
  25535. VAR integer: INTEGER;
  25536. BEGIN INC (integer, Constant);
  25537. END Test.
  25538. negative: increment statement with constant character as increment
  25539. MODULE Test;
  25540. CONST Constant = 'a';
  25541. VAR integer: INTEGER;
  25542. BEGIN INC (integer, Constant);
  25543. END Test.
  25544. positive: increment statement with constant integer as increment
  25545. MODULE Test;
  25546. CONST Constant = 42;
  25547. VAR integer: INTEGER;
  25548. BEGIN INC (integer, Constant);
  25549. END Test.
  25550. positive: increment statement with constant negative integer as increment
  25551. MODULE Test;
  25552. VAR integer: INTEGER;
  25553. BEGIN INC (integer, -5);
  25554. END Test.
  25555. positive: increment statement with zero as increment
  25556. MODULE Test;
  25557. VAR integer: INTEGER;
  25558. BEGIN INC (integer, 0);
  25559. END Test.
  25560. positive: increment statement with constant positive integer as increment
  25561. MODULE Test;
  25562. VAR integer: INTEGER;
  25563. BEGIN INC (integer, 5);
  25564. END Test.
  25565. negative: increment statement with constant real as increment
  25566. MODULE Test;
  25567. CONST Constant = 0.1;
  25568. VAR integer: INTEGER;
  25569. BEGIN INC (integer, Constant);
  25570. END Test.
  25571. negative: increment statement with constant set as increment
  25572. MODULE Test;
  25573. CONST Constant = {};
  25574. VAR integer: INTEGER;
  25575. BEGIN INC (integer, Constant);
  25576. END Test.
  25577. negative: increment statement with constant string as increment
  25578. MODULE Test;
  25579. CONST Constant = "string";
  25580. VAR integer: INTEGER;
  25581. BEGIN INC (integer, Constant);
  25582. END Test.
  25583. negative: increment statement with nil pointer as increment
  25584. MODULE Test;
  25585. CONST Constant = NIL;
  25586. VAR integer: INTEGER;
  25587. BEGIN INC (integer, Constant);
  25588. END Test.
  25589. negative: increment statement with boolean as increment
  25590. MODULE Test;
  25591. VAR integer: INTEGER; increment: BOOLEAN;
  25592. BEGIN INC (integer, increment);
  25593. END Test.
  25594. negative: increment statement with character as increment
  25595. MODULE Test;
  25596. VAR integer: INTEGER; increment: CHAR;
  25597. BEGIN INC (integer, increment);
  25598. END Test.
  25599. positive: increment statement on short integer with short integer as increment
  25600. MODULE Test;
  25601. VAR integer, increment: SHORTINT;
  25602. BEGIN INC (integer, increment);
  25603. END Test.
  25604. negative: increment statement on short integer with integer as increment
  25605. MODULE Test;
  25606. VAR integer: SHORTINT; increment: INTEGER;
  25607. BEGIN INC (integer, increment);
  25608. END Test.
  25609. negative: increment statement on short integer with long integer as increment
  25610. MODULE Test;
  25611. VAR integer: SHORTINT; increment: LONGINT;
  25612. BEGIN INC (integer, increment);
  25613. END Test.
  25614. negative: increment statement on short integer with huge integer as increment
  25615. MODULE Test;
  25616. VAR integer: SHORTINT; increment: HUGEINT;
  25617. BEGIN INC (integer, increment);
  25618. END Test.
  25619. positive: increment statement on integer with short integer as increment
  25620. MODULE Test;
  25621. VAR integer: INTEGER; increment: SHORTINT;
  25622. BEGIN INC (integer, increment);
  25623. END Test.
  25624. positive: increment statement on integer with integer as increment
  25625. MODULE Test;
  25626. VAR integer, increment: INTEGER;
  25627. BEGIN INC (integer, increment);
  25628. END Test.
  25629. negative: increment statement on integer with long integer as increment
  25630. MODULE Test;
  25631. VAR integer: INTEGER; increment: LONGINT;
  25632. BEGIN INC (integer, increment);
  25633. END Test.
  25634. negative: increment statement on integer with huge integer as increment
  25635. MODULE Test;
  25636. VAR integer: INTEGER; increment: HUGEINT;
  25637. BEGIN INC (integer, increment);
  25638. END Test.
  25639. positive: increment statement on long integer with short integer as increment
  25640. MODULE Test;
  25641. VAR integer: LONGINT; increment: SHORTINT;
  25642. BEGIN INC (integer, increment);
  25643. END Test.
  25644. positive: increment statement on long integer with integer as increment
  25645. MODULE Test;
  25646. VAR integer: LONGINT; increment: INTEGER;
  25647. BEGIN INC (integer, increment);
  25648. END Test.
  25649. positive: increment statement on long integer with long integer as increment
  25650. MODULE Test;
  25651. VAR integer, increment: LONGINT;
  25652. BEGIN INC (integer, increment);
  25653. END Test.
  25654. negative: increment statement on long integer with huge integer as increment
  25655. MODULE Test;
  25656. VAR integer: LONGINT; increment: HUGEINT;
  25657. BEGIN INC (integer, increment);
  25658. END Test.
  25659. positive: increment statement on huge integer with short integer as increment
  25660. MODULE Test;
  25661. VAR integer: HUGEINT; increment: SHORTINT;
  25662. BEGIN INC (integer, increment);
  25663. END Test.
  25664. positive: increment statement on huge integer with integer as increment
  25665. MODULE Test;
  25666. VAR integer: HUGEINT; increment: INTEGER;
  25667. BEGIN INC (integer, increment);
  25668. END Test.
  25669. positive: increment statement on huge integer with long integer as increment
  25670. MODULE Test;
  25671. VAR integer: HUGEINT; increment: LONGINT;
  25672. BEGIN INC (integer, increment);
  25673. END Test.
  25674. positive: increment statement on huge integer with huge integer as increment
  25675. MODULE Test;
  25676. VAR integer, increment: HUGEINT;
  25677. BEGIN INC (integer, increment);
  25678. END Test.
  25679. positive: increment statement with integer parameter as increment
  25680. MODULE Test;
  25681. PROCEDURE Procedure (increment: INTEGER);
  25682. VAR integer: INTEGER;
  25683. BEGIN INC (integer, increment);
  25684. END Procedure;
  25685. END Test.
  25686. positive: increment statement with variable integer parameter as increment
  25687. MODULE Test;
  25688. PROCEDURE Procedure (VAR increment: INTEGER);
  25689. VAR integer: INTEGER;
  25690. BEGIN INC (integer, increment);
  25691. END Procedure;
  25692. END Test.
  25693. positive: increment statement with constant integer parameter as increment
  25694. MODULE Test;
  25695. PROCEDURE Procedure (CONST increment: INTEGER);
  25696. VAR integer: INTEGER;
  25697. BEGIN INC (integer, increment);
  25698. END Procedure;
  25699. END Test.
  25700. negative: increment statement with real as increment
  25701. MODULE Test;
  25702. VAR integer: INTEGER; increment: REAL;
  25703. BEGIN INC (integer, increment);
  25704. END Test.
  25705. negative: increment statement with set as increment
  25706. MODULE Test;
  25707. VAR integer: INTEGER; increment: SET;
  25708. BEGIN INC (integer, increment);
  25709. END Test.
  25710. negative: increment statement with array as increment
  25711. MODULE Test;
  25712. VAR integer: INTEGER; increment: ARRAY 10 OF CHAR;
  25713. BEGIN INC (integer, increment);
  25714. END Test.
  25715. negative: increment statement with record as increment
  25716. MODULE Test;
  25717. VAR integer: INTEGER; increment: RECORD END;
  25718. BEGIN INC (integer, increment);
  25719. END Test.
  25720. negative: increment statement with object as increment
  25721. MODULE Test;
  25722. VAR integer: INTEGER; increment: OBJECT END;
  25723. BEGIN INC (integer, increment);
  25724. END Test.
  25725. negative: increment statement with pointer to array as increment
  25726. MODULE Test;
  25727. VAR integer: INTEGER; increment: POINTER TO ARRAY 10 OF CHAR;
  25728. BEGIN INC (integer, increment);
  25729. END Test.
  25730. negative: increment statement with pointer to record as increment
  25731. MODULE Test;
  25732. VAR integer: INTEGER; increment: POINTER TO ARRAY 10 OF CHAR;
  25733. BEGIN INC (integer, increment);
  25734. END Test.
  25735. negative: increment statement with procedure as increment
  25736. MODULE Test;
  25737. VAR integer: INTEGER; increment: PROCEDURE;
  25738. BEGIN INC (integer, increment);
  25739. END Test.
  25740. # decrement statement
  25741. negative: decrement statement on constant boolean
  25742. MODULE Test;
  25743. CONST Constant = TRUE;
  25744. BEGIN DEC (Constant);
  25745. END Test.
  25746. negative: decrement statement on constant character
  25747. MODULE Test;
  25748. CONST Constant = 'a';
  25749. BEGIN DEC (Constant);
  25750. END Test.
  25751. negative: decrement statement on constant integer
  25752. MODULE Test;
  25753. CONST Constant = 42;
  25754. BEGIN DEC (Constant);
  25755. END Test.
  25756. negative: decrement statement on constant real
  25757. MODULE Test;
  25758. CONST Constant = 0.1;
  25759. BEGIN DEC (Constant);
  25760. END Test.
  25761. negative: decrement statement on constant set
  25762. MODULE Test;
  25763. CONST Constant = {};
  25764. BEGIN DEC (Constant);
  25765. END Test.
  25766. negative: decrement statement on constant string
  25767. MODULE Test;
  25768. CONST Constant = "string";
  25769. BEGIN DEC (Constant);
  25770. END Test.
  25771. negative: decrement statement on nil pointer
  25772. MODULE Test;
  25773. CONST Constant = NIL;
  25774. BEGIN DEC (Constant);
  25775. END Test.
  25776. negative: decrement statement on boolean
  25777. MODULE Test;
  25778. VAR boolean: BOOLEAN;
  25779. BEGIN DEC (boolean);
  25780. END Test.
  25781. negative: decrement statement on character
  25782. MODULE Test;
  25783. VAR character: CHAR;
  25784. BEGIN DEC (character);
  25785. END Test.
  25786. positive: decrement statement on short integer
  25787. MODULE Test;
  25788. VAR integer: SHORTINT;
  25789. BEGIN DEC (integer);
  25790. END Test.
  25791. positive: decrement statement on integer
  25792. MODULE Test;
  25793. VAR integer: INTEGER;
  25794. BEGIN DEC (integer);
  25795. END Test.
  25796. positive: decrement statement on long integer
  25797. MODULE Test;
  25798. VAR integer: LONGINT;
  25799. BEGIN DEC (integer);
  25800. END Test.
  25801. positive: decrement statement on huge integer
  25802. MODULE Test;
  25803. VAR integer: HUGEINT;
  25804. BEGIN DEC (integer);
  25805. END Test.
  25806. positive: decrement statement on integer parameter
  25807. MODULE Test;
  25808. PROCEDURE Procedure (integer: INTEGER);
  25809. BEGIN DEC (integer);
  25810. END Procedure;
  25811. END Test.
  25812. positive: decrement statement on variable integer parameter
  25813. MODULE Test;
  25814. PROCEDURE Procedure (VAR integer: INTEGER);
  25815. BEGIN DEC (integer);
  25816. END Procedure;
  25817. END Test.
  25818. negative: decrement statement on constant integer parameter
  25819. MODULE Test;
  25820. PROCEDURE Procedure (CONST integer: INTEGER);
  25821. BEGIN DEC (integer);
  25822. END Procedure;
  25823. END Test.
  25824. negative: decrement statement on real
  25825. MODULE Test;
  25826. VAR real: REAL;
  25827. BEGIN DEC (real);
  25828. END Test.
  25829. negative: decrement statement on set
  25830. MODULE Test;
  25831. VAR set: SET;
  25832. BEGIN DEC (set);
  25833. END Test.
  25834. negative: decrement statement on array
  25835. MODULE Test;
  25836. VAR array: ARRAY 10 OF CHAR;
  25837. BEGIN DEC (array);
  25838. END Test.
  25839. negative: decrement statement on record
  25840. MODULE Test;
  25841. VAR record: RECORD END;
  25842. BEGIN DEC (record);
  25843. END Test.
  25844. negative: decrement statement on object
  25845. MODULE Test;
  25846. VAR object: OBJECT END;
  25847. BEGIN DEC (object);
  25848. END Test.
  25849. negative: decrement statement on pointer to array
  25850. MODULE Test;
  25851. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  25852. BEGIN DEC (pointer);
  25853. END Test.
  25854. negative: decrement statement on pointer to record
  25855. MODULE Test;
  25856. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  25857. BEGIN DEC (pointer);
  25858. END Test.
  25859. negative: decrement statement on procedure
  25860. MODULE Test;
  25861. VAR procedure: PROCEDURE;
  25862. BEGIN DEC (procedure);
  25863. END Test.
  25864. negative: decrement statement with constant boolean as increment
  25865. MODULE Test;
  25866. CONST Constant = TRUE;
  25867. VAR integer: INTEGER;
  25868. BEGIN DEC (integer, Constant);
  25869. END Test.
  25870. negative: decrement statement with constant character as increment
  25871. MODULE Test;
  25872. CONST Constant = 'a';
  25873. VAR integer: INTEGER;
  25874. BEGIN DEC (integer, Constant);
  25875. END Test.
  25876. positive: decrement statement with constant integer as increment
  25877. MODULE Test;
  25878. CONST Constant = 42;
  25879. VAR integer: INTEGER;
  25880. BEGIN DEC (integer, Constant);
  25881. END Test.
  25882. positive: decrement statement with constant negative integer as increment
  25883. MODULE Test;
  25884. VAR integer: INTEGER;
  25885. BEGIN DEC (integer, -5);
  25886. END Test.
  25887. positive: decrement statement with zero as increment
  25888. MODULE Test;
  25889. VAR integer: INTEGER;
  25890. BEGIN DEC (integer, 0);
  25891. END Test.
  25892. positive: decrement statement with constant positive integer as increment
  25893. MODULE Test;
  25894. VAR integer: INTEGER;
  25895. BEGIN DEC (integer, 5);
  25896. END Test.
  25897. negative: decrement statement with constant real as increment
  25898. MODULE Test;
  25899. CONST Constant = 0.1;
  25900. VAR integer: INTEGER;
  25901. BEGIN DEC (integer, Constant);
  25902. END Test.
  25903. negative: decrement statement with constant set as increment
  25904. MODULE Test;
  25905. CONST Constant = {};
  25906. VAR integer: INTEGER;
  25907. BEGIN DEC (integer, Constant);
  25908. END Test.
  25909. negative: decrement statement with constant string as increment
  25910. MODULE Test;
  25911. CONST Constant = "string";
  25912. VAR integer: INTEGER;
  25913. BEGIN DEC (integer, Constant);
  25914. END Test.
  25915. negative: decrement statement with nil pointer as increment
  25916. MODULE Test;
  25917. CONST Constant = NIL;
  25918. VAR integer: INTEGER;
  25919. BEGIN DEC (integer, Constant);
  25920. END Test.
  25921. negative: decrement statement with boolean as increment
  25922. MODULE Test;
  25923. VAR integer: INTEGER; increment: BOOLEAN;
  25924. BEGIN DEC (integer, increment);
  25925. END Test.
  25926. negative: decrement statement with character as increment
  25927. MODULE Test;
  25928. VAR integer: INTEGER; increment: CHAR;
  25929. BEGIN DEC (integer, increment);
  25930. END Test.
  25931. positive: decrement statement on short integer with short integer as increment
  25932. MODULE Test;
  25933. VAR integer, increment: SHORTINT;
  25934. BEGIN DEC (integer, increment);
  25935. END Test.
  25936. negative: decrement statement on short integer with integer as increment
  25937. MODULE Test;
  25938. VAR integer: SHORTINT; increment: INTEGER;
  25939. BEGIN DEC (integer, increment);
  25940. END Test.
  25941. negative: decrement statement on short integer with long integer as increment
  25942. MODULE Test;
  25943. VAR integer: SHORTINT; increment: LONGINT;
  25944. BEGIN DEC (integer, increment);
  25945. END Test.
  25946. negative: decrement statement on short integer with huge integer as increment
  25947. MODULE Test;
  25948. VAR integer: SHORTINT; increment: HUGEINT;
  25949. BEGIN DEC (integer, increment);
  25950. END Test.
  25951. positive: decrement statement on integer with short integer as increment
  25952. MODULE Test;
  25953. VAR integer: INTEGER; increment: SHORTINT;
  25954. BEGIN DEC (integer, increment);
  25955. END Test.
  25956. positive: decrement statement on integer with integer as increment
  25957. MODULE Test;
  25958. VAR integer, increment: INTEGER;
  25959. BEGIN DEC (integer, increment);
  25960. END Test.
  25961. negative: decrement statement on integer with long integer as increment
  25962. MODULE Test;
  25963. VAR integer: INTEGER; increment: LONGINT;
  25964. BEGIN DEC (integer, increment);
  25965. END Test.
  25966. negative: decrement statement on integer with huge integer as increment
  25967. MODULE Test;
  25968. VAR integer: INTEGER; increment: HUGEINT;
  25969. BEGIN DEC (integer, increment);
  25970. END Test.
  25971. positive: decrement statement on long integer with short integer as increment
  25972. MODULE Test;
  25973. VAR integer: LONGINT; increment: SHORTINT;
  25974. BEGIN DEC (integer, increment);
  25975. END Test.
  25976. positive: decrement statement on long integer with integer as increment
  25977. MODULE Test;
  25978. VAR integer: LONGINT; increment: INTEGER;
  25979. BEGIN DEC (integer, increment);
  25980. END Test.
  25981. positive: decrement statement on long integer with long integer as increment
  25982. MODULE Test;
  25983. VAR integer, increment: LONGINT;
  25984. BEGIN DEC (integer, increment);
  25985. END Test.
  25986. negative: decrement statement on long integer with huge integer as increment
  25987. MODULE Test;
  25988. VAR integer: LONGINT; increment: HUGEINT;
  25989. BEGIN DEC (integer, increment);
  25990. END Test.
  25991. positive: decrement statement on huge integer with short integer as increment
  25992. MODULE Test;
  25993. VAR integer: HUGEINT; increment: SHORTINT;
  25994. BEGIN DEC (integer, increment);
  25995. END Test.
  25996. positive: decrement statement on huge integer with integer as increment
  25997. MODULE Test;
  25998. VAR integer: HUGEINT; increment: INTEGER;
  25999. BEGIN DEC (integer, increment);
  26000. END Test.
  26001. positive: decrement statement on huge integer with long integer as increment
  26002. MODULE Test;
  26003. VAR integer: HUGEINT; increment: LONGINT;
  26004. BEGIN DEC (integer, increment);
  26005. END Test.
  26006. positive: decrement statement on huge integer with huge integer as increment
  26007. MODULE Test;
  26008. VAR integer, increment: HUGEINT;
  26009. BEGIN DEC (integer, increment);
  26010. END Test.
  26011. positive: decrement statement with integer parameter as increment
  26012. MODULE Test;
  26013. PROCEDURE Procedure (increment: INTEGER);
  26014. VAR integer: INTEGER;
  26015. BEGIN DEC (integer, increment);
  26016. END Procedure;
  26017. END Test.
  26018. positive: decrement statement with variable integer parameter as increment
  26019. MODULE Test;
  26020. PROCEDURE Procedure (VAR increment: INTEGER);
  26021. VAR integer: INTEGER;
  26022. BEGIN DEC (integer, increment);
  26023. END Procedure;
  26024. END Test.
  26025. positive: decrement statement with constant integer parameter as increment
  26026. MODULE Test;
  26027. PROCEDURE Procedure (CONST increment: INTEGER);
  26028. VAR integer: INTEGER;
  26029. BEGIN DEC (integer, increment);
  26030. END Procedure;
  26031. END Test.
  26032. negative: decrement statement with real as increment
  26033. MODULE Test;
  26034. VAR integer: INTEGER; increment: REAL;
  26035. BEGIN DEC (integer, increment);
  26036. END Test.
  26037. negative: decrement statement with set as increment
  26038. MODULE Test;
  26039. VAR integer: INTEGER; increment: SET;
  26040. BEGIN DEC (integer, increment);
  26041. END Test.
  26042. negative: decrement statement with array as increment
  26043. MODULE Test;
  26044. VAR integer: INTEGER; increment: ARRAY 10 OF CHAR;
  26045. BEGIN DEC (integer, increment);
  26046. END Test.
  26047. negative: decrement statement with record as increment
  26048. MODULE Test;
  26049. VAR integer: INTEGER; increment: RECORD END;
  26050. BEGIN DEC (integer, increment);
  26051. END Test.
  26052. negative: decrement statement with object as increment
  26053. MODULE Test;
  26054. VAR integer: INTEGER; increment: OBJECT END;
  26055. BEGIN DEC (integer, increment);
  26056. END Test.
  26057. negative: decrement statement with pointer to array as increment
  26058. MODULE Test;
  26059. VAR integer: INTEGER; increment: POINTER TO ARRAY 10 OF CHAR;
  26060. BEGIN DEC (integer, increment);
  26061. END Test.
  26062. negative: decrement statement with pointer to record as increment
  26063. MODULE Test;
  26064. VAR integer: INTEGER; increment: POINTER TO ARRAY 10 OF CHAR;
  26065. BEGIN DEC (integer, increment);
  26066. END Test.
  26067. negative: decrement statement with procedure as increment
  26068. MODULE Test;
  26069. VAR integer: INTEGER; increment: PROCEDURE;
  26070. BEGIN DEC (integer, increment);
  26071. END Test.
  26072. # include statement
  26073. negative: include statement on constant boolean
  26074. MODULE Test;
  26075. CONST Constant = TRUE;
  26076. BEGIN INCL (Constant, 0);
  26077. END Test.
  26078. negative: include statement on constant character
  26079. MODULE Test;
  26080. CONST Constant = 'a';
  26081. BEGIN INCL (Constant, 0);
  26082. END Test.
  26083. negative: include statement on constant integer
  26084. MODULE Test;
  26085. CONST Constant = 42;
  26086. BEGIN INCL (Constant, 0);
  26087. END Test.
  26088. negative: include statement on constant real
  26089. MODULE Test;
  26090. CONST Constant = 0.1;
  26091. BEGIN INCL (Constant, 0);
  26092. END Test.
  26093. negative: include statement on constant set
  26094. MODULE Test;
  26095. CONST Constant = {};
  26096. BEGIN INCL (Constant, 0);
  26097. END Test.
  26098. negative: include statement on constant string
  26099. MODULE Test;
  26100. CONST Constant = "string";
  26101. BEGIN INCL (Constant, 0);
  26102. END Test.
  26103. negative: include statement on nil pointer
  26104. MODULE Test;
  26105. CONST Constant = NIL;
  26106. BEGIN INCL (Constant, 0);
  26107. END Test.
  26108. negative: include statement on boolean
  26109. MODULE Test;
  26110. VAR boolean: BOOLEAN;
  26111. BEGIN INCL (boolean, 0);
  26112. END Test.
  26113. negative: include statement on character
  26114. MODULE Test;
  26115. VAR character: CHAR;
  26116. BEGIN INCL (character, 0);
  26117. END Test.
  26118. negative: include statement on integer
  26119. MODULE Test;
  26120. VAR integer: INTEGER;
  26121. BEGIN INCL (integer, 0);
  26122. END Test.
  26123. negative: include statement on real
  26124. MODULE Test;
  26125. VAR real: REAL;
  26126. BEGIN INCL (real, 0);
  26127. END Test.
  26128. negative: include statement on set with constant boolean
  26129. MODULE Test;
  26130. VAR set: SET;
  26131. BEGIN INCL (set, TRUE);
  26132. END Test.
  26133. negative: include statement on set with constant character
  26134. MODULE Test;
  26135. VAR set: SET;
  26136. BEGIN INCL (set, 'f');
  26137. END Test.
  26138. positive: include statement on set with positive constant integer
  26139. MODULE Test;
  26140. VAR set: SET;
  26141. BEGIN INCL (set, 5);
  26142. END Test.
  26143. negative: include statement on set with constant integer exceeding valid range
  26144. MODULE Test;
  26145. VAR set: SET;
  26146. BEGIN INCL (set, 5654);
  26147. END Test.
  26148. positive: include statement on set with zero
  26149. MODULE Test;
  26150. VAR set: SET;
  26151. BEGIN INCL (set, 0);
  26152. END Test.
  26153. negative: include statement on set with negative constant integer
  26154. MODULE Test;
  26155. VAR set: SET;
  26156. BEGIN INCL (set, -5);
  26157. END Test.
  26158. positive: include statement on set parameter
  26159. MODULE Test;
  26160. PROCEDURE Procedure (set: SET);
  26161. BEGIN INCL (set, 0);
  26162. END Procedure;
  26163. END Test.
  26164. positive: include statement on variable set parameter
  26165. MODULE Test;
  26166. PROCEDURE Procedure (VAR set: SET);
  26167. BEGIN INCL (set, 0);
  26168. END Procedure;
  26169. END Test.
  26170. negative: include statement on constant set parameter
  26171. MODULE Test;
  26172. PROCEDURE Procedure (CONST set: SET);
  26173. BEGIN INCL (set, 0);
  26174. END Procedure;
  26175. END Test.
  26176. positive: include statement on set with integer parameter
  26177. MODULE Test;
  26178. PROCEDURE Procedure (integer: INTEGER);
  26179. VAR set: SET;
  26180. BEGIN INCL (set, integer);
  26181. END Procedure;
  26182. END Test.
  26183. positive: include statement on set with variable integer parameter
  26184. MODULE Test;
  26185. PROCEDURE Procedure (VAR integer: INTEGER);
  26186. VAR set: SET;
  26187. BEGIN INCL (set, integer);
  26188. END Procedure;
  26189. END Test.
  26190. positive: include statement on set with constant integer parameter
  26191. MODULE Test;
  26192. PROCEDURE Procedure (CONST integer: INTEGER);
  26193. VAR set: SET;
  26194. BEGIN INCL (set, integer);
  26195. END Procedure;
  26196. END Test.
  26197. negative: include statement on set with constant real
  26198. MODULE Test;
  26199. VAR set: SET;
  26200. BEGIN INCL (set, 0.0);
  26201. END Test.
  26202. negative: include statement on set with constant set
  26203. MODULE Test;
  26204. VAR set: SET;
  26205. BEGIN INCL (set, {});
  26206. END Test.
  26207. negative: include statement on set with constant string
  26208. MODULE Test;
  26209. VAR set: SET;
  26210. BEGIN INCL (set, "element");
  26211. END Test.
  26212. negative: include statement on set with nil pointer
  26213. MODULE Test;
  26214. VAR set: SET;
  26215. BEGIN INCL (set, NIL);
  26216. END Test.
  26217. negative: include statement on set with boolean
  26218. MODULE Test;
  26219. VAR set: SET; boolean: BOOLEAN;
  26220. BEGIN INCL (set, boolean);
  26221. END Test.
  26222. negative: include statement on set with character
  26223. MODULE Test;
  26224. VAR set: SET; character: CHAR;
  26225. BEGIN INCL (set, character);
  26226. END Test.
  26227. positive: include statement on set with short integer
  26228. MODULE Test;
  26229. VAR set: SET; integer: SHORTINT;
  26230. BEGIN INCL (set, integer);
  26231. END Test.
  26232. positive: include statement on set with integer
  26233. MODULE Test;
  26234. VAR set: SET; integer: INTEGER;
  26235. BEGIN INCL (set, integer);
  26236. END Test.
  26237. positive: include statement on set with long integer
  26238. MODULE Test;
  26239. VAR set: SET; integer: LONGINT;
  26240. BEGIN INCL (set, integer);
  26241. END Test.
  26242. positive: include statement on set with huge integer
  26243. MODULE Test;
  26244. VAR set: SET; integer: HUGEINT;
  26245. BEGIN INCL (set, integer);
  26246. END Test.
  26247. negative: include statement on set with real
  26248. MODULE Test;
  26249. VAR set: SET; real: REAL;
  26250. BEGIN INCL (set, real);
  26251. END Test.
  26252. negative: include statement on array
  26253. MODULE Test;
  26254. VAR array: ARRAY 10 OF CHAR;
  26255. BEGIN INCL (array, 0);
  26256. END Test.
  26257. negative: include statement on record
  26258. MODULE Test;
  26259. VAR record: RECORD END;
  26260. BEGIN INCL (record, 0);
  26261. END Test.
  26262. negative: include statement on object
  26263. MODULE Test;
  26264. VAR object: OBJECT END;
  26265. BEGIN INCL (object, 0);
  26266. END Test.
  26267. negative: include statement on pointer to array
  26268. MODULE Test;
  26269. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  26270. BEGIN INCL (pointer, 0);
  26271. END Test.
  26272. negative: include statement on pointer to record
  26273. MODULE Test;
  26274. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  26275. BEGIN INCL (pointer, 0);
  26276. END Test.
  26277. negative: include statement on procedure
  26278. MODULE Test;
  26279. VAR procedure: PROCEDURE;
  26280. BEGIN INCL (procedure, 0);
  26281. END Test.
  26282. # exclude statement
  26283. negative: exclude statement on constant boolean
  26284. MODULE Test;
  26285. CONST Constant = TRUE;
  26286. BEGIN EXCL (Constant, 0);
  26287. END Test.
  26288. negative: exclude statement on constant character
  26289. MODULE Test;
  26290. CONST Constant = 'a';
  26291. BEGIN EXCL (Constant, 0);
  26292. END Test.
  26293. negative: exclude statement on constant integer
  26294. MODULE Test;
  26295. CONST Constant = 42;
  26296. BEGIN EXCL (Constant, 0);
  26297. END Test.
  26298. negative: exclude statement on constant real
  26299. MODULE Test;
  26300. CONST Constant = 0.1;
  26301. BEGIN EXCL (Constant, 0);
  26302. END Test.
  26303. negative: exclude statement on constant set
  26304. MODULE Test;
  26305. CONST Constant = {};
  26306. BEGIN EXCL (Constant, 0);
  26307. END Test.
  26308. negative: exclude statement on constant string
  26309. MODULE Test;
  26310. CONST Constant = "string";
  26311. BEGIN EXCL (Constant, 0);
  26312. END Test.
  26313. negative: exclude statement on nil pointer
  26314. MODULE Test;
  26315. CONST Constant = NIL;
  26316. BEGIN EXCL (Constant, 0);
  26317. END Test.
  26318. negative: exclude statement on boolean
  26319. MODULE Test;
  26320. VAR boolean: BOOLEAN;
  26321. BEGIN EXCL (boolean, 0);
  26322. END Test.
  26323. negative: exclude statement on character
  26324. MODULE Test;
  26325. VAR character: CHAR;
  26326. BEGIN EXCL (character, 0);
  26327. END Test.
  26328. negative: exclude statement on integer
  26329. MODULE Test;
  26330. VAR integer: INTEGER;
  26331. BEGIN EXCL (integer, 0);
  26332. END Test.
  26333. negative: exclude statement on real
  26334. MODULE Test;
  26335. VAR real: REAL;
  26336. BEGIN EXCL (real, 0);
  26337. END Test.
  26338. negative: exclude statement on set with constant boolean
  26339. MODULE Test;
  26340. VAR set: SET;
  26341. BEGIN EXCL (set, TRUE);
  26342. END Test.
  26343. negative: exclude statement on set with constant character
  26344. MODULE Test;
  26345. VAR set: SET;
  26346. BEGIN EXCL (set, 'f');
  26347. END Test.
  26348. positive: exclude statement on set with positive constant integer
  26349. MODULE Test;
  26350. VAR set: SET;
  26351. BEGIN EXCL (set, 5);
  26352. END Test.
  26353. negative: exclude statement on set with constant integer exceeding valid range
  26354. MODULE Test;
  26355. VAR set: SET;
  26356. BEGIN EXCL (set, 5654);
  26357. END Test.
  26358. positive: exclude statement on set with zero
  26359. MODULE Test;
  26360. VAR set: SET;
  26361. BEGIN EXCL (set, 0);
  26362. END Test.
  26363. negative: exclude statement on set with negative constant integer
  26364. MODULE Test;
  26365. VAR set: SET;
  26366. BEGIN EXCL (set, -5);
  26367. END Test.
  26368. positive: exclude statement on set parameter
  26369. MODULE Test;
  26370. PROCEDURE Procedure (set: SET);
  26371. BEGIN EXCL (set, 0);
  26372. END Procedure;
  26373. END Test.
  26374. positive: exclude statement on variable set parameter
  26375. MODULE Test;
  26376. PROCEDURE Procedure (VAR set: SET);
  26377. BEGIN EXCL (set, 0);
  26378. END Procedure;
  26379. END Test.
  26380. negative: exclude statement on constant set parameter
  26381. MODULE Test;
  26382. PROCEDURE Procedure (CONST set: SET);
  26383. BEGIN EXCL (set, 0);
  26384. END Procedure;
  26385. END Test.
  26386. positive: exclude statement on set with integer parameter
  26387. MODULE Test;
  26388. PROCEDURE Procedure (integer: INTEGER);
  26389. VAR set: SET;
  26390. BEGIN EXCL (set, integer);
  26391. END Procedure;
  26392. END Test.
  26393. positive: exclude statement on set with variable integer parameter
  26394. MODULE Test;
  26395. PROCEDURE Procedure (VAR integer: INTEGER);
  26396. VAR set: SET;
  26397. BEGIN EXCL (set, integer);
  26398. END Procedure;
  26399. END Test.
  26400. positive: exclude statement on set with constant integer parameter
  26401. MODULE Test;
  26402. PROCEDURE Procedure (CONST integer: INTEGER);
  26403. VAR set: SET;
  26404. BEGIN EXCL (set, integer);
  26405. END Procedure;
  26406. END Test.
  26407. negative: exclude statement on set with constant real
  26408. MODULE Test;
  26409. VAR set: SET;
  26410. BEGIN EXCL (set, 0.0);
  26411. END Test.
  26412. negative: exclude statement on set with constant set
  26413. MODULE Test;
  26414. VAR set: SET;
  26415. BEGIN EXCL (set, {});
  26416. END Test.
  26417. negative: exclude statement on set with constant string
  26418. MODULE Test;
  26419. VAR set: SET;
  26420. BEGIN EXCL (set, "element");
  26421. END Test.
  26422. negative: exclude statement on set with nil pointer
  26423. MODULE Test;
  26424. VAR set: SET;
  26425. BEGIN EXCL (set, NIL);
  26426. END Test.
  26427. negative: exclude statement on set with boolean
  26428. MODULE Test;
  26429. VAR set: SET; boolean: BOOLEAN;
  26430. BEGIN EXCL (set, boolean);
  26431. END Test.
  26432. negative: exclude statement on set with character
  26433. MODULE Test;
  26434. VAR set: SET; character: CHAR;
  26435. BEGIN EXCL (set, character);
  26436. END Test.
  26437. positive: exclude statement on set with short integer
  26438. MODULE Test;
  26439. VAR set: SET; integer: SHORTINT;
  26440. BEGIN EXCL (set, integer);
  26441. END Test.
  26442. positive: exclude statement on set with integer
  26443. MODULE Test;
  26444. VAR set: SET; integer: INTEGER;
  26445. BEGIN EXCL (set, integer);
  26446. END Test.
  26447. positive: exclude statement on set with long integer
  26448. MODULE Test;
  26449. VAR set: SET; integer: LONGINT;
  26450. BEGIN EXCL (set, integer);
  26451. END Test.
  26452. positive: exclude statement on set with huge integer
  26453. MODULE Test;
  26454. VAR set: SET; integer: HUGEINT;
  26455. BEGIN EXCL (set, integer);
  26456. END Test.
  26457. negative: exclude statement on set with real
  26458. MODULE Test;
  26459. VAR set: SET; real: REAL;
  26460. BEGIN EXCL (set, real);
  26461. END Test.
  26462. negative: exclude statement on array
  26463. MODULE Test;
  26464. VAR array: ARRAY 10 OF CHAR;
  26465. BEGIN EXCL (array, 0);
  26466. END Test.
  26467. negative: exclude statement on record
  26468. MODULE Test;
  26469. VAR record: RECORD END;
  26470. BEGIN EXCL (record, 0);
  26471. END Test.
  26472. negative: exclude statement on object
  26473. MODULE Test;
  26474. VAR object: OBJECT END;
  26475. BEGIN EXCL (object, 0);
  26476. END Test.
  26477. negative: exclude statement on pointer to array
  26478. MODULE Test;
  26479. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  26480. BEGIN EXCL (pointer, 0);
  26481. END Test.
  26482. negative: exclude statement on pointer to record
  26483. MODULE Test;
  26484. VAR pointer: POINTER TO ARRAY 10 OF CHAR;
  26485. BEGIN EXCL (pointer, 0);
  26486. END Test.
  26487. negative: exclude statement on procedure
  26488. MODULE Test;
  26489. VAR procedure: PROCEDURE;
  26490. BEGIN EXCL (procedure, 0);
  26491. END Test.
  26492. # copy statement
  26493. negative: copy statement on boolean
  26494. MODULE Test;
  26495. VAR source, dest: BOOLEAN;
  26496. BEGIN COPY (source, dest);
  26497. END Test.
  26498. negative: copy statement on character
  26499. MODULE Test;
  26500. VAR source, dest: CHAR;
  26501. BEGIN COPY (source, dest);
  26502. END Test.
  26503. negative: copy statement on integer
  26504. MODULE Test;
  26505. VAR source, dest: INTEGER;
  26506. BEGIN COPY (source, dest);
  26507. END Test.
  26508. negative: copy statement on real
  26509. MODULE Test;
  26510. VAR source, dest: REAL;
  26511. BEGIN COPY (source, dest);
  26512. END Test.
  26513. negative: copy statement on set
  26514. MODULE Test;
  26515. VAR source, dest: SET;
  26516. BEGIN COPY (source, dest);
  26517. END Test.
  26518. negative: copy statement on array of boolean
  26519. MODULE Test;
  26520. VAR source, dest: ARRAY 10 OF BOOLEAN;
  26521. BEGIN COPY (source, dest);
  26522. END Test.
  26523. positive: copy statement on array of character
  26524. MODULE Test;
  26525. VAR source, dest: ARRAY 10 OF CHAR;
  26526. BEGIN COPY (source, dest);
  26527. END Test.
  26528. positive: copy statement on array of character and longer array of character
  26529. MODULE Test;
  26530. VAR source: ARRAY 10 OF CHAR; dest: ARRAY 20 OF CHAR;
  26531. BEGIN COPY (source, dest);
  26532. END Test.
  26533. positive: copy statement on array of character and shorter array of character
  26534. MODULE Test;
  26535. VAR source: ARRAY 20 OF CHAR; dest: ARRAY 10 OF CHAR;
  26536. BEGIN source[9] := 0X; COPY (source, dest);
  26537. END Test.
  26538. positive: copy statement on string and longer array of character
  26539. MODULE Test;
  26540. CONST Source = "source";
  26541. VAR dest: ARRAY 10 OF CHAR;
  26542. BEGIN COPY (Source, dest);
  26543. END Test.
  26544. negative: copy statement on string and shorter array of character
  26545. MODULE Test;
  26546. CONST Source = "longer source";
  26547. VAR dest: ARRAY 10 OF CHAR;
  26548. BEGIN COPY (Source, dest);
  26549. END Test.
  26550. negative: copy statement on array of character and string
  26551. MODULE Test;
  26552. CONST Dest = "dest";
  26553. VAR source: ARRAY 10 OF CHAR;
  26554. BEGIN COPY (source, Dest);
  26555. END Test.
  26556. positive: copy statement with array of character parameter as source
  26557. MODULE Test;
  26558. PROCEDURE Procedure (source: ARRAY 10 OF CHAR);
  26559. VAR dest: ARRAY 10 OF CHAR;
  26560. BEGIN COPY (source, dest);
  26561. END Procedure;
  26562. END Test.
  26563. positive: copy statement with variable array of character parameter as source
  26564. MODULE Test;
  26565. PROCEDURE Procedure (VAR source: ARRAY 10 OF CHAR);
  26566. VAR dest: ARRAY 10 OF CHAR;
  26567. BEGIN COPY (source, dest);
  26568. END Procedure;
  26569. END Test.
  26570. positive: copy statement with constant array of character parameter as source
  26571. MODULE Test;
  26572. PROCEDURE Procedure (CONST source: ARRAY 10 OF CHAR);
  26573. VAR dest: ARRAY 10 OF CHAR;
  26574. BEGIN COPY (source, dest);
  26575. END Procedure;
  26576. END Test.
  26577. positive: copy statement with open array of character parameter as source
  26578. MODULE Test;
  26579. PROCEDURE Procedure (source: ARRAY OF CHAR);
  26580. VAR dest: ARRAY 10 OF CHAR;
  26581. BEGIN COPY (source, dest);
  26582. END Procedure;
  26583. END Test.
  26584. positive: copy statement with open variable array of character parameter as source
  26585. MODULE Test;
  26586. PROCEDURE Procedure (VAR source: ARRAY OF CHAR);
  26587. VAR dest: ARRAY 10 OF CHAR;
  26588. BEGIN COPY (source, dest);
  26589. END Procedure;
  26590. END Test.
  26591. positive: copy statement with open constant array of character parameter as source
  26592. MODULE Test;
  26593. PROCEDURE Procedure (CONST source: ARRAY OF CHAR);
  26594. VAR dest: ARRAY 10 OF CHAR;
  26595. BEGIN COPY (source, dest);
  26596. END Procedure;
  26597. END Test.
  26598. positive: copy statement with array of character parameter as destination
  26599. MODULE Test;
  26600. PROCEDURE Procedure (dest: ARRAY 10 OF CHAR);
  26601. VAR source: ARRAY 10 OF CHAR;
  26602. BEGIN COPY (source, dest);
  26603. END Procedure;
  26604. END Test.
  26605. positive: copy statement with variable array of character parameter as destination
  26606. MODULE Test;
  26607. PROCEDURE Procedure (VAR dest: ARRAY 10 OF CHAR);
  26608. VAR source: ARRAY 10 OF CHAR;
  26609. BEGIN COPY (source, dest);
  26610. END Procedure;
  26611. END Test.
  26612. negative: copy statement with constant array of character parameter as destination
  26613. MODULE Test;
  26614. PROCEDURE Procedure (CONST dest: ARRAY 10 OF CHAR);
  26615. VAR source: ARRAY 10 OF CHAR;
  26616. BEGIN COPY (source, dest);
  26617. END Procedure;
  26618. END Test.
  26619. positive: copy statement with open array of character parameter as destination
  26620. MODULE Test;
  26621. PROCEDURE Procedure (dest: ARRAY OF CHAR);
  26622. VAR source: ARRAY 10 OF CHAR;
  26623. BEGIN COPY (source, dest);
  26624. END Procedure;
  26625. END Test.
  26626. positive: copy statement with open variable array of character parameter as destination
  26627. MODULE Test;
  26628. PROCEDURE Procedure (VAR dest: ARRAY OF CHAR);
  26629. VAR source: ARRAY 10 OF CHAR;
  26630. BEGIN COPY (source, dest);
  26631. END Procedure;
  26632. END Test.
  26633. negative: copy statement with open constant array of character parameter as destination
  26634. MODULE Test;
  26635. PROCEDURE Procedure (CONST dest: ARRAY OF CHAR);
  26636. VAR source: ARRAY 10 OF CHAR;
  26637. BEGIN COPY (source, dest);
  26638. END Procedure;
  26639. END Test.
  26640. positive: copy statement with string as source and array of character parameter as destination
  26641. MODULE Test;
  26642. PROCEDURE Procedure (dest: ARRAY 10 OF CHAR);
  26643. BEGIN COPY ("source", dest);
  26644. END Procedure;
  26645. END Test.
  26646. positive: copy statement with string as source and variable array of character parameter as destination
  26647. MODULE Test;
  26648. PROCEDURE Procedure (VAR dest: ARRAY 10 OF CHAR);
  26649. BEGIN COPY ("source", dest);
  26650. END Procedure;
  26651. END Test.
  26652. negative: copy statement with string as source and constant array of character parameter as destination
  26653. MODULE Test;
  26654. PROCEDURE Procedure (CONST dest: ARRAY 10 OF CHAR);
  26655. BEGIN COPY ("source", dest);
  26656. END Procedure;
  26657. END Test.
  26658. positive: copy statement with string as source and open array of character parameter as destination
  26659. MODULE Test;
  26660. PROCEDURE Procedure (dest: ARRAY OF CHAR);
  26661. BEGIN COPY ("source", dest);
  26662. END Procedure;
  26663. END Test.
  26664. positive: copy statement with string as source and open variable array of character parameter as destination
  26665. MODULE Test;
  26666. PROCEDURE Procedure (VAR dest: ARRAY OF CHAR);
  26667. BEGIN COPY ("source", dest);
  26668. END Procedure;
  26669. END Test.
  26670. negative: copy statement with string as source and open constant array of character parameter as destination
  26671. MODULE Test;
  26672. PROCEDURE Procedure (CONST dest: ARRAY OF CHAR);
  26673. BEGIN COPY ("source", dest);
  26674. END Procedure;
  26675. END Test.
  26676. negative: copy statement on array of integer
  26677. MODULE Test;
  26678. VAR source, dest: ARRAY 10 OF INTEGER;
  26679. BEGIN COPY (source, dest);
  26680. END Test.
  26681. negative: copy statement on array of real
  26682. MODULE Test;
  26683. VAR source, dest: ARRAY 10 OF REAL;
  26684. BEGIN COPY (source, dest);
  26685. END Test.
  26686. negative: copy statement on array of set
  26687. MODULE Test;
  26688. VAR source, dest: ARRAY 10 OF SET;
  26689. BEGIN COPY (source, dest);
  26690. END Test.
  26691. negative: copy statement on array of record
  26692. MODULE Test;
  26693. VAR source, dest: ARRAY 10 OF RECORD END;
  26694. BEGIN COPY (source, dest);
  26695. END Test.
  26696. negative: copy statement on array of object
  26697. MODULE Test;
  26698. VAR source, dest: ARRAY 10 OF OBJECT END;
  26699. BEGIN COPY (source, dest);
  26700. END Test.
  26701. negative: copy statement on array of base object
  26702. MODULE Test;
  26703. VAR source, dest: ARRAY 10 OF OBJECT;
  26704. BEGIN COPY (source, dest);
  26705. END Test.
  26706. negative: copy statement on array of pointer to array
  26707. MODULE Test;
  26708. VAR source, dest: ARRAY 10 OF POINTER TO ARRAY OF CHAR;
  26709. BEGIN COPY (source, dest);
  26710. END Test.
  26711. negative: copy statement on array of pointer to record
  26712. MODULE Test;
  26713. VAR source, dest: ARRAY 10 OF POINTER TO RECORD END;
  26714. BEGIN COPY (source, dest);
  26715. END Test.
  26716. negative: copy statement on array of procedure
  26717. MODULE Test;
  26718. VAR source, dest: ARRAY 10 OF PROCEDURE;
  26719. BEGIN COPY (source, dest);
  26720. END Test.
  26721. negative: copy statement on record
  26722. MODULE Test;
  26723. VAR source, dest: RECORD END;
  26724. BEGIN COPY (source, dest);
  26725. END Test.
  26726. negative: copy statement on object
  26727. MODULE Test;
  26728. VAR source, dest: OBJECT END;
  26729. BEGIN COPY (source, dest);
  26730. END Test.
  26731. negative: copy statement on base object
  26732. MODULE Test;
  26733. VAR source, dest: OBJECT;
  26734. BEGIN COPY (source, dest);
  26735. END Test.
  26736. negative: copy statement on pointer to array
  26737. MODULE Test;
  26738. VAR source, dest: POINTER TO ARRAY 10 OF CHAR;
  26739. BEGIN COPY (source, dest);
  26740. END Test.
  26741. negative: copy statement on pointer to record
  26742. MODULE Test;
  26743. VAR source, dest: POINTER TO RECORD END;
  26744. BEGIN COPY (source, dest);
  26745. END Test.
  26746. negative: copy statement on procedure
  26747. MODULE Test;
  26748. VAR source, dest: PROCEDURE;
  26749. BEGIN COPY (source, dest);
  26750. END Test.
  26751. # overriding object procedures
  26752. positive: overriding same object procedure
  26753. MODULE Test;
  26754. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26755. TYPE B = OBJECT (A) PROCEDURE P; END P; END B;
  26756. END Test.
  26757. positive: deep overriding same object procedure
  26758. MODULE Test;
  26759. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26760. TYPE B = OBJECT (A) END B;
  26761. TYPE C = OBJECT (D) PROCEDURE P; END P; END C;
  26762. TYPE D = OBJECT (B) END D;
  26763. END Test.
  26764. negative: deep overriding same object procedure with different return type
  26765. MODULE Test;
  26766. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26767. TYPE B = OBJECT (A) END B;
  26768. TYPE C = OBJECT (D) PROCEDURE P (): A; END P; END C;
  26769. TYPE D = OBJECT (B) END D;
  26770. END Test.
  26771. positive: deep overriding same object procedure with same symbol in-between
  26772. MODULE Test;
  26773. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26774. TYPE B = OBJECT (A) VAR P: A END B;
  26775. TYPE C = OBJECT (D) PROCEDURE P; END P; END C;
  26776. TYPE D = OBJECT (B) END D;
  26777. END Test.
  26778. negative: deep overriding same object procedure with different return type and same symbol in-between
  26779. MODULE Test;
  26780. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26781. TYPE B = OBJECT (A) VAR P: A END B;
  26782. TYPE C = OBJECT (D) PROCEDURE P (): A; END P; END C;
  26783. TYPE D = OBJECT (B) END D;
  26784. END Test.
  26785. negative: overriding same object procedure with one parameter
  26786. MODULE Test;
  26787. TYPE A = OBJECT PROCEDURE P; END P; END A;
  26788. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26789. END Test.
  26790. negative: overriding same object procedure with no parameter
  26791. MODULE Test;
  26792. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26793. TYPE B = OBJECT (A) PROCEDURE P; END P; END B;
  26794. END Test.
  26795. positive: overriding same object procedure with parameter
  26796. MODULE Test;
  26797. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26798. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26799. END Test.
  26800. negative: overriding same object procedure with var parameter
  26801. MODULE Test;
  26802. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26803. TYPE B = OBJECT (A) PROCEDURE P (VAR p: A); END P; END B;
  26804. END Test.
  26805. negative: overriding same object procedure with const parameter
  26806. MODULE Test;
  26807. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26808. TYPE B = OBJECT (A) PROCEDURE P (CONST p: A); END P; END B;
  26809. END Test.
  26810. negative: overriding same object procedure with var parameter with parameter
  26811. MODULE Test;
  26812. TYPE A = OBJECT PROCEDURE P (VAR p: A); END P; END A;
  26813. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26814. END Test.
  26815. positive: overriding same object procedure with var parameter with var parameter
  26816. MODULE Test;
  26817. TYPE A = OBJECT PROCEDURE P (VAR p: A); END P; END A;
  26818. TYPE B = OBJECT (A) PROCEDURE P (VAR p: A); END P; END B;
  26819. END Test.
  26820. negative: overriding same object procedure with var parameter with const parameter
  26821. MODULE Test;
  26822. TYPE A = OBJECT PROCEDURE P (VAR p: A); END P; END A;
  26823. TYPE B = OBJECT (A) PROCEDURE P (CONST p: A); END P; END B;
  26824. END Test.
  26825. negative: overriding same object procedure with const parameter with parameter
  26826. MODULE Test;
  26827. TYPE A = OBJECT PROCEDURE P (CONST p: A); END P; END A;
  26828. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26829. END Test.
  26830. negative: overriding same object procedure with const parameter with var parameter
  26831. MODULE Test;
  26832. TYPE A = OBJECT PROCEDURE P (CONST p: A); END P; END A;
  26833. TYPE B = OBJECT (A) PROCEDURE P (VAR p: A); END P; END B;
  26834. END Test.
  26835. positive: overriding same object procedure with const parameter with const parameter
  26836. MODULE Test;
  26837. TYPE A = OBJECT PROCEDURE P (CONST p: A); END P; END A;
  26838. TYPE B = OBJECT (A) PROCEDURE P (CONST p: A); END P; END B;
  26839. END Test.
  26840. positive: overriding same object procedure with same parameter type
  26841. MODULE Test;
  26842. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26843. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26844. END Test.
  26845. negative: overriding same object procedure with covariant parameter type
  26846. MODULE Test;
  26847. TYPE A = OBJECT PROCEDURE P (p: A); END P; END A;
  26848. TYPE B = OBJECT (A) PROCEDURE P (p: B); END P; END B;
  26849. END Test.
  26850. negative: overriding same object procedure with contravariant parameter type
  26851. MODULE Test;
  26852. TYPE A = OBJECT PROCEDURE P (p: B); END P; END A;
  26853. TYPE B = OBJECT (A) PROCEDURE P (p: A); END P; END B;
  26854. END Test.
  26855. negative: overriding same object procedure with different parameter type
  26856. MODULE Test;
  26857. TYPE A = OBJECT PROCEDURE P (p: SET); END P; END A;
  26858. TYPE B = OBJECT (A) PROCEDURE P (p: CHAR); END P; END B;
  26859. END Test.
  26860. positive: overriding object procedure with same return type
  26861. MODULE Test;
  26862. TYPE A = OBJECT PROCEDURE P(): A; END P; END A;
  26863. TYPE B = OBJECT (A) PROCEDURE P(): A; END P; END B;
  26864. END Test.
  26865. negative: overriding object procedure with covariant return type
  26866. MODULE Test;
  26867. TYPE A = OBJECT PROCEDURE P(): A; END P; END A;
  26868. TYPE B = OBJECT (A) PROCEDURE P(): B; END P; END B;
  26869. END Test.
  26870. negative: overriding object procedure with contravariant return type
  26871. MODULE Test;
  26872. TYPE A = OBJECT PROCEDURE P(): B; END P; END A;
  26873. TYPE B = OBJECT (A) PROCEDURE P(): A; END P; END B;
  26874. END Test.
  26875. negative: overriding object procedure with different return type
  26876. MODULE Test;
  26877. TYPE A = OBJECT PROCEDURE P(): SET; END P; END A;
  26878. TYPE B = OBJECT (A) PROCEDURE P(): CHAR; END P; END B;
  26879. END Test.
  26880. negative: super call on procedure variable in module
  26881. MODULE Test;
  26882. VAR procedure: PROCEDURE;
  26883. BEGIN procedure^
  26884. END Test.
  26885. negative: super call on procedure variable in procedure
  26886. MODULE Test;
  26887. PROCEDURE Procedure;
  26888. VAR procedure: PROCEDURE;
  26889. BEGIN procedure^
  26890. END Procedure;
  26891. END Test.
  26892. negative: super call on procedure variable in object
  26893. MODULE Test;
  26894. TYPE Object = OBJECT
  26895. VAR procedure: PROCEDURE;
  26896. BEGIN procedure^
  26897. END Object;
  26898. END Test.
  26899. negative: super call on hidden procedure variable in object
  26900. MODULE Test;
  26901. TYPE Base = OBJECT
  26902. VAR procedure: PROCEDURE;
  26903. END Base;
  26904. TYPE Derived = OBJECT (Base)
  26905. BEGIN procedure^
  26906. END Derived;
  26907. END Test.
  26908. negative: super call on hiding procedure variable in object
  26909. MODULE Test;
  26910. TYPE Base = OBJECT
  26911. VAR procedure: PROCEDURE;
  26912. END Base;
  26913. TYPE Derived = OBJECT (Base)
  26914. VAR procedure: PROCEDURE;
  26915. BEGIN procedure^
  26916. END Derived;
  26917. END Test.
  26918. negative: super call to procedure in module
  26919. MODULE Test;
  26920. PROCEDURE Procedure; END Procedure;
  26921. BEGIN Procedure^
  26922. END Test.
  26923. negative: super call to procedure in procedure
  26924. MODULE Test;
  26925. PROCEDURE Procedure;
  26926. PROCEDURE Procedure; END Procedure;
  26927. BEGIN Procedure^
  26928. END Procedure;
  26929. END Test.
  26930. negative: super call to non-overriding procedure in object
  26931. MODULE Test;
  26932. TYPE Object = OBJECT
  26933. PROCEDURE Procedure; END Procedure;
  26934. BEGIN Procedure^
  26935. END Object;
  26936. END Test.
  26937. negative: super call to non-overridden procedure in object
  26938. MODULE Test;
  26939. TYPE Base = OBJECT
  26940. PROCEDURE Procedure; END Procedure;
  26941. END Base;
  26942. TYPE Derived = OBJECT (Base)
  26943. BEGIN Procedure^
  26944. END Derived;
  26945. END Test.
  26946. positive: super call to overridden procedure in object
  26947. MODULE Test;
  26948. TYPE Base = OBJECT
  26949. PROCEDURE Procedure; END Procedure;
  26950. END Base;
  26951. TYPE Derived = OBJECT (Base)
  26952. PROCEDURE Procedure; END Procedure;
  26953. BEGIN Procedure^
  26954. END Derived;
  26955. END Test.
  26956. negative: qualified super call to overridden but non-overriding procedure in object
  26957. MODULE Test;
  26958. TYPE A = OBJECT
  26959. PROCEDURE Procedure; END Procedure;
  26960. END A;
  26961. TYPE B = OBJECT (A)
  26962. PROCEDURE Procedure; END Procedure;
  26963. END B;
  26964. TYPE C = OBJECT (B)
  26965. BEGIN SELF.Procedure^
  26966. END C;
  26967. END Test.
  26968. negative: qualified super call on reference to overridden procedure in object
  26969. MODULE Test;
  26970. TYPE Base = OBJECT
  26971. PROCEDURE Procedure; END Procedure;
  26972. END Base;
  26973. TYPE Derived = OBJECT (Base)
  26974. VAR object: Derived;
  26975. PROCEDURE Procedure; END Procedure;
  26976. BEGIN object.Procedure^
  26977. END Derived;
  26978. END Test.
  26979. negative: qualified super call on reference to overridden procedure in module
  26980. MODULE Test;
  26981. TYPE Base = OBJECT
  26982. PROCEDURE Procedure; END Procedure;
  26983. END Base;
  26984. TYPE Derived = OBJECT (Base)
  26985. PROCEDURE Procedure; END Procedure;
  26986. END Derived;
  26987. VAR object: Derived;
  26988. BEGIN object.Procedure^
  26989. END Test.
  26990. # flags
  26991. negative: procedure illegaly marked delegate
  26992. MODULE Test;
  26993. PROCEDURE {DELEGATE} P; END P;
  26994. END Test.
  26995. negative: procedure illegaly marked untraced
  26996. MODULE Test;
  26997. PROCEDURE {UNTRACED} P; END P;
  26998. END Test.
  26999. positive: pointer to array variable marked untraced
  27000. MODULE Test;
  27001. VAR a {UNTRACED}: POINTER TO ARRAY OF CHAR;
  27002. END Test.
  27003. positive: pointer to record variable marked untraced
  27004. MODULE Test;
  27005. VAR a {UNTRACED}: POINTER TO RECORD END;
  27006. END Test.
  27007. negative: non-pointer variable marked untraced
  27008. MODULE Test;
  27009. VAR a {UNTRACED}: LONGINT;
  27010. END Test.
  27011. negative: variable marked delegate
  27012. MODULE Test;
  27013. VAR a{DELEGATE}: PROCEDURE;
  27014. END Test.
  27015. positive: delegate procedure type
  27016. MODULE Test;
  27017. TYPE TP=PROCEDURE{DELEGATE};
  27018. END Test.
  27019. positive: delegate procedure type with arguments
  27020. MODULE Test;
  27021. TYPE TP=PROCEDURE{DELEGATE}(a: LONGINT): LONGINT;
  27022. END Test.
  27023. positive: delegate procedure variable assignment
  27024. MODULE Test;
  27025. VAR p:PROCEDURE{DELEGATE};
  27026. PROCEDURE P; END P;
  27027. BEGIN p := P
  27028. END Test.
  27029. positive: delegate procedure variable nil assignment
  27030. MODULE Test;
  27031. VAR p: PROCEDURE{DELEGATE};
  27032. BEGIN p := NIL
  27033. END Test.
  27034. positive: delegate procedure variable assignment in exclusive block
  27035. MODULE Test;
  27036. VAR p:PROCEDURE{DELEGATE};
  27037. PROCEDURE P; END P;
  27038. BEGIN {EXCLUSIVE} p := P
  27039. END Test.
  27040. positive: delegate procedure variable nil assignment in exclusive block
  27041. MODULE Test;
  27042. VAR p: PROCEDURE{DELEGATE};
  27043. BEGIN {EXCLUSIVE} p := NIL
  27044. END Test.
  27045. positive: delegate procedure variable assigned to method
  27046. MODULE Test;
  27047. TYPE O=OBJECT PROCEDURE P; END P; END O;
  27048. VAR o:O; p:PROCEDURE{DELEGATE};
  27049. BEGIN p := o.P
  27050. END Test.
  27051. negative: non-delegate procedure variable assigned to method
  27052. MODULE Test;
  27053. TYPE O=OBJECT PROCEDURE P; END P; END O;
  27054. VAR o:O; p:PROCEDURE;
  27055. BEGIN p := o.P
  27056. END Test.
  27057. # signatures
  27058. positive: signature matching extension of object
  27059. MODULE Test;
  27060. TYPE O=OBJECT
  27061. PROCEDURE P; END P;
  27062. PROCEDURE Q(i: INTEGER); END Q;
  27063. PROCEDURE R(i: LONGINT): LONGINT; END R;
  27064. END O;
  27065. TYPE OO=OBJECT(O);
  27066. PROCEDURE P; END P;
  27067. PROCEDURE Q(i: INTEGER); END Q;
  27068. PROCEDURE R(i: LONGINT): LONGINT; END R;
  27069. END OO;
  27070. END Test.
  27071. negative: extension of objects with nonmatching signature: parameter incompatible
  27072. MODULE Test;
  27073. TYPE O=OBJECT
  27074. PROCEDURE P(i: INTEGER); END P;
  27075. END O;
  27076. TYPE OO=OBJECT(O)
  27077. PROCEDURE P(i: LONGINT); END P;
  27078. END OO;
  27079. END Test.
  27080. positive: extension of object matching signature: constructor extends non-constructor
  27081. MODULE Test;
  27082. TYPE O=OBJECT
  27083. PROCEDURE P; END P;
  27084. END O;
  27085. TYPE OO=OBJECT(O);
  27086. PROCEDURE &P; END P;
  27087. END OO;
  27088. END Test.
  27089. negative: extension of object with nonmatching signature: non-constructor extends constructor
  27090. MODULE Test;
  27091. TYPE O=OBJECT
  27092. PROCEDURE &P; END P;
  27093. END O;
  27094. TYPE OO=OBJECT(O);
  27095. PROCEDURE P; END P;
  27096. END OO;
  27097. END Test.
  27098. positive: non-exported constructor used in same module
  27099. MODULE Dummy;
  27100. TYPE O*=OBJECT
  27101. PROCEDURE & Init (x: LONGINT; CONST y: ARRAY OF CHAR);
  27102. END Init;
  27103. END O;
  27104. VAR o:O;
  27105. BEGIN
  27106. NEW(o,10,"test")
  27107. END Dummy.
  27108. negative: non-exported constructor used as method in different module
  27109. MODULE Test;
  27110. IMPORT Dummy;
  27111. VAR a: Dummy.O;
  27112. BEGIN
  27113. a.Init(10,"test")
  27114. END Test.
  27115. negative: non-exported constructor used as constructor in different module
  27116. MODULE Test;
  27117. IMPORT Dummy;
  27118. VAR a: Dummy.O;
  27119. BEGIN
  27120. NEW(a,10,"test");
  27121. END Test.
  27122. positive: non-exported constructor overwritten by new constructor with different name in different module
  27123. MODULE Test;
  27124. IMPORT Dummy;
  27125. TYPE O=OBJECT (Dummy.O)
  27126. PROCEDURE & InitX(a,b: LONGINT); END InitX;
  27127. END O;
  27128. VAR a: O;
  27129. BEGIN
  27130. NEW(a,10,20);
  27131. END Test.
  27132. positive: non-exported constructor overwritten by new constructor with same name in different module
  27133. MODULE Test;
  27134. IMPORT Dummy;
  27135. TYPE O=OBJECT (Dummy.O)
  27136. PROCEDURE & Init(a,b: LONGINT); END Init;
  27137. END O;
  27138. VAR a: O;
  27139. BEGIN
  27140. NEW(a,10,20);
  27141. END Test.
  27142. positive: exported constructor used in same module
  27143. MODULE Dummy;
  27144. TYPE O*=OBJECT
  27145. PROCEDURE & Init* (x: LONGINT; CONST y: ARRAY OF CHAR);
  27146. END Init;
  27147. END O;
  27148. VAR o:O;
  27149. BEGIN
  27150. NEW(o,10,"test")
  27151. END Dummy.
  27152. positive: exported constructor used as method in different module
  27153. MODULE Test;
  27154. IMPORT Dummy;
  27155. VAR a: Dummy.O;
  27156. BEGIN
  27157. a.Init(10,"test")
  27158. END Test.
  27159. positive: exported constructor used as constructor in different module
  27160. MODULE Test;
  27161. IMPORT Dummy;
  27162. VAR a: Dummy.O;
  27163. BEGIN
  27164. NEW(a,10,"test");
  27165. END Test.
  27166. positive: exported constructor overwritten by new constructor with different name and non-matching signature in different module
  27167. MODULE Test;
  27168. IMPORT Dummy;
  27169. TYPE O=OBJECT (Dummy.O)
  27170. PROCEDURE & InitX(a,b: LONGINT); END InitX;
  27171. END O;
  27172. VAR a: O;
  27173. BEGIN
  27174. NEW(a,10,20);
  27175. END Test.
  27176. negative: non-exported constructor overwritten by new constructor with same name and non-matching signature in different module
  27177. MODULE Test;
  27178. IMPORT Dummy;
  27179. TYPE O=OBJECT (Dummy.O)
  27180. PROCEDURE & Init(a,b: LONGINT); END Init;
  27181. END O;
  27182. END Test.
  27183. positive: non-exported constructor overwritten by new constructor with same name and matching signature in different module
  27184. MODULE Test;
  27185. IMPORT Dummy;
  27186. TYPE O=OBJECT (Dummy.O)
  27187. PROCEDURE & Init(a: LONGINT; CONST name: ARRAY OF CHAR); END Init;
  27188. END O;
  27189. VAR a: O;
  27190. BEGIN
  27191. NEW(a,10,"test");
  27192. END Test.
  27193. negative: new on object with non-exported constructor with empty parameter list
  27194. MODULE Dummy;
  27195. TYPE O*=OBJECT
  27196. PROCEDURE & Init;
  27197. END Init;
  27198. END O;
  27199. END Dummy.
  27200. MODULE Test;
  27201. IMPORT Dummy;
  27202. VAR o: Dummy.O;
  27203. BEGIN NEW(o)
  27204. END Test.
  27205. # realtime objects
  27206. positive: plain realtime object
  27207. MODULE Test;
  27208. TYPE A = OBJECT {REALTIME} END A;
  27209. END Test.
  27210. positive: realtime pointer to record
  27211. MODULE Test;
  27212. TYPE A = POINTER {REALTIME} TO RECORD END;
  27213. END Test.
  27214. positive: realtime pointer to array
  27215. MODULE Test;
  27216. TYPE A = POINTER {REALTIME} TO ARRAY OF CHAR;
  27217. END Test.
  27218. positive: realtime object containing basic type fields
  27219. MODULE Test;
  27220. IMPORT SYSTEM;
  27221. TYPE A = OBJECT {REALTIME}
  27222. VAR a0: CHAR8; a1: CHAR16; a2: CHAR32; a3: SHORTINT; a4: INTEGER; a5: LONGINT; a6: HUGEINT; a7: REAL;
  27223. a8: LONGREAL; a9: BOOLEAN; a10: SET; a11: SYSTEM.ADDRESS; a12:SYSTEM.SIZE; a13: SYSTEM.BYTE;
  27224. END A;
  27225. END Test.
  27226. positive: realtime pointer to record that contains basic type fields
  27227. MODULE Test;
  27228. IMPORT SYSTEM;
  27229. TYPE A = POINTER {REALTIME} TO RECORD
  27230. a0: CHAR8; a1: CHAR16; a2: CHAR32; a3: SHORTINT; a4: INTEGER; a5: LONGINT; a6: HUGEINT; a7: REAL;
  27231. a8: LONGREAL; a9: BOOLEAN; a10: SET; a11: SYSTEM.ADDRESS; a12:SYSTEM.SIZE; a13: SYSTEM.BYTE;
  27232. END;
  27233. END Test.
  27234. positive: realtime pointer to array where the elements contain basic type fields
  27235. MODULE Test;
  27236. IMPORT SYSTEM;
  27237. TYPE A0 = POINTER {REALTIME} TO ARRAY OF RECORD
  27238. a0: CHAR8; a1: CHAR16; a2: CHAR32; a3: SHORTINT; a4: INTEGER; a5: LONGINT; a6: HUGEINT; a7: REAL;
  27239. a8: LONGREAL; a9: BOOLEAN; a10: SET; a11: SYSTEM.ADDRESS; a12:SYSTEM.SIZE; a13: SYSTEM.BYTE;
  27240. END;
  27241. END Test.
  27242. positive: realtime object containing enumeration type field
  27243. MODULE Test;
  27244. TYPE Color = ENUM red, green, blue END;
  27245. RTObject = OBJECT {REALTIME} VAR color: Color; END RTObject;
  27246. END Test.
  27247. positive: realtime object containing non-basic type realtime fields
  27248. MODULE Test;
  27249. TYPE A = OBJECT {REALTIME} END A;
  27250. B = OBJECT {REALTIME} VAR a: A; b: B; END B;
  27251. END Test.
  27252. positive: realtime pointer to record that contains non-basic type fields
  27253. MODULE Test;
  27254. TYPE A = POINTER {REALTIME} TO RECORD END;
  27255. B = POINTER {REALTIME} TO RECORD a: A; b: B END;
  27256. END Test.
  27257. positive: realtime pointer to array where the elements contain non-basic realtime fields
  27258. MODULE Test;
  27259. TYPE A = POINTER {REALTIME} TO RECORD END;
  27260. B = POINTER {REALTIME} TO ARRAY OF RECORD a: A; b: B END;
  27261. END Test.
  27262. negative: realtime object containing non-realtime any pointer
  27263. MODULE Test;
  27264. TYPE A = OBJECT {REALTIME} VAR a0: ANY END A;
  27265. END Test;
  27266. negative: realtime object containing non-realtime pointer to record
  27267. MODULE Test;
  27268. TYPE A = OBJECT {REALTIME} VAR a0: POINTER TO RECORD END END A;
  27269. END Test;
  27270. negative: realtime object containing non-realtime pointer to array
  27271. MODULE Test;
  27272. TYPE A = OBJECT {REALTIME} VAR a0: POINTER TO ARRAY OF CHAR END A;
  27273. END Test;
  27274. negative: realtime object containing non-realtime object reference
  27275. MODULE Test;
  27276. TYPE A = OBJECT END A;
  27277. B = OBJECT {REALTIME} b: A END B;
  27278. END Test;
  27279. positive: realtime object containing record variable with realtime fields
  27280. MODULE Test;
  27281. TYPE A = OBJECT {REALTIME} VAR a: RECORD k: SHORTINT; l: INTEGER; m: A END END A;
  27282. END Test.
  27283. positive: realtime object containing record variable with realtime pointers
  27284. MODULE Test;
  27285. TYPE A = OBJECT {REALTIME} VAR a: RECORD p0: POINTER {REALTIME} TO RECORD END;
  27286. p1: POINTER {REALTIME} TO ARRAY OF CHAR; END; END A;
  27287. END Test.
  27288. negative: realtime object containing record variable with a non-realtime any pointer
  27289. MODULE Test;
  27290. TYPE A = OBJECT {REALTIME} VAR a: RECORD p: ANY END; END A;
  27291. END Test.
  27292. negative: realtime object containing record variable with a non-realtime record pointer
  27293. MODULE Test;
  27294. TYPE A = OBJECT {REALTIME} VAR a: RECORD p: POINTER TO RECORD END; END; END A;
  27295. END Test.
  27296. negative: realtime object containing record variable with a non-realtime array pointer
  27297. MODULE Test;
  27298. TYPE A = OBJECT {REALTIME} VAR a: RECORD p: POINTER TO ARRAY OF CHAR END; END A;
  27299. END Test.
  27300. positive: non-realtime object containing reference to realtime object
  27301. MODULE Test;
  27302. TYPE A = OBJECT {REALTIME} VAR a0: LONGINT; a1: CHAR; END A;
  27303. B = OBJECT VAR a: A; END B;
  27304. END Test.
  27305. positive: extension of realtime object declared as realtime object
  27306. MODULE Test;
  27307. TYPE A = OBJECT {REALTIME} VAR a0: CHAR; a1: SET; END A;
  27308. B = OBJECT {REALTIME} (A) VAR b0: INTEGER; b1: LONGINT; END B;
  27309. END Test.
  27310. positive: variable of realtime pointer to record type
  27311. MODULE Test;
  27312. VAR p: POINTER {REALTIME} TO RECORD k, l: LONGINT END;
  27313. END Test.
  27314. positive: variable of realtime pointer to array type
  27315. MODULE Test;
  27316. VAR p: POINTER {REALTIME} TO ARRAY OF BOOLEAN;
  27317. END Test.
  27318. negative: realtime extension of non-realtime object
  27319. MODULE Test;
  27320. TYPE A = OBJECT VAR a0: CHAR; a1: SET; END A;
  27321. B = OBJECT {REALTIME} (A) VAR b0: INTEGER; b1: LONGINT; END B;
  27322. END Test.
  27323. negative: non-realtime extension of realtime object
  27324. MODULE Test;
  27325. TYPE A = OBJECT {REALTIME} VAR a0: CHAR; a1: SET; END A;
  27326. B = OBJECT (A) VAR b0: INTEGER; b1: LONGINT; END B;
  27327. END Test.
  27328. positive: record extensions - both record types are implicit realtime objects
  27329. MODULE Test;
  27330. TYPE A = RECORD a0: CHAR; a1: SET; END;
  27331. B = RECORD (A) b0: INTEGER; b1: LONGINT; END;
  27332. AP = POINTER {REALTIME} TO A;
  27333. BP = POINTER {REALTIME} TO B;
  27334. END Test.
  27335. negative: record extensions - only base type is realtime object
  27336. MODULE Test;
  27337. TYPE A = RECORD a0: CHAR; a1: SET; END;
  27338. B = RECORD (A) b0: INTEGER; b1: ANY; END;
  27339. AP = POINTER {REALTIME} TO A;
  27340. BP = POINTER {REALTIME} TO B;
  27341. END Test.
  27342. positive: extension of realtime pointer
  27343. MODULE Test;
  27344. TYPE R = RECORD r0, r1: LONGINT; END;
  27345. P = POINTER {REALTIME} TO Q;
  27346. Q = RECORD (R) q0, q1: LONGINT; END;
  27347. S = OBJECT {REALTIME} (P) VAR s0, s1: LONGINT; END S;
  27348. END Test.
  27349. positive: module Dummy for realtime and non-realtime types
  27350. MODULE Dummy;
  27351. TYPE RTRec* = RECORD r0: LONGINT; r1: CHAR; END;
  27352. NRTRec* = RECORD n0: LONGINT; n1: ANY; END;
  27353. RTO* = OBJECT {REALTIME} VAR m0: SET; END RTO;
  27354. NRTO0* = OBJECT VAR p: ANY; END NRTO0;
  27355. NRTO1* = OBJECT VAR k: LONGINT; END NRTO1;
  27356. END Dummy.
  27357. positive: realtime pointer to (realtime) record from imported module
  27358. MODULE Test;
  27359. IMPORT Dummy;
  27360. TYPE RTPtr = POINTER {REALTIME} TO Dummy.RTRec;
  27361. END Test.
  27362. positive: non-realtime pointer to (non-realtime) record from imported module
  27363. MODULE Test;
  27364. IMPORT Dummy;
  27365. TYPE NRTPtr = POINTER TO Dummy.NRTRec;
  27366. END Test.
  27367. positive: non-realtime pointer to (realtime) record from imported module
  27368. MODULE Test;
  27369. IMPORT Dummy;
  27370. TYPE NRTPtr = POINTER TO Dummy.RTRec;
  27371. END Test.
  27372. negative: realtime pointer to (non-realtime) record from imported module
  27373. MODULE Test;
  27374. IMPORT Dummy;
  27375. TYPE RTPtr = POINTER {REALTIME} TO Dummy.NRTRec;
  27376. END Test.
  27377. positive: realtime extension of imported realtime object
  27378. MODULE Test;
  27379. IMPORT Dummy;
  27380. TYPE RTE = OBJECT {REALTIME} (Dummy.RTO) VAR t0: POINTER {REALTIME} TO ARRAY OF CHAR; END RTE;
  27381. END Test.
  27382. negative: non-realtime extension of imported realtime object
  27383. MODULE Test;
  27384. IMPORT Dummy;
  27385. TYPE NRTE = OBJECT (Dummy.RTO) VAR k: LONGINT; END NRTE;
  27386. END Test.
  27387. positive: non-realtime extension of imported non-realtime object that contains non-realtime fields
  27388. MODULE Test;
  27389. IMPORT Dummy;
  27390. TYPE NRTE = OBJECT (Dummy.NRTO0) VAR c: CHAR; END NRTE;
  27391. END Test.
  27392. positive: non-realtime extension of imported non-realtime object that contains only realtime fields
  27393. MODULE Test;
  27394. IMPORT Dummy;
  27395. TYPE NRTE = OBJECT (Dummy.NRTO1) VAR c: CHAR; END NRTE;
  27396. END Test.
  27397. # realtime procedures
  27398. positive: procedure marked as realtime
  27399. MODULE Test;
  27400. PROCEDURE {REALTIME} P; END P;
  27401. END Test.
  27402. positive: calling realtime procedure in non-realtime procedure
  27403. MODULE Test;
  27404. PROCEDURE {REALTIME} RTP; END RTP;
  27405. PROCEDURE NRTP; BEGIN RTP; END NRTP;
  27406. END Test.
  27407. positive: recursive call of realtime procedure
  27408. MODULE Test;
  27409. PROCEDURE {REALTIME} RTP; BEGIN RTP; END RTP;
  27410. END Test.
  27411. negative: calling non-realtime procedure in realtime procedure
  27412. MODULE Test;
  27413. PROCEDURE NRTP; END NRTP;
  27414. PROCEDURE {REALTIME} RTP; BEGIN NRTP; END RTP;
  27415. END Test.
  27416. negative: new statement in realtime procedure
  27417. MODULE Test;
  27418. PROCEDURE {REALTIME} P;
  27419. VAR p: POINTER TO RECORD END;
  27420. BEGIN NEW (p);
  27421. END P;
  27422. END Test.
  27423. negative: exclusive block in realtime procedure
  27424. MODULE Test;
  27425. PROCEDURE {REALTIME} P;
  27426. BEGIN {EXCLUSIVE}
  27427. END P;
  27428. END Test.
  27429. negative: await statement in realtime procedure
  27430. MODULE Test;
  27431. VAR condition: BOOLEAN;
  27432. PROCEDURE {REALTIME} P;
  27433. BEGIN AWAIT (condition);
  27434. END P;
  27435. END Test.
  27436. positive: realtime procedure variable to non-realtime procedure variable assignment
  27437. MODULE Test;
  27438. VAR rtp: PROCEDURE {REALTIME}; nrtp: PROCEDURE;
  27439. BEGIN nrtp := rtp;
  27440. END Test.
  27441. positive: realtime procedure variable to realtime procedure variable assignment
  27442. MODULE Test;
  27443. VAR rtp: PROCEDURE {REALTIME};
  27444. BEGIN rtp := rtp;
  27445. END Test.
  27446. negative: non-realtime procedure variable to realtime procedure variable assignment
  27447. MODULE Test;
  27448. VAR rtp: PROCEDURE {REALTIME}; nrtp: PROCEDURE;
  27449. BEGIN rtp := nrtp;
  27450. END Test.
  27451. negative: module body marked as realtime
  27452. MODULE Test;
  27453. BEGIN {REALTIME}
  27454. END Test.
  27455. negative: procedure body marked as realtime
  27456. MODULE Test;
  27457. PROCEDURE P;
  27458. BEGIN {REALTIME}
  27459. END P;
  27460. END Test.
  27461. positive: passive object body marked as realtime
  27462. MODULE Test;
  27463. TYPE Object = OBJECT
  27464. BEGIN {REALTIME}
  27465. END Object;
  27466. END Test.
  27467. positive: calling realtime procedure in passive object body marked as realtime
  27468. MODULE Test;
  27469. TYPE Object = OBJECT {REALTIME}
  27470. PROCEDURE {REALTIME} P; END P;
  27471. BEGIN {REALTIME} P;
  27472. END Object;
  27473. END Test.
  27474. negative: calling non-realtime procedure in passive object body marked as realtime
  27475. MODULE Test;
  27476. TYPE Object = OBJECT
  27477. PROCEDURE P; END P;
  27478. BEGIN {REALTIME} P;
  27479. END Object;
  27480. END Test.
  27481. positive: active object body marked as realtime
  27482. MODULE Test;
  27483. TYPE Object = OBJECT
  27484. BEGIN {ACTIVE, REALTIME}
  27485. END Object;
  27486. END Test.
  27487. positive: calling realtime procedure in active object body marked as realtime
  27488. MODULE Test;
  27489. TYPE Object = OBJECT {REALTIME}
  27490. PROCEDURE {REALTIME} P; END P;
  27491. BEGIN {ACTIVE, REALTIME} P;
  27492. END Object;
  27493. END Test.
  27494. negative: declaring realtime procedure/method in non-realtime object
  27495. MODULE Test;
  27496. TYPE A = OBJECT
  27497. PROCEDURE {REALTIME} P;
  27498. END P;
  27499. END A;
  27500. END Test.
  27501. negative: calling non-realtime procedure in active object body marked as realtime
  27502. MODULE Test;
  27503. TYPE Object = OBJECT
  27504. PROCEDURE P; END P;
  27505. BEGIN {ACTIVE, REALTIME} P;
  27506. END Object;
  27507. END Test.
  27508. positive: overwriting realtime procedure with realtime procedure
  27509. MODULE Test;
  27510. TYPE Base = OBJECT {REALTIME}
  27511. PROCEDURE {REALTIME} P; END P;
  27512. END Base;
  27513. TYPE Object = OBJECT {REALTIME} (Base)
  27514. PROCEDURE {REALTIME} P; END P;
  27515. END Object;
  27516. END Test.
  27517. positive: overwriting non-realtime procedure with realtime procedure
  27518. MODULE Test;
  27519. TYPE Base = OBJECT {REALTIME}
  27520. PROCEDURE P; END P;
  27521. END Base;
  27522. TYPE Object = OBJECT {REALTIME} (Base)
  27523. PROCEDURE {REALTIME} P; END P;
  27524. END Object;
  27525. END Test.
  27526. negative: overwriting realtime procedure with non-realtime procedure
  27527. MODULE Test;
  27528. TYPE Base = OBJECT {REALTIME}
  27529. PROCEDURE {REALTIME} P; END P;
  27530. END Base;
  27531. TYPE Object = OBJECT {REALTIME} (Base)
  27532. PROCEDURE P; END P;
  27533. END Object;
  27534. END Test.
  27535. positive: exporting realtime procedure
  27536. MODULE Dummy;
  27537. PROCEDURE {REALTIME} P*;
  27538. BEGIN END P;
  27539. PROCEDURE {REALTIME} Pp*(i: LONGINT);
  27540. BEGIN END Pp;
  27541. PROCEDURE Q*;
  27542. BEGIN END Q;
  27543. END Dummy.
  27544. positive: using imported realtime procedure in realtime and non-realtime procedure
  27545. MODULE Test;
  27546. IMPORT Dummy;
  27547. PROCEDURE {REALTIME} P;
  27548. BEGIN Dummy.P; Dummy.Pp(10)
  27549. END P;
  27550. PROCEDURE Q;
  27551. BEGIN Dummy.P
  27552. END Q;
  27553. END Test.
  27554. negative: using imported non-realtime procedure in realtime procedure
  27555. MODULE Test;
  27556. IMPORT Dummy;
  27557. PROCEDURE {REALTIME} P;
  27558. BEGIN Dummy.Q; Dummy.Pp(10)
  27559. END P;
  27560. END Test.
  27561. positive: use of basic type realtime variables and parameters in realtime procedure
  27562. MODULE Test;
  27563. PROCEDURE {REALTIME} P(VAR k: LONGINT);
  27564. VAR l: SET;
  27565. BEGIN l:= {}; k:= 5;
  27566. END P;
  27567. END Test.
  27568. positive: use of structured realtime variables in realtime procedure
  27569. MODULE Test;
  27570. TYPE A = OBJECT {REALTIME} VAR k, l: LONGINT END A;
  27571. PROCEDURE {REALTIME} P(VAR a: A);
  27572. BEGIN a.k := 0; a.l := 0;
  27573. END P;
  27574. END Test.
  27575. negative: use of non-realtime variables in realtime procedure
  27576. MODULE Test;
  27577. PROCEDURE {REALTIME} P(VAR a: POINTER TO ARRAY OF CHAR);
  27578. VAR i: LONGINT
  27579. BEGIN FOR i := 0 TO LEN(a) DO a[i] := '' END;
  27580. END P;
  27581. END Test.
  27582. positive: use of string constant (of implicit realtime type) in realtime procedure
  27583. MODULE Test;
  27584. PROCEDURE {REALTIME} P;
  27585. VAR a: ARRAY 10 OF CHAR;
  27586. BEGIN a := "AA";
  27587. END P;
  27588. END Test.
  27589. positive: module Dummy for realtime and non-realtime types and variables
  27590. MODULE Dummy;
  27591. TYPE RTRec* = RECORD i*: LONGINT; END;
  27592. NRTRec* = RECORD p*: ANY; END;
  27593. RTO* = OBJECT {REALTIME} VAR s: SET; END RTO;
  27594. NRTO* = OBJECT VAR p: ANY; END NRTO;
  27595. VAR rtrec*: RTRec;
  27596. nrtrec*: NRTRec;
  27597. PROCEDURE {REALTIME} P*;
  27598. END P;
  27599. PROCEDURE Q*;
  27600. END Q;
  27601. END Dummy.
  27602. positive: use of imported realtime type in realtime procedure
  27603. MODULE Test;
  27604. IMPORT Dummy;
  27605. PROCEDURE {REALTIME} P(VAR r: Dummy.RTO);
  27606. END P;
  27607. END Test.
  27608. negative: use of imported non-realtime type in realtime procedure
  27609. MODULE Test;
  27610. IMPORT Dummy;
  27611. PROCEDURE {REALTIME} P(VAR n: Dummy.NRTO);
  27612. END P;
  27613. END Test.
  27614. positive: use of imported realtime variable in realtime procedure
  27615. MODULE Test;
  27616. IMPORT Dummy;
  27617. PROCEDURE {REALTIME} P;
  27618. BEGIN Dummy.rtrec.i := 0;
  27619. END P;
  27620. END Test.
  27621. negative: use of imported non-realtime variable in realtime procedure
  27622. MODULE Test;
  27623. IMPORT Dummy;
  27624. PROCEDURE {REALTIME} P;
  27625. BEGIN Dummy.nrtrec.p := NIL;
  27626. END P;
  27627. END Test.
  27628. positive: use of imported realtime variable in non-realtime procedure
  27629. MODULE Test;
  27630. IMPORT Dummy;
  27631. PROCEDURE P;
  27632. BEGIN Dummy.rtrec.i := 0;
  27633. END P;
  27634. END Test.
  27635. positive: use of imported non-realtime variable in non-realtime procedure
  27636. MODULE Test;
  27637. IMPORT Dummy;
  27638. PROCEDURE P;
  27639. BEGIN Dummy.nrtrec.p := NIL;
  27640. END P;
  27641. END Test.
  27642. positive: realtime procedure used as parameter in realtime procedure
  27643. MODULE Test;
  27644. TYPE RTPT = PROCEDURE {REALTIME};
  27645. VAR rtp: PROCEDURE {REALTIME};
  27646. PROCEDURE {REALTIME} P(rtp: RTPT);
  27647. END P;
  27648. BEGIN P(rtp);
  27649. END Test.
  27650. negative: non-realtime procedure as parameter in realtime procedure
  27651. MODULE Test;
  27652. TYPE RTPT = PROCEDURE {REALTIME};
  27653. VAR rtp: PROCEDURE;
  27654. PROCEDURE {REALTIME} P(rtp: RTPT);
  27655. END P;
  27656. BEGIN P(rtp);
  27657. END Test.
  27658. positive: realtime procedure used as var-parameter in realtime procedure
  27659. MODULE Test;
  27660. TYPE RTPT = PROCEDURE {REALTIME};
  27661. VAR rtp: PROCEDURE {REALTIME};
  27662. PROCEDURE {REALTIME} P(VAR rtp: RTPT);
  27663. END P;
  27664. BEGIN P(rtp);
  27665. END Test.
  27666. negative: use of exclusive section in realtime module procedure
  27667. MODULE Test;
  27668. PROCEDURE {REALTIME} P;
  27669. BEGIN {EXCLUSIVE}
  27670. END P;
  27671. END Test.
  27672. # handling of untraced flag
  27673. positive: untraced flag on pointer to record
  27674. MODULE Test;
  27675. TYPE P= POINTER TO RECORD END;
  27676. VAR x {UNTRACED}: P;
  27677. END Test.
  27678. positive: untraced flag on object
  27679. MODULE Test;
  27680. TYPE P= OBJECT END P;
  27681. VAR x {UNTRACED}: P;
  27682. END Test.
  27683. positive: untraced flag on pointer to array
  27684. MODULE Test;
  27685. TYPE P=POINTER TO ARRAY OF CHAR;
  27686. VAR x {UNTRACED}: P;
  27687. END Test.
  27688. positive: untraced flag on delegate procedure
  27689. MODULE Test;
  27690. TYPE P=PROCEDURE {DELEGATE};
  27691. VAR x {UNTRACED}: P;
  27692. END Test.
  27693. negative: untraced flag on basic type
  27694. MODULE Test;
  27695. TYPE P=LONGINT;
  27696. VAR x{UNTRACED}: P;
  27697. END Test.
  27698. negative: untraced flag on procedure type
  27699. MODULE Test;
  27700. TYPE P= PROCEDURE;
  27701. VAR x{UNTRACED}: P;
  27702. END Test.
  27703. negative: untraced flag on record type;
  27704. MODULE Test;
  27705. TYPE P=RECORD END;
  27706. VAR x{UNTRACED}: P;
  27707. END Test.
  27708. #miscellaneous
  27709. positive: system address type size
  27710. MODULE Test;
  27711. IMPORT SYSTEM;
  27712. VAR a: LONGINT;
  27713. BEGIN a := SYSTEM.SIZEOF(SYSTEM.ADDRESS)
  27714. END Test.
  27715. negative: system address function on size-incompatible type
  27716. MODULE Test;
  27717. IMPORT SYSTEM;
  27718. VAR a: SHORTINT;
  27719. BEGIN a := SYSTEM.ADR(a)
  27720. END Test.
  27721. positive: system address function on size-compatible type
  27722. MODULE Test;
  27723. IMPORT SYSTEM;
  27724. VAR a: HUGEINT;
  27725. BEGIN a := SYSTEM.ADR(a)
  27726. END Test.
  27727. positive: unsigned system address function
  27728. MODULE Test;
  27729. IMPORT SYSTEM;
  27730. VAR a: SYSTEM.ADDRESS;
  27731. BEGIN a := SYSTEM.ADR(a)
  27732. END Test.
  27733. positive: mixture of 32 and 8 bit types implying high register pressure by using an array
  27734. MODULE Test;
  27735. VAR b: ARRAY 2 OF CHAR; a: LONGINT; ch: CHAR;
  27736. BEGIN
  27737. b[a] := CHR(((a MOD 0AH) + 30H))
  27738. END Test.
  27739. positive: system.val
  27740. MODULE Test;
  27741. IMPORT SYSTEM;
  27742. VAR a: LONGINT; b: REAL; c: POINTER TO ARRAY OF CHAR; i: INTEGER; ch: CHAR;
  27743. BEGIN
  27744. a := SYSTEM.VAL(LONGINT,a);
  27745. a := SYSTEM.VAL(LONGINT,c);
  27746. a := SYSTEM.VAL(LONGINT,b);
  27747. a := SYSTEM.VAL(LONGINT,i);
  27748. a := SYSTEM.VAL(LONGINT,ch);
  27749. END Test.
  27750. positive: shift of unsigned type by signed value
  27751. MODULE Test;
  27752. IMPORT SYSTEM;
  27753. VAR ebx: SET;
  27754. BEGIN
  27755. ebx := SYSTEM.LSH(ebx, -16)
  27756. END Test.
  27757. positive: shift of unsigned type by signed variable
  27758. MODULE Test;
  27759. IMPORT SYSTEM;
  27760. VAR ebx: SET; a: LONGINT;
  27761. BEGIN
  27762. ebx := SYSTEM.LSH(ebx, a)
  27763. END Test.
  27764. positive: assignment of converted unsigned type to signed type
  27765. MODULE Test;
  27766. IMPORT SYSTEM;
  27767. VAR ebx: SET; a,i: LONGINT;
  27768. BEGIN
  27769. i := SYSTEM.VAL(LONGINT, SYSTEM.LSH(ebx * {16..23}, -16));
  27770. END Test.
  27771. positive: getprocedure builtin call
  27772. MODULE Test;
  27773. TYPE
  27774. R= RECORD END;
  27775. MyO= OBJECT END MyO;
  27776. VAR
  27777. p: PROCEDURE;
  27778. q: PROCEDURE(r: R);
  27779. r: PROCEDURE():MyO;
  27780. s: PROCEDURE(p: MyO): MyO;
  27781. t: PROCEDURE(p:MyO);
  27782. u: PROCEDURE(r: R): MyO;
  27783. BEGIN
  27784. GETPROCEDURE("TestModule","TestProcedure",p);
  27785. GETPROCEDURE("X","Y",p);
  27786. GETPROCEDURE("TestModule","TestProcedure",p);
  27787. GETPROCEDURE("TestModule","TestProcedure",q);
  27788. GETPROCEDURE("TestModule","TestProcedure",r);
  27789. GETPROCEDURE("TestModule","TestProcedure",t);
  27790. GETPROCEDURE("TestModule","TestProcedure",s);
  27791. GETPROCEDURE("TestModule","TestProcedure",u);
  27792. END Test.
  27793. negative: procedure call designator returning nil as index
  27794. MODULE Test;
  27795. VAR a: ARRAY 32 OF CHAR; c: CHAR;
  27796. PROCEDURE P;
  27797. BEGIN
  27798. END P;
  27799. BEGIN
  27800. c := a[P()];
  27801. END Test.
  27802. negative: procedure call designator returning nil in binary expression
  27803. MODULE Test;
  27804. VAR a,b: LONGINT;
  27805. PROCEDURE P;
  27806. BEGIN
  27807. END P;
  27808. BEGIN
  27809. a := b + P();
  27810. END Test.
  27811. positive: module exporting procedure variable with return type
  27812. MODULE Dummy;
  27813. VAR
  27814. p-: PROCEDURE(a,b: LONGINT): LONGINT;
  27815. END Dummy.
  27816. positive: module importing procedure variable with return type
  27817. MODULE Test;
  27818. IMPORT Dummy;
  27819. VAR a: LONGINT;
  27820. BEGIN
  27821. a := a + Dummy.p(0,0);
  27822. END Test.
  27823. positive: passing NIL parameter on WINAPI string parameter
  27824. MODULE Test;
  27825. IMPORT SYSTEM;
  27826. VAR
  27827. p: PROCEDURE{WINAPI}(CONST a: ARRAY OF CHAR);
  27828. BEGIN
  27829. p(NIL);
  27830. END Test.
  27831. positive: SYSTEM.TYPECODE on records, pointer to record and object
  27832. MODULE Test;
  27833. IMPORT SYSTEM;
  27834. TYPE
  27835. R1=RECORD END; R2=RECORD (R1) END;
  27836. P1= POINTER TO RECORD END; P2=POINTER TO RECORD (P1) END;
  27837. O1 = OBJECT END O1; O2=OBJECT(O1) END O2;
  27838. PROCEDURE P(VAR r: R1; p: P1; o: O1);
  27839. VAR a: SYSTEM.ADDRESS;
  27840. BEGIN
  27841. IF r IS R2 THEN END;
  27842. a := SYSTEM.TYPECODE(R2);
  27843. IF p IS P2 THEN END;
  27844. a := SYSTEM.TYPECODE(P2);
  27845. IF o IS O2 THEN END;
  27846. a := SYSTEM.TYPECODE(O2);
  27847. END P;
  27848. END Test.
  27849. negative: SYSTEM.TYPECODE with basic type
  27850. MODULE Test;
  27851. IMPORT SYSTEM;
  27852. TYPE
  27853. T = INTEGER;
  27854. VAR
  27855. a: LONGINT;
  27856. BEGIN
  27857. a:= SYSTEM.TYPECODE(T);
  27858. END Test.
  27859. negative: SYSTEM.TYPECODE with ANY type
  27860. MODULE Test;
  27861. IMPORT SYSTEM;
  27862. TYPE
  27863. T = ANY;
  27864. VAR
  27865. a: LONGINT;
  27866. BEGIN
  27867. a:= SYSTEM.TYPECODE(T);
  27868. END Test.
  27869. negative: SYSTEM.TYPECODE with OBJECT type
  27870. MODULE Test;
  27871. IMPORT SYSTEM;
  27872. TYPE
  27873. T = OBJECT;
  27874. VAR
  27875. a: LONGINT;
  27876. BEGIN
  27877. a:= SYSTEM.TYPECODE(T);
  27878. END Test.
  27879. negative: SYSTEM.TYPECODE with static array
  27880. MODULE Test;
  27881. IMPORT SYSTEM;
  27882. TYPE
  27883. T = ARRAY 32 OF CHAR;
  27884. VAR
  27885. a: LONGINT;
  27886. BEGIN
  27887. a:= SYSTEM.TYPECODE(T);
  27888. END Test.
  27889. negative: SYSTEM.TYPECODE with pointer to static array
  27890. MODULE Test;
  27891. IMPORT SYSTEM;
  27892. TYPE
  27893. T = POINTER TO ARRAY 32 OF LONGINT;
  27894. VAR
  27895. a: LONGINT;
  27896. BEGIN
  27897. a:= SYSTEM.TYPECODE(T);
  27898. END Test.
  27899. negative: SYSTEM.TYPECODE with pointer to dynamic array without pointers
  27900. MODULE Test;
  27901. IMPORT SYSTEM;
  27902. TYPE
  27903. T = POINTER TO ARRAY OF LONGINT;
  27904. VAR
  27905. a: LONGINT;
  27906. BEGIN
  27907. a:= SYSTEM.TYPECODE(T);
  27908. END Test.
  27909. positive: SYSTEM.HALT statement
  27910. MODULE Test;
  27911. IMPORT SYSTEM;
  27912. BEGIN
  27913. SYSTEM.HALT(100);
  27914. SYSTEM.HALT(10);
  27915. END Test.
  27916. positive: HALT statement with small parameter
  27917. MODULE Test;
  27918. BEGIN HALT(14)
  27919. END Test.
  27920. positive: pass a one and two character array as string and pass one array character as character
  27921. MODULE Test;
  27922. PROCEDURE P(CONST s: ARRAY OF CHAR);
  27923. BEGIN END P;
  27924. PROCEDURE Q(CONST c: CHAR);
  27925. BEGIN END Q;
  27926. BEGIN P("a"); P("ab"); Q("a"); P('a'); P('ab'); Q('a');
  27927. END Test.
  27928. positive: assign one character array to character
  27929. MODULE Test;
  27930. VAR a: CHAR;
  27931. BEGIN a := "a"
  27932. END Test.
  27933. negative: assign a character to a string
  27934. MODULE Test;
  27935. VAR a: ARRAY 2 OF CHAR;
  27936. BEGIN a := 0X;
  27937. END Test.
  27938. negative: pass a character value as a string
  27939. MODULE Test;
  27940. PROCEDURE P(CONST a: ARRAY OF CHAR);
  27941. BEGIN END P;
  27942. BEGIN P(0X);
  27943. END Test.
  27944. positive: assign a string of length zero to variable parameter
  27945. MODULE Test;
  27946. PROCEDURE P(VAR a: ARRAY OF CHAR);
  27947. BEGIN
  27948. a := "";
  27949. END P;
  27950. END Test.
  27951. positive: index array of record and pass as parameter
  27952. MODULE Test;
  27953. TYPE R=RECORD END;
  27954. VAR a: ARRAY 32 OF R;
  27955. PROCEDURE P(CONST r: R);
  27956. BEGIN END P;
  27957. BEGIN P(a[10]);
  27958. END Test.
  27959. positive: export of a type
  27960. MODULE Dummy;
  27961. TYPE R*=RECORD END;
  27962. END Dummy.
  27963. positive: reexport a type
  27964. MODULE Test;
  27965. IMPORT Dummy;
  27966. PROCEDURE P*(VAR r: Dummy.R);
  27967. BEGIN END P;
  27968. END Test.
  27969. positive: new on pointer to array containing pointers (any)
  27970. MODULE Test;
  27971. VAR a: POINTER TO ARRAY OF ANY;
  27972. BEGIN NEW(a,10) END Test.
  27973. positive: new on pointer to array containing pointers (delegates)
  27974. MODULE Test;
  27975. TYPE delegate = PROCEDURE{DELEGATE}(x: LONGINT);
  27976. VAR a: POINTER TO ARRAY OF delegate;
  27977. BEGIN NEW(a,10) END Test.
  27978. positive: new on pointer to array containing pointers (objects)
  27979. MODULE Test;
  27980. TYPE object = OBJECT END object;
  27981. VAR a: POINTER TO ARRAY OF object;
  27982. BEGIN NEW(a,10) END Test.
  27983. positive: new on pointer to array containing pointers (record with pointer)
  27984. MODULE Test;
  27985. TYPE
  27986. r1 = RECORD a: LONGINT; b: POINTER TO r1 END;
  27987. r2 = RECORD r: r1 END;
  27988. record = RECORD (r2) b: LONGINT END;
  27989. VAR a: POINTER TO ARRAY OF record;
  27990. BEGIN NEW(a,10) END Test.
  27991. positive: export object with field
  27992. MODULE Dummy;
  27993. TYPE
  27994. Volume* = OBJECT
  27995. VAR size-: LONGINT
  27996. END Volume;
  27997. END Dummy.
  27998. positive: import object with field
  27999. MODULE Test;
  28000. IMPORT Dummy;
  28001. TYPE
  28002. File = OBJECT
  28003. VAR
  28004. vol: Dummy.Volume;
  28005. PROCEDURE P;
  28006. VAR size: LONGINT;
  28007. BEGIN
  28008. size := vol.size;
  28009. END P;
  28010. END File;
  28011. END Test.
  28012. positive: export string value
  28013. MODULE Dummy;
  28014. CONST str*="myString";
  28015. END Dummy.
  28016. positive: import and use string value
  28017. MODULE Test;
  28018. IMPORT Dummy;
  28019. PROCEDURE P(str: ARRAY OF CHAR);
  28020. BEGIN
  28021. END P;
  28022. BEGIN P(Dummy.str);
  28023. END Test.
  28024. positive: boolean in record designator in pointer to array
  28025. MODULE Test;
  28026. TYPE
  28027. R= RECORD a,b: BOOLEAN END;
  28028. P= POINTER TO ARRAY OF R;
  28029. B= ARRAY 20 OF BOOLEAN;
  28030. VAR p:P; b:B;
  28031. BEGIN ASSERT(p[10].b); ASSERT(b[10]);
  28032. END Test.
  28033. positive: formal array of system.byte parameter used with basic actual parameter
  28034. MODULE Test;
  28035. IMPORT SYSTEM;
  28036. VAR a: ARRAY 32 OF CHAR; b: LONGINT;
  28037. PROCEDURE P(CONST a: ARRAY OF SYSTEM.BYTE);
  28038. BEGIN
  28039. END P;
  28040. BEGIN P(a); P(b); P(a[0]);
  28041. END Test.
  28042. positive: module exporting OBJECT
  28043. MODULE Dummy;
  28044. VAR a*: OBJECT;
  28045. END Dummy.
  28046. positive: module importing OBJECT
  28047. MODULE Test;
  28048. IMPORT Dummy;
  28049. PROCEDURE P(a: OBJECT);
  28050. BEGIN
  28051. END P;
  28052. BEGIN P(Dummy.a);
  28053. END Test.
  28054. positive: binary MIN function
  28055. MODULE Test;
  28056. CONST min = MIN(10,20);
  28057. VAR a,b: LONGINT; r1,r2: REAL;
  28058. BEGIN
  28059. a := MIN(a,b);
  28060. r1 := MIN(r1,r2);
  28061. a := MIN(a,256);
  28062. r1 := MIN(r1,20);
  28063. r1 := MIN(2.0,200);
  28064. ASSERT(MIN(1,10)=1);
  28065. ASSERT(MIN(-10,10)=-10);
  28066. END Test.
  28067. positive: binary MAX function
  28068. MODULE Test;
  28069. CONST min = MAX(10,20);
  28070. VAR a,b: LONGINT; r1,r2: REAL;
  28071. BEGIN
  28072. a := MAX(a,b);
  28073. r1 := MAX(r1,r2);
  28074. a := MAX(a,256);
  28075. r1 := MAX(r1,20);
  28076. r1 := MAX(2.0,200);
  28077. ASSERT(MAX(1,10)=10);
  28078. ASSERT(MAX(-10,10)=10);
  28079. END Test.
  28080. positive: method returning a delegate type
  28081. MODULE Test;
  28082. IMPORT SYSTEM;
  28083. TYPE Proc = PROCEDURE{DELEGATE};
  28084. TYPE O= OBJECT
  28085. VAR
  28086. PROCEDURE P;
  28087. BEGIN END P;
  28088. PROCEDURE Q(): Proc;
  28089. BEGIN
  28090. RETURN P;
  28091. END Q;
  28092. END O;
  28093. VAR x: Proc; o:O;
  28094. BEGIN x := o.Q(); x:= x;
  28095. END Test.
  28096. positive: type test on pointer returned by procedure
  28097. MODULE Test;
  28098. TYPE O = OBJECT END O;
  28099. PROCEDURE P(): OBJECT; BEGIN RETURN NIL; END P;
  28100. BEGIN ASSERT(P() IS O);
  28101. END Test.
  28102. positive: delegate array element assignment
  28103. MODULE Test;
  28104. IMPORT SYSTEM;
  28105. TYPE Handler= PROCEDURE{DELEGATE};
  28106. VAR
  28107. handlers: ARRAY 6 OF Handler; h: Handler;
  28108. BEGIN handlers[3] := h;
  28109. END Test.
  28110. positive: large stack size
  28111. MODULE Test;
  28112. CONST stackSize = 10000H;
  28113. PROCEDURE P;
  28114. VAR a: ARRAY stackSize OF CHAR;
  28115. BEGIN
  28116. END P;
  28117. PROCEDURE Q;
  28118. VAR a: ARRAY 100 OF CHAR;
  28119. BEGIN
  28120. END Q;
  28121. END Test.
  28122. positive: shortint variable multiplied by shortint value (8bit multiply)
  28123. MODULE Test;
  28124. PROCEDURE P;
  28125. VAR a: SHORTINT;
  28126. BEGIN
  28127. IF a = a*3 THEN END;
  28128. END P;
  28129. END Test.
  28130. positive: with statement on object field
  28131. MODULE Test;
  28132. TYPE Object = OBJECT VAR a: LONGINT; END Object;
  28133. TYPE Object2 = OBJECT (Object) VAR a: Object; END Object2;
  28134. TYPE Object3 = OBJECT VAR a: Object; BEGIN WITH a: Object2 DO a.a.a := a.a.a; END; END Object3;
  28135. END Test.
  28136. negative: access to different instance of a with-guarded variable
  28137. MODULE Test;
  28138. TYPE A = OBJECT END A;
  28139. TYPE B = OBJECT (A)
  28140. VAR a: A;
  28141. BEGIN WITH a: B DO a.a.a := NIL END;
  28142. END B;
  28143. END Test.
  28144. positive: use of SYSTEM.NEW
  28145. MODULE Test;
  28146. IMPORT SYSTEM;
  28147. VAR any: ANY;
  28148. BEGIN SYSTEM.NEW(any,100);
  28149. END Test.
  28150. positive: expression involving a reordering of floating point stack
  28151. MODULE Test;
  28152. VAR x,y: LONGREAL;
  28153. PROCEDURE Sqrt(x: REAL): REAL;
  28154. BEGIN END Sqrt;
  28155. BEGIN
  28156. x := x*y + Sqrt(SHORT(x)) + x*y;
  28157. END Test.
  28158. positive: use string length with different lengths (to check side-effects on length field in string value)
  28159. MODULE Test;
  28160. TYPE
  28161. String = ARRAY 128 OF CHAR;
  28162. PROCEDURE PutBareName ( VAR name : String);
  28163. VAR ix : LONGINT;
  28164. BEGIN
  28165. WHILE (ix<LEN(name)) DO END;
  28166. END PutBareName;
  28167. PROCEDURE AddUserToName (VAR thisName : String);
  28168. VAR pos : INTEGER;
  28169. BEGIN
  28170. IF pos < LEN (thisName) THEN END;
  28171. END AddUserToName;
  28172. END Test.
  28173. positive: SYSTEM.BYTE varpar
  28174. MODULE Test;
  28175. IMPORT SYSTEM;
  28176. VAR c: CHAR;
  28177. PROCEDURE P(VAR x: SYSTEM.BYTE);
  28178. BEGIN
  28179. END P;
  28180. BEGIN
  28181. P(c);
  28182. END Test.
  28183. positive: write a SYSTEM.BYTE varpar without conversion
  28184. MODULE Test;
  28185. IMPORT SYSTEM;
  28186. PROCEDURE P(VAR buf: SYSTEM.BYTE);
  28187. VAR s1,s2: SHORTINT;
  28188. BEGIN
  28189. buf := s2*16 + (s1 MOD 16)
  28190. END P;
  28191. END Test.
  28192. positive: use a value for a the address in SYSTEM.GET
  28193. MODULE Test;
  28194. IMPORT SYSTEM;
  28195. PROCEDURE P(VAR buf: SYSTEM.BYTE);
  28196. VAR adr: SYSTEM.ADDRESS;
  28197. BEGIN
  28198. adr := 0;
  28199. SYSTEM.GET (040EH, SYSTEM.VAL (INTEGER, adr)); (* EBDA address *)
  28200. END P;
  28201. END Test.
  28202. negative: use a non variable for destination in SYSTEM.GET
  28203. MODULE Test;
  28204. IMPORT SYSTEM;
  28205. PROCEDURE P(VAR buf: SYSTEM.BYTE);
  28206. VAR adr: SYSTEM.ADDRESS;
  28207. BEGIN
  28208. SYSTEM.GET (adr, adr+1); (* EBDA address *)
  28209. END P;
  28210. END Test.
  28211. negative: negative values in address
  28212. MODULE Test;
  28213. IMPORT SYSTEM;
  28214. VAR a: SYSTEM.ADDRESS;
  28215. BEGIN
  28216. a := -1;
  28217. END Test.
  28218. negative: negative values in address in SYSTEM.GET
  28219. MODULE Test;
  28220. IMPORT SYSTEM;
  28221. VAR a: LONGINT;
  28222. BEGIN
  28223. SYSTEM.GET(-1,a)
  28224. END Test.
  28225. positive: ugly system.val with records
  28226. MODULE Test;
  28227. IMPORT SYSTEM;
  28228. TYPE Record= RECORD a,b: LONGINT END;
  28229. PROCEDURE P(VAR r: Record);
  28230. VAR a: LONGINT;
  28231. BEGIN
  28232. P(SYSTEM.VAL(Record,a));
  28233. END P;
  28234. PROCEDURE Q(r: Record);
  28235. VAR a: LONGINT;
  28236. BEGIN
  28237. Q(SYSTEM.VAL(Record,a));
  28238. END Q;
  28239. END Test.
  28240. positive: call an empty inline code
  28241. MODULE Test;
  28242. IMPORT SYSTEM;
  28243. PROCEDURE -P;
  28244. CODE{SYSTEM.i386}
  28245. END P;
  28246. BEGIN P;
  28247. END Test.
  28248. positive: export inline code with reference to (local) constant
  28249. MODULE Test;
  28250. IMPORT SYSTEM;
  28251. PROCEDURE -P*;
  28252. CONST const=16;
  28253. CODE{SYSTEM.i386}
  28254. MOV EAX,[EAX+const]
  28255. END P;
  28256. END Test.
  28257. positive: export and import real number
  28258. MODULE A;
  28259. CONST
  28260. e*=1.2345D0;
  28261. END A.
  28262. MODULE Test;
  28263. IMPORT A;
  28264. CONST e=1.2345D0;
  28265. BEGIN
  28266. ASSERT(A.e = e);
  28267. END Test.
  28268. positive: addition of SYSTEM.ADDRESS and SYSTEM.SIZE
  28269. MODULE Test;
  28270. IMPORT SYSTEM;
  28271. VAR a: SYSTEM.ADDRESS; s: SYSTEM.SIZE;
  28272. BEGIN
  28273. a := a + s;
  28274. END Test.
  28275. positive: implicit HUGEINT conversion in comparison
  28276. MODULE Test;
  28277. VAR h: HUGEINT;
  28278. BEGIN
  28279. IF h < 0 THEN END
  28280. END Test.
  28281. positive: SYSTEM.ADDRESS as variable in for loop
  28282. MODULE Test;
  28283. IMPORT SYSTEM;
  28284. VAR a,b,i: SYSTEM.ADDRESS;
  28285. BEGIN
  28286. FOR i := a TO b DO
  28287. END;
  28288. END Test.
  28289. positive: subtract a SYSTEM.ADDRESS from SYSTEM.ADDRESS
  28290. MODULE Test;
  28291. IMPORT SYSTEM;
  28292. VAR a,b: SYSTEM.ADDRESS; size: SYSTEM.SIZE;
  28293. BEGIN
  28294. size := a-b;
  28295. size := -size
  28296. END Test.
  28297. positive: LONG conversion on SYSTEM.ADDRESS
  28298. MODULE Test;
  28299. IMPORT SYSTEM;
  28300. VAR a: SYSTEM.ADDRESS; v: HUGEINT;
  28301. BEGIN
  28302. v := LONG(a)
  28303. END Test.
  28304. positive: add negative value to SYSTEM.ADDRESS
  28305. MODULE Test;
  28306. IMPORT SYSTEM;
  28307. VAR a: SYSTEM.ADDRESS;
  28308. CONST const = -4;
  28309. BEGIN
  28310. a := a + const;
  28311. END Test.
  28312. positive: unary negation of SYSTEM.ADDRESS
  28313. MODULE Test;
  28314. IMPORT SYSTEM;
  28315. VAR a: SYSTEM.ADDRESS;
  28316. BEGIN
  28317. a := a + (-a) MOD 4;
  28318. END Test.
  28319. positive: export and import SYSTEM.ADDRESS parameter
  28320. MODULE A;
  28321. IMPORT SYSTEM;
  28322. PROCEDURE P*(VAR a: SYSTEM.ADDRESS);
  28323. BEGIN
  28324. END P;
  28325. END A.
  28326. MODULE Test;
  28327. IMPORT SYSTEM,A;
  28328. VAR a: SYSTEM.ADDRESS;
  28329. BEGIN A.P(a)
  28330. END Test.
  28331. positive: use SYSTEM.ADDRESS as array index
  28332. MODULE Test;
  28333. IMPORT SYSTEM;
  28334. VAR a: SYSTEM.ADDRESS; b: ARRAY 32 OF SYSTEM.ADDRESS;
  28335. BEGIN b[a] := b[a]
  28336. END Test.
  28337. positive: long jumps (backend test for TRM)
  28338. MODULE Test;
  28339. PROCEDURE LongJumpBackwards;
  28340. VAR a,b,c: LONGINT;
  28341. BEGIN
  28342. REPEAT
  28343. 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;
  28344. 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;
  28345. 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;
  28346. 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;
  28347. 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;
  28348. 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;
  28349. 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;
  28350. 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;
  28351. UNTIL a<b
  28352. END LongJumpBackwards;
  28353. PROCEDURE LongJumpForwards;
  28354. VAR a,b,c: LONGINT;
  28355. BEGIN
  28356. IF a>=b THEN
  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. 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;
  28365. END;
  28366. END LongJumpForwards;
  28367. END Test.
  28368. positive: expressions of type real with longint divisions
  28369. MODULE Test;
  28370. PROCEDURE Do*(x: REAL): REAL;
  28371. VAR v: REAL;
  28372. BEGIN
  28373. v := x * (x * (x * (x * ((11 / 11520) - x * (1 / 14400)) - 583 / 69120) + 14597 / 276480) - 156409 / 737280) + 381773117 / 928972800;
  28374. RETURN v;
  28375. END Do;
  28376. END Test.
  28377. negative: invalid arrow designator
  28378. MODULE Test;
  28379. VAR s: ARRAY 128 OF CHAR;
  28380. BEGIN
  28381. COPY("WMClock.Open~", s)^;
  28382. END Test.