-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[YTEST] added option for two different inputs
- Loading branch information
Showing
4 changed files
with
73 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ dev-guide/book | |
*.o | ||
*.exe | ||
*.out | ||
tmp.yl | ||
tmp* | ||
|
||
web/node_modules | ||
web/.pnp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
# RUN: | ||
cargo run -p ylc -- -in=%s -o=out.o | ||
gcc out.o %s2 -o a.exe | ||
./a.exe | ||
|
||
# IN: | ||
define f32 @add(f32 %0, f32 %1) { | ||
entry: | ||
%2 = add f32 %0, %1 | ||
ret f32 %2 | ||
} | ||
} | ||
|
||
# IN2: | ||
extern float add(float, float); | ||
|
||
int main() { | ||
float out = add(2.5f, 2.5f); | ||
return (int)out; | ||
} | ||
|
||
# EXIT_CODE=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters