13 lines
268 B
C
13 lines
268 B
C
|
|
#ifndef TEST_ERRORS_H
|
||
|
|
#define TEST_ERRORS_H
|
||
|
|
|
||
|
|
// 声明各种错误函数
|
||
|
|
void test_null_pointer();
|
||
|
|
void test_array_out_of_bounds();
|
||
|
|
void test_uninitialized_var();
|
||
|
|
void test_memory_leak();
|
||
|
|
void test_double_free();
|
||
|
|
void test_file_leak();
|
||
|
|
void test_unused_code();
|
||
|
|
|
||
|
|
#endif
|