test/api: Fix building on pre-C99 compilers
Ensure variables are declared at the top of the block.
diff --git a/test/api/test-font.c b/test/api/test-font.c
index a92d8b2..6690194 100644
--- a/test/api/test-font.c
+++ b/test/api/test-font.c
@@ -400,6 +400,7 @@
hb_font_t *font0;
hb_font_t *font1;
hb_font_t *font2;
+ hb_codepoint_t glyph;
blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL);
face = hb_face_create (blob, 0);
@@ -424,7 +425,6 @@
hb_font_funcs_destroy (ffuncs2);
/* Just test that calling get_nominal_glyph doesn't infinite-loop. */
- hb_codepoint_t glyph;
hb_font_get_nominal_glyph (font2, 0x0020u, &glyph);
hb_font_destroy (font2);