-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHClass.cpp
More file actions
43 lines (32 loc) · 770 Bytes
/
HClass.cpp
File metadata and controls
43 lines (32 loc) · 770 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
41
42
43
#include "HClass.h"
#include <iostream>
int OldClass::referencedClassStatic = 5;
int IndirectReferencedClass::nonReferencedStatic = 7;
void OldClass::referencedClassNonReferencedFunction()
{
referencedClassStatic++;
std::cout << "Good\n";
}
IndirectReferencedClass* OldClass::makeIndirectRefencedClass()
{
return new IndirectReferencedClass();
}
extern int oldGlobalVar = 5;
extern int oldGlobalNonReferencedVar = 6;
void IndirectReferencedClass::nonReferencedFunction()
{
nonReferencedStatic++;
}
void NonReferencedClass::Func()
{
}
void referencedGlobalFunction()
{
}
void nonReferencedGlobalFunction()
{
}
void OldClassInTemplate::templateReferencedClassNonReferencedFunction()
{
}
std::string NonReferencedClass::getString() { return std::string(); }