| Jim Laskey | 3082ed5 | 2006-12-04 12:23:17 +0000 | [diff] [blame] | 1 | |
| 2 | static int q; | ||||
| 3 | |||||
| 4 | void foo() { | ||||
| 5 | int t = q; | ||||
| 6 | q = t + 1; | ||||
| 7 | } | ||||
| 8 | int main() { | ||||
| 9 | q = 0; | ||||
| 10 | foo(); | ||||
| 11 | q = q - 1; | ||||
| 12 | |||||
| 13 | return q; | ||||
| 14 | } | ||||
| 15 | |||||
| 16 | // This is the source that corresponds to funccall.ll | ||||
| 17 | // RUN: echo foo | ||||