diff options
| author | 2007-09-21 06:17:00 +0000 | |
|---|---|---|
| committer | 2007-09-21 06:17:00 +0000 | |
| commit | c74f76ead90bc8e220b32f38b15e8335eaeabb15 (patch) | |
| tree | c0ef5f1108145a04fe2502c438d82e4f77b794d4 | |
| parent | two know failures of pcc (diff) | |
| download | wireguard-openbsd-c74f76ead90bc8e220b32f38b15e8335eaeabb15.tar.xz wireguard-openbsd-c74f76ead90bc8e220b32f38b15e8335eaeabb15.zip | |
add the other case Ted mentioned
| -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; } |
