Commit 732e55f6 authored by Sayapin Matvey's avatar Sayapin Matvey
Browse files

new test for || and &

parent 03628f3a
RUN=luna -q test.fa
RETCODE=0
STDOUT_MATCH=Hello, User_3_name_5!
/*
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+""); }
}
#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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment