diff options
Diffstat (limited to 'src/test.cc')
-rw-r--r-- | src/test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test.cc b/src/test.cc index 48d7762..fec7131 100644 --- a/src/test.cc +++ b/src/test.cc @@ -59,7 +59,7 @@ void FullTest(void) { PriorityList *T; Datas_t Datas; - Cell C1, C2, C3; + Cell C1, C2, C3 = NULL; Key_t K; int i; @@ -91,6 +91,8 @@ void FullTest(void) C1 = T->Insert(N[i], NULL); if (N[i] == 30) C3 = C1; } + + if (!C3) exit(-1); fprintf(stderr, "59 54 -10\n"); C1 = T->Insert(59, NULL); |