MCPcopy Create free account
hub / github.com/Kitware/CMake / main

Function main

Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp:62–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62int main()
63{
64 {
65 libshared::Class l;
66 // l.method(); LINK ERROR
67 l.method_exported();
68 // l.method_deprecated(); LINK ERROR
69 l.method_deprecated_exported();
70 // l.method_excluded(); LINK ERROR
71
72 // use_int(l.data); LINK ERROR
73 use_int(l.data_exported);
74 // use_int(l.data_excluded); LINK ERROR
75 }
76
77 {
78 libshared::ExportedClass l;
79 l.method();
80 l.method_deprecated();
81#if defined(_WIN32) || defined(__CYGWIN__)
82 l.method_excluded();
83#else
84// l.method_excluded(); LINK ERROR (NOT WIN32 AND NOT CYGWIN)
85#endif
86
87 use_int(l.data);
88#if defined(_WIN32) || defined(__CYGWIN__)
89 use_int(l.data_excluded);
90#else
91// use_int(l.data_excluded); LINK ERROR (NOT WIN32 AND NOT CYGWIN)
92#endif
93 }
94
95 {
96 libshared::ExcludedClass l;
97 // l.method(); LINK ERROR
98 l.method_exported();
99 // l.method_deprecated(); LINK ERROR
100 l.method_deprecated_exported();
101 // l.method_excluded(); LINK ERROR
102
103 // use_int(l.data); LINK ERROR
104 use_int(l.data_exported);
105 // use_int(l.data_excluded); LINK ERROR
106 }
107
108 // libshared::function(); LINK ERROR
109 libshared::function_exported();
110 // libshared::function_deprecated(); LINK ERROR
111 libshared::function_deprecated_exported();
112 // libshared::function_excluded(); LINK ERROR
113
114 // use_int(libshared::data); LINK ERROR
115 use_int(libshared::data_exported);
116 // use_int(libshared::data_excluded); LINK ERROR
117
118 {
119 libstatic::Class l;

Callers

nothing calls this directly

Calls 7

compareFunction · 0.70
use_intFunction · 0.50
method_exportedMethod · 0.45
methodMethod · 0.45
method_deprecatedMethod · 0.45
method_excludedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…