-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.cc
94 lines (69 loc) · 1.37 KB
/
example.cc
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/**
* \file example.cc
*/
#include <iostream>
#include <vector>
#include <string>
class Test {
public:
Test() = default;
int Method() const {
return 0;
}
static const double Static_Method() {
return 0;
}
private:
int field_;
double bad_bield;
static const int kGood = 5;
static const int kBad_ = 3;
static int bad_val;
void privateMethod(void) {}
};
int Test::bad_val = 0;
struct JustAStruct {
int ok_field;
int bad_field_;
const int kGood = 3;
size_t size() const {
return 0;
}
};
std::vector<int> BuildDSU(size_t size) {
return {};
}
void Name2D() {
static int numbers1;
}
constexpr void fail() {}
std::string BIGNAME(int F) {
return "Wow Such big";
}
typedef int Dash;
using shitHappens = int;
std::string DeeeeeepThought(bool underscore_) {
return "Answer to the Ultimate Question of Life, The Universe, and Everything is ...";
}
int F(int code) {
return 42;
}
enum class Ok {
ABC = 0,
};
int main() {
constexpr double kValue = 3.1415926;
int just__few_words = 3;
double _hello_world = 42;
int _ = just__few_words;
char Wrong = '?';
std::string CAPS_IS_NOT_PERMITTED;
struct {
short stuff;
union unnamed_again {
int fst_var_;
int snd_var_;
};
} unnamed_struct;
return F(0);
}