Lines Matching refs:testBuilder
190 static void testBuilder( in testBuilder() function
210 testBuilder(buildParens, "-4;", "(-4)"); in TEST()
214 testBuilder(buildParens, "4 + 4;", "(4 + 4)"); in TEST()
218 testBuilder(buildParens, "4;", "4"); in TEST()
222 testBuilder(buildParens, "int a[3]; a[0];", "a[0]"); in TEST()
226 testBuilder(buildParens, "int f(int); f(4);", "f(4)"); in TEST()
230 testBuilder(buildAddressOf, "S x; x;", "&x"); in TEST()
234 testBuilder(buildAddressOf, "S *x; *x;", "x"); in TEST()
238 testBuilder(buildAddressOf, "S *x; *(x);", "x"); in TEST()
242 testBuilder(buildAddressOf, "S x; x + x;", "&(x + x)"); in TEST()
264 testBuilder(buildDereference, "S *x; x;", "*x"); in TEST()
268 testBuilder(buildDereference, "S x; &x;", "x"); in TEST()
272 testBuilder(buildDereference, "S x; &(x);", "x"); in TEST()
276 testBuilder(buildDereference, "S *x; x + 1;", "*(x + 1)"); in TEST()
280 testBuilder(buildDot, "S x; x;", "x."); in TEST()
284 testBuilder(buildDot, "S *x; *x;", "x->"); in TEST()
288 testBuilder(buildDot, "S *x; *(x);", "x->"); in TEST()
292 testBuilder(buildDot, "S x; x + x;", "(x + x)."); in TEST()
296 testBuilder(buildDot, "S *x; *(x + 1);", "(x + 1)->"); in TEST()
300 testBuilder(buildArrow, "S *x; x;", "x->"); in TEST()
304 testBuilder(buildArrow, "S x; &x;", "x."); in TEST()
308 testBuilder(buildArrow, "S x; &(x);", "x."); in TEST()
312 testBuilder(buildArrow, "S *x; x + 1;", "(x + 1)->"); in TEST()
316 testBuilder(buildArrow, "S x; &(true ? x : x);", "(true ? x : x)."); in TEST()