Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
luna
LuNA
Commits
531f00e5
Commit
531f00e5
authored
Dec 22, 2020
by
Vladislav Perepelkin
Browse files
Merge branch 'new_test_ops' into 'master'
new test for || and & See merge request luna/lo3!32
parents
2cdec6f9
732e55f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/04_programs/basic7ops/conf
0 → 100644
View file @
531f00e5
RUN=luna -q test.fa
RETCODE=0
STDOUT_MATCH=Hello, User_3_name_5!
tests/04_programs/basic7ops/test.fa
0 → 100644
View file @
531f00e5
/*
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 @
531f00e5
#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