forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc-print_01-4d44628.stdout
More file actions
40 lines (33 loc) · 851 Bytes
/
c-print_01-4d44628.stdout
File metadata and controls
40 lines (33 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <lfortran_intrinsics.h>
void f();
void __main____global_statements();
// Implementations
void f()
{
char * x = NULL;
char * y = NULL;
printf("%s\n", "Hello World!");
_lfortran_strcpy(&x, ",", 1);
_lfortran_strcpy(&y, "!!", 1);
printf("%s%s%s\n", "a", x, "b");
_lfortran_strcpy(&x, "-+-+-", 1);
printf("%s%s%s%s%s\n", "a", x, "b", x, "c");
printf("%s%s%s%s%s%s", "d", "=", "e", "=", "f", "+\n");
printf("%s%s%s%s%s%s", "x", "*\n", "y", "*\n", "z", y);
printf("%s%s%s\n", "1", ":", "2");
printf("%s%s%s\n", "LCompilers", " ", "LPython");
}
void __main____global_statements()
{
f();
}
int main(int argc, char* argv[])
{
_lpython_set_argv(argc, argv);
__main____global_statements();
return 0;
}