| 100 | } |
| 101 | |
| 102 | int main(int argc, char *argv[]) { |
| 103 | // ��ʼ�� acl �� |
| 104 | acl::acl_cpp_init(); |
| 105 | acl::log::stdout_open(true); |
| 106 | |
| 107 | size_t max = 1000000; |
| 108 | if (argc > 1) { |
| 109 | max = atol(argv[1]); |
| 110 | } |
| 111 | |
| 112 | if (max == 0 || max > 10000000) { |
| 113 | max = 1000000; |
| 114 | } |
| 115 | |
| 116 | printf("use_typeid: yes, use_lock: yes\r\n"); |
| 117 | test(max, true); |
| 118 | printf("----------------------------------------------------\r\n\r\n"); |
| 119 | |
| 120 | printf("use_typeid: no, use_lock: yes\r\n"); |
| 121 | test(max, false); |
| 122 | printf("----------------------------------------------------\r\n\r\n"); |
| 123 | |
| 124 | ACL_COUNTER_INIT(false); |
| 125 | |
| 126 | printf("use_typeid: yes, use_lock: yes\r\n"); |
| 127 | test(max, true); |
| 128 | printf("----------------------------------------------------\r\n\r\n"); |
| 129 | |
| 130 | printf("use_typeid: no, use_lock: no\r\n"); |
| 131 | test(max, false); |
| 132 | |
| 133 | return 0; |
| 134 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…