summaryrefslogtreecommitdiff
path: root/tests/qsort-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qsort-test.c')
-rw-r--r--tests/qsort-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qsort-test.c b/tests/qsort-test.c
index 4e1194360..9a1bc330b 100644
--- a/tests/qsort-test.c
+++ b/tests/qsort-test.c
@@ -23,5 +23,8 @@ main ()
for (i = 0; i < SIZE - 1; i++)
g_assert (array[i] <= array[i+1]);
+ /* 0 elemenents is a valid case */
+ g_qsort_with_data (array, 0, sizeof (guint32), sort, NULL);
+
return 0;
}