1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 19:25:08 +00:00
serenity/Base/home/anon/Source/little/main.cpp
Itamar fa18010477 HackStudio: Integate with C++ parser-based autocomplete
By default, C++ auto completion will still be performed by the
lexer-based logic.
However, the parser-based logic can be switched on via the menubar.
2021-01-27 21:10:57 +01:00

34 lines
608 B
C++

#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;
}