Ge Wangupdated tests3a080483 years agoHistory
20 lines · 558 B · Text
RawDownload
fun vec3 missingReturn(){    // missing return} fun vec3 hasReturn(){    return @(1,0,0);} // missing return statements default to 0 as appropriate// for return type; this tests that and that the stack// is okay afterwards, even for larger-than-int return types// like vec3<<< hasReturn(), missingReturn() >>>; // before the fix in 1.5.0.0, the above would incorrectly print// #(0.0000,0.0000,1.0000) #(0.0000,0.0000,0.0000)// this implies the stack pointer is off, due to missingReturn// not accounting for the size of its return type, vec3

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t