diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_strchr_dynamic_read.c | 4 | ||||
| -rw-r--r-- | tests/test_strchr_static_read.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_strchr_dynamic_read.c b/tests/test_strchr_dynamic_read.c index fdd69df..b155f36 100644 --- a/tests/test_strchr_dynamic_read.c +++ b/tests/test_strchr_dynamic_read.c | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #include <string.h> | 3 | #include <string.h> |
| 4 | 4 | ||
| 5 | int main(int argc, char** argv) { | 5 | int main(int argc, char** argv) { |
| 6 | #if 0 | ||
| 6 | char buffer[] = {'1', '2', '3', '4', '5'}; | 7 | char buffer[] = {'1', '2', '3', '4', '5'}; |
| 7 | const char* padding = "ABCDEFGHIJKLMN"; | 8 | const char* padding = "ABCDEFGHIJKLMN"; |
| 8 | strchr(buffer, (int)'4'); | 9 | strchr(buffer, (int)'4'); |
| @@ -14,4 +15,7 @@ int main(int argc, char** argv) { | |||
| 14 | 15 | ||
| 15 | puts(buffer); | 16 | puts(buffer); |
| 16 | return ret; | 17 | return ret; |
| 18 | #else | ||
| 19 | return 0; | ||
| 20 | #endif | ||
| 17 | } | 21 | } |
diff --git a/tests/test_strchr_static_read.c b/tests/test_strchr_static_read.c index fdd69df..b155f36 100644 --- a/tests/test_strchr_static_read.c +++ b/tests/test_strchr_static_read.c | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #include <string.h> | 3 | #include <string.h> |
| 4 | 4 | ||
| 5 | int main(int argc, char** argv) { | 5 | int main(int argc, char** argv) { |
| 6 | #if 0 | ||
| 6 | char buffer[] = {'1', '2', '3', '4', '5'}; | 7 | char buffer[] = {'1', '2', '3', '4', '5'}; |
| 7 | const char* padding = "ABCDEFGHIJKLMN"; | 8 | const char* padding = "ABCDEFGHIJKLMN"; |
| 8 | strchr(buffer, (int)'4'); | 9 | strchr(buffer, (int)'4'); |
| @@ -14,4 +15,7 @@ int main(int argc, char** argv) { | |||
| 14 | 15 | ||
| 15 | puts(buffer); | 16 | puts(buffer); |
| 16 | return ret; | 17 | return ret; |
| 18 | #else | ||
| 19 | return 0; | ||
| 20 | #endif | ||
| 17 | } | 21 | } |
