blob: 4d016ecd017a0707f50350a390975ac4f9e27d27 [file] [log] [blame]
Chris Lattner94276b62004-01-05 05:32:40 +00001
2static int q;
3
4void foo() {
Jeff Cohenb02fbfc2005-04-23 21:26:11 +00005 int t = q;
6 q = t + 1;
Chris Lattner94276b62004-01-05 05:32:40 +00007}
8int main() {
Jeff Cohenb02fbfc2005-04-23 21:26:11 +00009 q = 0;
10 foo();
11 q = q - 1;
Chris Lattner94276b62004-01-05 05:32:40 +000012
Jeff Cohenb02fbfc2005-04-23 21:26:11 +000013 return q;
Chris Lattner94276b62004-01-05 05:32:40 +000014}
Chris Lattner7452ac72004-11-07 00:34:45 +000015
16// This is the source that corresponds to funccall.ll
17// RUN: exit 0