Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Damir Mustafin
lo3
Commits
732e55f6
Commit
732e55f6
authored
Dec 15, 2020
by
Sayapin Matvey
Browse files
new test for || and &
parent
03628f3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/04_programs/basic7ops/conf
0 → 100644
View file @
732e55f6
RUN=luna -q test.fa
RETCODE=0
STDOUT_MATCH=Hello, User_3_name_5!
tests/04_programs/basic7ops/test.fa
0 → 100644
View file @
732e55f6
/*
String data type.
*/
import c_hello(string) as hello;
sub main()
{
for i=1..5
for j=1..5
if ((i > 1 && i < 5) && (j > 4 || j + 1 < 2)) {
hello("User_"+i+"_name_"+j+""); }
}
tests/04_programs/basic7ops/ucodes.cpp
0 → 100644
View file @
732e55f6
#include <cstdio>
#include <cstring>
extern
"C"
{
void
c_hello
(
const
char
*
x
)
{
if
(
strlen
(
x
)
>
0
)
{
printf
(
"Hello, %s!
\n
"
,
x
);
}
else
{
printf
(
"Hello!
\n
"
);
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment