Lines Matching refs:result
19 int result = 0; in foo() local
23 result += array[i]; in foo()
29 result += array[j]; in foo()
32 return result; in foo()
36 int result = 0; in bar() local
38 result += array[i]; in bar()
40 result += array[j]; in bar()
44 result += array[0]; in bar()
45 result += array[1]; in bar()
46 result += array[2]; in bar()
49 return result; in bar()
54 int result = foo(1, a); in main() local
55 if (result != 11) { in main()
56 throw new Error("Got " + result + ", expected " + 11); in main()
59 result = bar(1, a); in main()
60 if (result != 35) { in main()
61 throw new Error("Got " + result + ", expected " + 35); in main()