diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-21 06:17:01 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-21 06:17:01 +0000 |
commit | 6213b1161088ff51732190513a3d056b29b130a3 (patch) | |
tree | fda07f7a260a977ec54b4a6f654a03d50b659d72 /regress/usr.bin | |
parent | febbef3fece6191d899e9f4f9c3a362db801fbfa (diff) |
add the other case Ted mentioned
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/pcc/cc/ccom/tmpalloc001.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/regress/usr.bin/pcc/cc/ccom/tmpalloc001.c b/regress/usr.bin/pcc/cc/ccom/tmpalloc001.c index 0fef7fe865a..04aaa690ea9 100644 --- a/regress/usr.bin/pcc/cc/ccom/tmpalloc001.c +++ b/regress/usr.bin/pcc/cc/ccom/tmpalloc001.c @@ -1,10 +1,17 @@ /* From Ted Unangst */ int a() { return 1; } +int f() +{ + int b = 0; + a() + ++b; + return 0; +} + int main() { int b = 0; a() + ++b; - printf("b %d\n", b); + printf("%d\n", b); return 0; } |