forked from CloverHackyColor/CloverBootloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·61 lines (50 loc) · 1.42 KB
/
Copy pathmain.cpp
File metadata and controls
executable file
·61 lines (50 loc) · 1.42 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// main.cpp
// cpp_tests
//
// Created by jief on 23.02.20.
// Copyright © 2020 Jief_Machak. All rights reserved.
//
#include <iostream>
#include <locale.h>
#include "../../../PosixCompilation/xcode_utf_fixed.h"
#include "../../../rEFIt_UEFI/cpp_unit_test/all_tests.h"
#include "../../../rEFIt_UEFI/cpp_foundation/XToolsCommon.h"
#include "../../../rEFIt_UEFI/Platform/platformdata.h"
//class Boolean
//{
// bool flag;
//public:
// explicit Boolean() : flag(false) {}
// explicit Boolean(const bool other) { flag = other; }
// explicit Boolean(const Boolean& other) { flag = other.flag; }
//// template <typename T>
//// Boolean(T other) = delete;// { return *this; }
//
// Boolean& operator= (const Boolean& other) { return *this; }
// Boolean& operator= (const bool other) { return *this; }
// template <typename T>
// Boolean& operator= (const T other) = delete;// { return *this; }
//
// bool getValue() const {return flag;}
// void setValue(bool a) {flag = a;}
//};
extern "C" int main(int argc, const char * argv[])
{
(void)argc;
(void)argv;
setlocale(LC_ALL, "en_US"); // to allow printf unicode char
// xcode_utf_fixed_tests();
const int i = 2;
(void)i;
XBool b;
b = true;
b = false;
// b = XBool(i);
// b = (char*)NULL;
// b = (float)1.0;
// b = i;
//printf("%d", numeric_limits<int>::min());
//printf("%d", numeric_limits<int>::min());
return all_tests() ? 0 : -1 ;
}