Chris Lattner | 94276b6 | 2004-01-05 05:32:40 +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 | } | ||||
Chris Lattner | 7452ac7 | 2004-11-07 00:34:45 +0000 | [diff] [blame] | 15 | |
16 | // This is the source that corresponds to funccall.ll | ||||
17 | // RUN: exit 0 |