diff options
Diffstat (limited to 'test/neg-test.c')
-rw-r--r-- | test/neg-test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/neg-test.c b/test/neg-test.c new file mode 100644 index 0000000..3629737 --- /dev/null +++ b/test/neg-test.c @@ -0,0 +1,12 @@ +#include <stdlib.h> +#include <stdio.h> +#include <limits.h> +extern int main(int argc, char* argv[]) { + char array[] = {'s','i','j','a','n','e','c',' '}; + printf("it should always be sijanec and a space character for 2000 characters or OB1\n"); + for(int i=0;i<=2000;i++) { + printf("%c", array[i% sizeof(array)]); + fflush(stdout); + } + return 0; +} |