| 60 | } |
| 61 | |
| 62 | int 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; |
nothing calls this directly
no test coverage detected
searching dependent graphs…