summaryrefslogtreecommitdiff
path: root/Base/home/anon/Source/little/main.cpp
blob: 55b8bed3c6e86cbbe3c041aed3d7319fd3aaa178 (plain)
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
#include "other.h"
#include <stdio.h>
#include <sys/stat.h>

enum TestEnum {
    ValueOne,
    ValueTwo
};

struct MyStruct {
    int x { -1 };
    bool status { false };
    TestEnum test_value { ValueOne };
};

struct Container {
    MyStruct inner;
    int index;
};

int main(int, char**)
{
    MyStruct my_struct;
    my_struct.status = !my_struct.status;
    printf("my_struct.x is %d\n", my_struct.x);
    Container container;
    for (int i = 0; i < 3; ++i) {
        // This is a comment :^)
        func();
        printf("Hello friends!\n");
        mkdir("/tmp/xyz", 0755);
    }
    return 0;
}