Skip to content

Commit 81c1844

Browse files
committed
Improve test.
1 parent a428b1e commit 81c1844

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/default_test.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ _pure int zero;
1010

1111
_pure point zero_point;
1212

13+
void test_globals() {
14+
_assert(zero == 0);
15+
_assert(zero_point.x == 0);
16+
}
17+
1318
void test_calloc_ref(void) {
1419
int *p = (int *) calloc(1, sizeof(int));
1520
_assert(*p == 0);

0 commit comments

Comments
 (0)