Lines Matching refs:types

32 /* Tests for types:
128 char *types[2];
130 /* These tests look at types in the base only, the desire is to ensure that
131 * types are not destroyed or otherwise removed during the link process.
132 * if this happens these tests won't work anyway since we are using types to
141 types[0] = "g_b_type_1";
142 test_attr_types(base, "g_b_attr_1", NULL, types, 1);
150 types[0] = "o1_b_type_1";
151 test_attr_types(base, "o1_b_attr_1", base->decl_val_to_struct[decls[0] - 1], types, 1);
166 char *types[2];
169 /* These tests look at types that were copied from modules or attributes
172 * should ensure that types and attributes are correctly copied from modules
185 types[0] = "g_m1_type_1";
186 types[1] = "g_m1_type_2";
187 test_attr_types(base, "g_m1_attr_1", NULL, types, 2);
195 types[0] = "o1_m1_type_2";
196 test_attr_types(base, "o1_m1_attr_1", base->decl_val_to_struct[decls[0] - 1], types, 1);
202 types[0] = "g_m1_type_3";
203 test_attr_types(base, "g_b_attr_3", NULL, types, 1);
210 types[0] = "o1_m1_type_3";
211 test_attr_types(base, "g_b_attr_4", base->decl_val_to_struct[decls[0] - 1], types, 1);
216 types[0] = "g_m1_type_4";
217 types[1] = "g_m2_type_4";
218 test_attr_types(base, "g_b_attr_5", NULL, types, 2);
224 types[0] = "g_m2_type_5";
225 test_attr_types(base, "g_b_attr_6", NULL, types, 1);
227 types[0] = "o3_m1_type_2";
228 test_attr_types(base, "g_b_attr_6", d, types, 1);
233 types[0] = "g_m1_type_5";
234 test_attr_types(base, "o4_b_attr_1", NULL, types, 1);
240 types[0] = "o1_m1_type_5";
241 test_attr_types(base, "o1_b_attr_2", d, types, 1);
247 types[0] = "o1_b_type_2";
248 test_attr_types(base, "g_m1_attr_2", d, types, 1);
254 types[0] = "o4_b_type_1";
255 test_attr_types(base, "o3_m1_attr_1", d, types, 1);
261 types[0] = "g_m1_type_6";
262 types[1] = "g_m2_type_3";
263 test_attr_types(base, "g_m1_attr_3", NULL, types, 2);
266 types[0] = "o4_b_type_2";
267 test_attr_types(base, "g_m1_attr_3", d, types, 1);
273 types[0] = "o3_m1_type_3";
274 test_attr_types(base, "o3_m1_attr_2", d, types, 1);
276 types[0] = "g_m2_type_6";
277 test_attr_types(base, "o3_m1_attr_2", NULL, types, 1);
280 types[0] = "o2_b_type_1";
281 test_attr_types(base, "o3_m1_attr_2", d, types, 1);
286 types[0] = "g_m1_type_7";
287 test_attr_types(base, "g_m1_attr_4", NULL, types, 1);
290 types[0] = "o2_m2_type_1";
291 test_attr_types(base, "g_m1_attr_4", d, types, 1);
294 types[0] = "o5_b_type_1";
295 test_attr_types(base, "g_m1_attr_4", d, types, 1);
301 types[0] = "o4_m1_type_1";
302 test_attr_types(base, "o4_m1_attr_1", d, types, 1);
305 types[0] = "o2_m2_type_2";
306 test_attr_types(base, "o4_m1_attr_1", d, types, 1);
309 types[0] = "o5_b_type_2";
310 test_attr_types(base, "o4_m1_attr_1", d, types, 1);